peyk.platforms.telegram.types.chosen_inline_result¶
Classes
|
Represents a result of an inline query that was chosen by the user and sent to their chat partner. |
- class peyk.platforms.telegram.types.chosen_inline_result.ChosenInlineResult(result_id: str, from_: User | None = None, location: Location | None = None, inline_message_id: str | None = None, query: str = '')[source]¶
Bases:
objectRepresents a result of an inline query that was chosen by the user and sent to their chat partner. Note: It is necessary to enable inline feedback via @BotFather in order to receive these objects in updates.
- Variables:
result_id (str) – The unique identifier for the result that was chosen
from – The user that chose the result
query (str) – The query that was used to obtain the result
location (peyk.platforms.telegram.types.location.Location | None) – Sender location, only for bots that require user location
inline_message_id (str | None) – 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.
- result_id: str¶
- inline_message_id: str | None = None¶
- query: str = ''¶
- classmethod from_dict(data: dict | None) ChosenInlineResult | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.