MaybeInaccessibleMessage¶
- class telegram.MaybeInaccessibleMessage(chat, message_id, date, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectBase class for Telegram Message Objects.
Currently, that includes
telegram.Messageandtelegram.InaccessibleMessage.Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
message_idandchatare 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 (
datetime.datetime) –Date the message was sent in Unix time or 0 in Unix time. Converted to
datetime.datetimeThe default timezone of the bot is used for localization, which is UTC unless
telegram.ext.Defaults.tzinfois 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.datetimeThe default timezone of the bot is used for localization, which is UTC unless
telegram.ext.Defaults.tzinfois used.- Type:
datetime.datetime