answerCallbackQuery
Return to available methods list
Description:
Prints specified message in specified in Chat ID, using a toast or a dialog.
Parameters:
| Name | Required | Type |
|---|---|---|
| text | Yes | string |
| show_as_alert | No | boolean |
| chat_id | No | int |
Usage:
answerCallbackQuery($text, $show_as_alert, $chat_id);
Example:
answerCallbackQuery("Sample response in a toast.");
Or, if you want to use a dialog:
answerCallbackQuery("Sample response in a dialog.", true);