ServiceMessage
Properties
message_id
message_id: number;
Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent
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; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats
sender_chat
sender_chat?: Chat;
Sender of the message when sent on behalf of a chat. For example, the supergroup itself for messages sent by its anonymous administrators or a linked channel for messages automatically forwarded to the channel’s discussion group. For backward compatibility, if the message was sent on behalf of a chat, the field from contains a fake sender user in non-channel chats.
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