Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success,
True is returned.
Values inside $content:
Parameters |
Type |
Required |
Description |
callback_query_id |
String |
Yes |
Unique identifier for the query to be answered |
text |
String |
Optional |
Text of the notification. If not specified, nothing will be shown to the user |
show_alert |
Boolean |
Optional |
If true, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false. |
\param $content the request parameters as array
\return the JSON Telegram's reply