RevenueWithdrawalStatePending

class telegram.RevenueWithdrawalStatePending(*, api_kwargs=None)[source]

Bases: telegram.RevenueWithdrawalState

The withdrawal is in progress.

Added in version 21.4.

type[source]

The type of the state, always 'pending'.

Type:

str

FAILED = 'failed'[source]

telegram.constants.RevenueWithdrawalStateType.FAILED

PENDING = 'pending'[source]

telegram.constants.RevenueWithdrawalStateType.PENDING

SUCCEEDED = 'succeeded'[source]

telegram.constants.RevenueWithdrawalStateType.SUCCEEDED

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 to None

Returns:

The Telegram object.