This object represents the bot's description. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`description` is equal. .. versionadded:: 20.2 Args: description (:obj:`str`): The bot's description.
| 23 | |
| 24 | |
| 25 | class BotDescription(TelegramObject): |
| 26 | """This object represents the bot's description. |
| 27 | |
| 28 | Objects of this class are comparable in terms of equality. Two objects of this class are |
| 29 | considered equal, if their :attr:`description` is equal. |
| 30 | |
| 31 | .. versionadded:: 20.2 |
| 32 | |
| 33 | Args: |
| 34 | description (:obj:`str`): The bot's description. |
| 35 | |
| 36 | Attributes: |
| 37 | description (:obj:`str`): The bot's description. |
| 38 | |
| 39 | """ |
| 40 | |
| 41 | __slots__ = ("description",) |
| 42 | |
| 43 | def __init__(self, description: str, *, api_kwargs: JSONDict | None = None): |
| 44 | super().__init__(api_kwargs=api_kwargs) |
| 45 | self.description: str = description |
| 46 | |
| 47 | self._id_attrs = (self.description,) |
| 48 | |
| 49 | self._freeze() |
| 50 | |
| 51 | |
| 52 | class BotShortDescription(TelegramObject): |
no outgoing calls
searching dependent graphs…