MessageOriginChannel

class telegram.MessageOriginChannel(date, chat, message_id, author_signature=None, *, api_kwargs=None)[source]

Bases: telegram.MessageOrigin

The message was originally sent to a channel chat.

Added in version 20.8.

Parameters:
type[source]

Type of the message origin. Always 'channel'.

Type:

str

date[source]

Date the message was sent originally. The default timezone of the bot is used for localization, which is UTC unless telegram.ext.Defaults.tzinfo is used.

Type:

datetime.datetime

chat[source]

Channel chat to which the message was originally sent.

Type:

telegram.Chat

message_id[source]

Unique message identifier inside the chat.

Type:

int

author_signature[source]

Optional. Signature of the original post author.

Type:

str