interface Message.ServiceMessage

Properties

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

optional
message_thread_id: number

Unique identifier of a message thread or forum topic to which the message belongs; for supergroups and private chats only

optional
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 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: number

Date the message was sent in Unix time. It is always a positive number, representing a valid date.

optional
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 the message belongs to

optional
is_topic_message: boolean

True, if the message is sent to a topic in a forum supergroup or a private chat with the bot

Information about the direct messages chat topic that contains the message