messages.GetInlineBotResults

class pyrogram.raw.functions.messages.GetInlineBotResults

Query an inline bot

Details:
  • Layer: 227

  • ID: 514E999D

Parameters:
  • bot (InputUser) – The bot to query

  • peer (InputPeer) – The currently opened chat

  • query (str) – The query

  • offset (str) – The offset within the results, will be passed directly as-is to the bot.

  • geo_point (InputGeoPoint, optional) – The geolocation, if requested

Returns:

messages.BotResults

TL Schema

messages.getInlineBotResults#514e999d
flags:#
bot:InputUser
peer:InputPeer
geo_point:flags.0?InputGeoPoint
query:string
offset:string

= messages.BotResults

Parameter Tree

GetInlineBotResults
├── bot → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ └── InputUserFromMessage
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── geo_point → InputGeoPoint (optional)
│ ├── InputGeoPointEmpty
│ └── InputGeoPoint
│ ├── lat → double
│ ├── long → double
│ └── accuracy_radius → int (optional)
├── query → string
└── offset → string

Example

await app.invoke(
    GetInlineBotResults(
        bot=await app.resolve_user(chat_id),
        peer=await app.resolve_peer(chat_id),
        geo_point=InputGeoPointEmpty(),
        query="text",
        offset="text",
    )
)