ChosenInlineResult

class pyrogram.types.ChosenInlineResult

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

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.

Note

It is necessary to enable inline feedback via @Botfather in order to receive these objects in updates.