Interface AddLocalMessage

Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message. Request type for Tdjson#addLocalMessage.

interface AddLocalMessage {
    @type: "addLocalMessage";
    chat_id: number;
    disable_notification?: boolean;
    input_message_content: InputMessageContent;
    reply_to: InputMessageReplyTo;
    sender_id: MessageSender;
}

Properties

@type: "addLocalMessage"
chat_id: number

Target chat.

disable_notification?: boolean

Pass true to disable notification for the message.

input_message_content: InputMessageContent

The content of the message to be added.

Information about the message or story to be replied; pass null if none.

sender_id: MessageSender

Identifier of the sender of the message.