peyk.platforms.telegram.types.response_parameters

Classes

ResponseParameters([migrate_to_chat_id, ...])

Describes why a request was unsuccessful.

class peyk.platforms.telegram.types.response_parameters.ResponseParameters(migrate_to_chat_id: int | None = None, retry_after: int | None = None)[source]

Bases: object

Describes why a request was unsuccessful.

Variables:
  • migrate_to_chat_id (int | None) – The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.

  • retry_after (int | None) – In case of exceeding flood control, the number of seconds left to wait before the request can be repeated

migrate_to_chat_id: int | None = None
retry_after: int | None = None
classmethod from_dict(data: dict | None) ResponseParameters | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.