telegram.choseninlineresult module

This module contains an object that represents a Telegram ChosenInlineResult

class telegram.choseninlineresult.ChosenInlineResult(result_id, from_user, query, location=None, inline_message_id=None, **kwargs)

Bases: telegram.base.TelegramObject

This object represents a Telegram ChosenInlineResult.

Note

  • In Python from is a reserved word, use from_user instead.
result_id

str

from_user

telegram.User

query

str

location

telegram.Location

inline_message_id

str

Parameters:
  • result_id (str) –
  • from_user (telegram.User) –
  • query (str) –
  • location (Optional[telegram.Location]) –
  • inline_message_id (Optional[str]) –
  • **kwargs (dict) – Arbitrary keyword arguments.
static de_json(data, bot)
Parameters:
Returns:

Return type:

telegram.ChosenInlineResult

to_dict()
Returns:
Return type:dict