Answer the question
In order to leave comments, you need to log in
How to fix webhook error?
Hello.
I am learning to write in Python, I want to write a telegram bot. It's been like 3 hours since you downloaded Python ;)
import telebot
import constants
bot = telebot.TeleBot(constants.token)
@bot.message_handler(content_types=['commands'])
def handle_command(message):
print("Пришла команда")
bot.polling(none_stop=True, interval=0)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question