StarTransactions¶
- class telegram.StarTransactions(transactions, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
Contains a list of Telegram Star transactions.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
transactions
are equal.Returned In
Added in version 21.4.
- Parameters:
transactions (Sequence[
telegram.StarTransaction
]) – The list of transactions.
- transactions[source]¶
The list of transactions.
- Type:
Tuple[
telegram.StarTransaction
]
- classmethod de_json(data, bot=None)[source]¶
Converts JSON data to a Telegram object.
- Parameters:
data (Dict[
str
, …]) – The JSON data.bot (
telegram.Bot
, optional) –The bot associated with this object. Defaults to
None
, in which case shortcut methods will not be available.Changed in version 21.4:
bot
is now optional and defaults toNone
- Returns:
The Telegram object.