Interface AddQuickReplyShortcutMessage

Adds a message to a quick reply shortcut. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message. Request type for Tdjson#addQuickReplyShortcutMessage.

interface AddQuickReplyShortcutMessage {
    @type: "addQuickReplyShortcutMessage";
    input_message_content: InputMessageContent;
    reply_to_message_id: number;
    shortcut_name: string;
}

Properties

@type: "addQuickReplyShortcutMessage"
input_message_content: InputMessageContent

The content of the message to be added; inputMessagePoll, inputMessageForwarded and inputMessageLocation with live_period aren't supported.

reply_to_message_id: number

Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none.

shortcut_name: string

Name of the target shortcut.