libtd-ktx / kotlinx.telegram.extensions / ChatKtx / getCallbackQueryAnswer
getCallbackQueryAnswer
open suspend fun
Chat
.getCallbackQueryAnswer(messageId:
Long
, payload:
CallbackQueryPayload
?):
CallbackQueryAnswer
Suspend function, which sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires.
Parameters
messageId
- Identifier of the message from which the query originated.
payload
- Query payload.
Return TdApi.CallbackQueryAnswer Contains a bot’s answer to a callback query.