CF Workers Telegram Bot - v12.6.20
    Preparing search index...

    Interface ServiceMessage

    interface ServiceMessage {
        business_connection_id?: string;
        chat: TelegramChat;
        date: number;
        direct_messages_topic?: DirectMessagesTopic;
        from?: TelegramFrom;
        guest_query_id?: string;
        is_topic_message?: boolean;
        message_id: number;
        message_thread_id?: number;
        sender_chat?: TelegramChat;
    }

    Hierarchy (View Summary)

    Index

    Properties

    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

    date: number

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

    direct_messages_topic?: DirectMessagesTopic

    Information about the direct messages chat topic that contains the message

    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.

    guest_query_id?: string

    The unique identifier for the guest query. Use this identifier with the method answerGuestQuery to send a response message. If non-empty, the message belongs to the chat where the guest bot was summoned, which may not coincide with other existing bot chats sharing the same identifier.

    is_topic_message?: boolean

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

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

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

    sender_chat?: TelegramChat

    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.