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

Class ChatBoostSourcePremium

src/telegram/_chatboost.py:133–155  ·  view source on GitHub ↗

The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user. .. versionadded:: 20.8 Args: user (:class:`telegram.User`): User that boosted the chat. Attributes: source (:obj:`str`): The source of the

Source from the content-addressed store, hash-verified

131
132
133class ChatBoostSourcePremium(ChatBoostSource):
134 """
135 The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium
136 subscription to another user.
137
138 .. versionadded:: 20.8
139
140 Args:
141 user (:class:`telegram.User`): User that boosted the chat.
142
143 Attributes:
144 source (:obj:`str`): The source of the chat boost. Always
145 :attr:`~telegram.ChatBoostSource.PREMIUM`.
146 user (:class:`telegram.User`): User that boosted the chat.
147 """
148
149 __slots__ = ("user",)
150
151 def __init__(self, user: User, *, api_kwargs: JSONDict | None = None):
152 super().__init__(source=self.PREMIUM, api_kwargs=api_kwargs)
153
154 with self._unfrozen():
155 self.user: User = user
156
157
158class ChatBoostSourceGiftCode(ChatBoostSource):

Callers 7

test_update.pyFile · 0.90
ChatBoostDefaultsClass · 0.90
test_equalityMethod · 0.90
chat_boostFunction · 0.90
removed_chat_boostFunction · 0.90

Calls

no outgoing calls

Tested by 5

test_equalityMethod · 0.72
chat_boostFunction · 0.72
removed_chat_boostFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…