Interface AnswerCallbackQuery

Sets the result of a callback query; for bots only. Request type for Tdjson#answerCallbackQuery.

interface AnswerCallbackQuery {
    @type: "answerCallbackQuery";
    cache_time: number;
    callback_query_id: string;
    show_alert?: boolean;
    text: string;
    url: string;
}

Properties

@type: "answerCallbackQuery"
cache_time: number

Time during which the result of the query can be cached, in seconds.

callback_query_id: string

Identifier of the callback query.

show_alert?: boolean

Pass true to show an alert to the user instead of a toast notification.

text: string

Text of the answer.

url: string

URL to be opened.