ServiceMessage
Properties
message_id
message_id: number;
Unique message identifier inside this chat
message_thread_id
message_thread_id?: number;
Unique identifier of a message thread or a forum topic to which the message belongs; for supergroups only
from
from?: User;
Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
sender_chat
sender_chat?: Chat;
Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
date
date: number;
Date the message was sent in Unix time. It is always a positive number, representing a valid date.
business_connection_id
business_connection_id?: string;
Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.
chat
chat: Chat;
Chat the message belongs to
is_topic_message
is_topic_message?: boolean;
True, if the message is sent to a forum topic