telegram api method · layer 229 · #514e999d
messages.getInlineBotResults
Query an inline bot
definition
messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
bot | InputUser | The bot to query |
peer | InputPeer | The currently opened chat |
geo_point | 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. |
returns
errors (11)
| code | error | description |
|---|---|---|
| -503 | Timeout | Timeout while fetching data. |
| 400 | BOT_INLINE_DISABLED | This bot can't be used in inline mode. |
| 400 | BOT_INVALID | This is not a valid bot. |
| 400 | BOT_RESPONSE_TIMEOUT | A timeout occurred while fetching data from the bot. |
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | INPUT_USER_DEACTIVATED | The specified user was deleted. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 406 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
history
present in layers 46–229 · constructor id changed 1×
| id | layers |
|---|---|
| #9324600d | 46 |
| #514e999d | 62–229 |