peyk.platforms.telegram.types.inaccessible_message

Functions

parse_maybe_inaccessible_message(data)

Provides the parse maybe inaccessible message operation for the Telegram integration.

Classes

InaccessibleMessage(chat, message_id[, date])

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: object

This 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.

chat: Chat
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 None when data is None.

peyk.platforms.telegram.types.inaccessible_message.parse_maybe_inaccessible_message(data: dict | None)[source]

Provides the parse maybe inaccessible message operation for the Telegram integration.

Parameters:

data – Value used by this operation.