updateBotGuestChatQuery

Sent to guest bots » when a user invokes the bot as a guest in a chat. The bot should reply by invoking messages.setBotGuestChatResult, see here » for more info.

Constructor schema is available as of layer 225. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
query_id long Query identifier, to be passed to messages.setBotGuestChatResult when replying
message Message The message that triggered the query
reference_messages flags.0?Vector<Message> Additional context messages referenced by the triggering message (for example replied-to messages)
qts int Persistent timestamp (qts) of the update, used by bots to receive updates of this type

Type

Update

Related pages

messages.setBotGuestChatResult

Bots may use this method to answer a guest mode » query received via an updateBotGuestChatQuery update, providing the message to post into the chat as a guest, see here » for more info.

Working with Updates

How to subscribe to updates and handle them properly.

Guest mode for bots

Guest bots can be queried by username from any non-secret private chat, group and supergroup (except for groups/supergroups with content protection » enabled), posting their results directly into the chat, even if they're not a member.