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
| 131 | |
| 132 | |
| 133 | class 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 | |
| 158 | class ChatBoostSourceGiftCode(ChatBoostSource): |
no outgoing calls
searching dependent graphs…