Interface AddQuickReplyShortcutInlineQueryResultMessage

Adds a message to a quick reply shortcut via inline bot. 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#addQuickReplyShortcutInlineQueryResultMessage.

interface AddQuickReplyShortcutInlineQueryResultMessage {
    @type: "addQuickReplyShortcutInlineQueryResultMessage";
    hide_via_bot?: boolean;
    query_id: string;
    reply_to_message_id: number;
    result_id: string;
    shortcut_name: string;
}

Properties

@type: "addQuickReplyShortcutInlineQueryResultMessage"
hide_via_bot?: boolean

Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username").

query_id: string

Identifier of the inline query.

reply_to_message_id: number

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

result_id: string

Identifier of the inline query result.

shortcut_name: string

Name of the target shortcut.