1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 13:46:54 +01:00
MadelineProto/docs/TD_docs/constructors/updateNewCallbackQuery.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1.6 KiB

title description
updateNewCallbackQuery Bots only. New incoming callback query

Constructor: updateNewCallbackQuery

Back to constructors index

Bots only. New incoming callback query

Attributes:

Name Type Required Description
id long Yes Unique query identifier
sender_user_id int Yes Identifier of the user who sent the query
chat_id long Yes Identifier of the chat, in which the query was sent
message_id long Yes Identifier of the message, from which the query is originated
chat_instance long Yes Identifier, uniquely corresponding to the chat a message was sent to
payload CallbackQueryPayload Yes Query payload

Type: Update

Example:

$updateNewCallbackQuery = ['_' => 'updateNewCallbackQuery', 'id' => long, 'sender_user_id' => int, 'chat_id' => long, 'message_id' => long, 'chat_instance' => long, 'payload' => CallbackQueryPayload];

PWRTelegram json-encoded version:

{"_": "updateNewCallbackQuery", "id": long, "sender_user_id": int, "chat_id": long, "message_id": long, "chat_instance": long, "payload": CallbackQueryPayload}

Or, if you're into Lua:

updateNewCallbackQuery={_='updateNewCallbackQuery', id=long, sender_user_id=int, chat_id=long, message_id=long, chat_instance=long, payload=CallbackQueryPayload}