libtd-ktx / kotlinx.telegram.extensions / MessageKtx / getCallbackQueryAnswer
getCallbackQueryAnswer
open suspend fun Message.getCallbackQueryAnswer(chatId: 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
chatId - Identifier of the chat with the message.
payload - Query payload.
Return TdApi.CallbackQueryAnswer Contains a bot’s answer to a callback query.