Skip to content

How to properly implement a game in a bot? #2021

@DimaDDM

Description

@DimaDDM

Please answer these questions before submitting your issue. Thanks!
Hello. I'm trying to embed an HTML 5 game into a bot, but I'm getting an error when I try to create a keyboard. Please tell me how to correctly send the game to the user by command, for example /game, in the bot. Unfortunately, I could not find examples with this library. Thank you

keyboard = telet.InlineKeyboardMarkup()
keyboard.row(telet.InlineQueryResultGame(id=str(uuid.uuid4()), game_short_name="Game Name"))

  1. What version of pyTelegramBotAPI are you using?
    pyTelegramBotApi 4.12.0

  2. What OS are you using?
    Any OS

  3. What version of python are you using?
    Python 3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions