Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
Toggle table of contents sidebar

# InlineQueryResultGame

class telegram.InlineQueryResultGame(id, game_short_name, reply_markup=None, *, api_kwargs=None)

  Bases: `telegram.InlineQueryResult`

  Represents a `telegram.Game`.

  Parameters:

    - id (`str`) – Unique identifier for this result, `1`- `64` Bytes.

    - game_short_name (`str`) – Short name of the game.

    - reply_markup (`telegram.InlineKeyboardMarkup`, optional) – Inline keyboard attached to the message.

  type

    `'game'`.

    Type:

      `str`

  id

    Unique identifier for this result, `1`- `64` Bytes.

    Type:

      `str`

  game_short_name

    Short name of the game.

    Type:

      `str`

  reply_markup

    Optional. Inline keyboard attached to the message.

    Type:

      `telegram.InlineKeyboardMarkup`

  Use In

  - `telegram.Bot.answer_inline_query()`

  - `telegram.Bot.answer_web_app_query()`