(
self,
type: str,
*,
api_kwargs: JSONDict | None = None,
)
| 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": |
no test coverage detected