libtd-ktx / kotlinx.telegram.coroutines / getCallbackQueryAnswer
getCallbackQueryAnswer
suspend fun
TelegramFlow
.getCallbackQueryAnswer(chatId:
Long
, 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
chatId
- Identifier of the chat with the message.
messageId
- Identifier of the message from which the query originated.
payload
- Query payload.
Return CallbackQueryAnswer Contains a bot’s answer to a callback query.