messages.GetInlineBotResults

class pyrogram.raw.functions.messages.GetInlineBotResults

Query an inline bot

Details:
  • Layer: 223

  • 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
├── botInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── geo_pointInputGeoPoint (optional)
│ ├── InputGeoPointEmpty
│ └── InputGeoPoint
│ ├── latdouble
│ ├── longdouble
│ └── accuracy_radiusint (optional)
├── querystring
└── offsetstring

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",
    )
)