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 the appropriate RevenueWithdrawalState object, i.e. takes care of selecting the correct subclass.

Parameters:
Returns:

The Telegram object.