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

Class BotShortDescription

src/telegram/_botdescription.py:52–76  ·  view source on GitHub ↗

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'

Source from the content-addressed store, hash-verified

50
51
52class 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()

Callers 4

bot_short_descriptionFunction · 0.90
test_equalityMethod · 0.90
dummy_objects.pyFile · 0.90

Calls

no outgoing calls

Tested by 3

bot_short_descriptionFunction · 0.72
test_equalityMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…