This object represents the bot's short description. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`short_description` is equal. .. versionadded:: 20.2 Args: short_description (:obj:`str`): The bot'
| 50 | |
| 51 | |
| 52 | class BotShortDescription(TelegramObject): |
| 53 | """This object represents the bot's short description. |
| 54 | |
| 55 | Objects of this class are comparable in terms of equality. Two objects of this class are |
| 56 | considered equal, if their :attr:`short_description` is equal. |
| 57 | |
| 58 | .. versionadded:: 20.2 |
| 59 | |
| 60 | Args: |
| 61 | short_description (:obj:`str`): The bot's short description. |
| 62 | |
| 63 | Attributes: |
| 64 | short_description (:obj:`str`): The bot's short description. |
| 65 | |
| 66 | """ |
| 67 | |
| 68 | __slots__ = ("short_description",) |
| 69 | |
| 70 | def __init__(self, short_description: str, *, api_kwargs: JSONDict | None = None): |
| 71 | super().__init__(api_kwargs=api_kwargs) |
| 72 | self.short_description: str = short_description |
| 73 | |
| 74 | self._id_attrs = (self.short_description,) |
| 75 | |
| 76 | self._freeze() |
no outgoing calls
searching dependent graphs…