Created
December 10, 2021 14:26
-
-
Save demndevel/01137d47281df31b3b1c8fea6e8625ab to your computer and use it in GitHub Desktop.
a telegram bot serving an html game
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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