TransactionPartnerTelegramAds¶
- class telegram.TransactionPartnerTelegramAds(*, api_kwargs=None)[source]¶
Bases:
telegram.TransactionPartner
Describes a withdrawal transaction to the Telegram Ads platform.
Added in version 21.4.
- type[source]¶
The type of the transaction partner, always
'telegram_ads'
.- Type:
- classmethod de_json(data, bot=None)[source]¶
Converts JSON data to the appropriate
TransactionPartner
object, i.e. takes care of selecting the correct subclass.- Parameters:
bot (
telegram.Bot
) – The bot associated with this object.
- Returns:
The Telegram object.