ChosenInlineResult

class pyrogram.types.ChosenInlineResult

A result of an inline query chosen by the user and sent to their chat partner.

Note

In order to receive these updates, your bot must have “inline feedback” enabled. You can enable this feature with @BotFather.

Parameters
  • result_id (str) – The unique identifier for the result that was chosen.

  • from_user (User) – The user that chose the result.

  • query (str) – The query that was used to obtain the result.

  • location (Location, optional) – Sender location, only for bots that require user location.

  • inline_message_id (str, optional) – Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.