Query an inline bot

messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector<BotInlineResult> cache_time:int users:Vector<User> = messages.BotResults;
messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults;


Name Type Description
flags # Flags, see TL conditional fields
bot InputUser The bot to query
peer InputPeer The currently opened chat
geo_point flags.0?InputGeoPoint The geolocation, if requested
query string The query
offset string The offset within the results, will be passed directly as-is to the bot.



Possible errors

Code Type Description
400 BOT_INLINE_DISABLED This bot can't be used in inline mode
400 BOT_INVALID This is not a valid bot
400 CHANNEL_PRIVATE You haven't joined this channel/supergroup
400 MSG_ID_INVALID Invalid message ID provided
-503 Timeout Timeout while fetching data