-
Notifications
You must be signed in to change notification settings - Fork 11
get inline query results
libtd-ktx / kotlinx.telegram.coroutines / getInlineQueryResults
suspend fun
TelegramFlow
.getInlineQueryResults(botUserId:
Int
, chatId:
Long
, userLocation:
Location
?, query:
String
?, offset:
String
?):
InlineQueryResults
Suspend function, which sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires.
botUserId
- The identifier of the target bot.
chatId
- Identifier of the chat where the query was sent.
userLocation
- Location of the user, only if needed.
query
- Text of the query.
offset
- Offset of the first entry to return.
Return InlineQueryResults Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.