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

Class BotDescription

src/telegram/_botdescription.py:25–49  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

23
24
25class 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
52class BotShortDescription(TelegramObject):

Callers 4

bot_descriptionFunction · 0.90
test_equalityMethod · 0.90
dummy_objects.pyFile · 0.90

Calls

no outgoing calls

Tested by 3

bot_descriptionFunction · 0.72
test_equalityMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…