MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / __init__

Method __init__

src/telegram/_menubutton.py:60–71  ·  view source on GitHub ↗
(
        self,
        type: str,
        *,
        api_kwargs: JSONDict | None = None,
    )

Source from the content-addressed store, hash-verified

58 __slots__ = ("type",)
59
60 def __init__(
61 self,
62 type: str,
63 *,
64 api_kwargs: JSONDict | None = None,
65 ): # pylint: disable=redefined-builtin
66 super().__init__(api_kwargs=api_kwargs)
67 self.type: str = enum.get_member(constants.MenuButtonType, type, type)
68
69 self._id_attrs = (self.type,)
70
71 self._freeze()
72
73 @classmethod
74 def de_json(cls, data: JSONDict, bot: "Bot | None" = None) -> "MenuButton":

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

get_memberMethod · 0.80
_freezeMethod · 0.80

Tested by

no test coverage detected