MaybeInaccessibleMessage¶
- class telegram.MaybeInaccessibleMessage(chat, message_id, date, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
Base class for Telegram Message Objects.
Currently, that includes
telegram.Message
andtelegram.InaccessibleMessage
.Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
message_id
andchat
are equalChanged in version 21.0:
__bool__
is no longer overriden and defaults to Pythons standard implementation.Added in version 20.8.
- Parameters:
message_id (
int
) – Unique message identifier.Date the message was sent in Unix time or 0 in Unix time. Converted to
datetime.datetime
The default timezone of the bot is used for localization, which is UTC unless
telegram.ext.Defaults.tzinfo
is used.chat (
telegram.Chat
) – Conversation the message belongs to.
- date[source]¶
Date the message was sent in Unix time or 0 in Unix time. Converted to
datetime.datetime
The default timezone of the bot is used for localization, which is UTC unless
telegram.ext.Defaults.tzinfo
is used.- Type: