Skip to content

Instantly share code, notes, and snippets.

@demndevel
Created December 10, 2021 14:26
Show Gist options
  • Save demndevel/01137d47281df31b3b1c8fea6e8625ab to your computer and use it in GitHub Desktop.
Save demndevel/01137d47281df31b3b1c8fea6e8625ab to your computer and use it in GitHub Desktop.
a telegram bot serving an html game
import telebot
bot = telebot.TeleBot("<bot token>")
@bot.callback_query_handler(func=lambda call: True)
def test_callback(call):
print(call)
bot.answer_callback_query(call.id, text="амогус", url="https://github.com/demndevel")
bot.infinity_polling()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment