peyk.platforms.telegram.types.inaccessible_message¶
Functions
Provides the parse maybe inaccessible message operation for the Telegram integration. |
Classes
|
This object describes a message that was deleted or is otherwise inaccessible to the bot. |
- class peyk.platforms.telegram.types.inaccessible_message.InaccessibleMessage(chat: Chat, message_id: int, date: int = 0)[source]¶
Bases:
objectThis object describes a message that was deleted or is otherwise inaccessible to the bot.
- Variables:
chat (peyk.platforms.telegram.types.chat.Chat) – Chat the message belonged to
message_id (int) – Unique message identifier inside the chat
date (int) – Always 0. The field can be used to differentiate regular and inaccessible messages.
- message_id: int¶
- date: int = 0¶
- classmethod from_dict(data: dict | None) InaccessibleMessage | None[source]¶
Parse a Telegram API mapping into this type.
- Parameters:
data – Raw Telegram API mapping, or
None.- Returns:
Parsed type instance, or
NonewhendataisNone.