Answer the question
In order to leave comments, you need to log in
How to solve the problem with the simplest bot in Python?
import telebot
bot = telebot.TeleBot("TOKEN")
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Howdy, how are you doing?")
@bot.message_handler(func=lambda message: True)
def echo_all(message):
bot.reply_to(message, message.text)
bot.polling()
Answer the question
In order to leave comments, you need to log in
I solved the problem myself, there was an error in the token. Through botFather, I did a revoke, inserted a new token, and everything started
Have you installed telebot as written on PyPI?
Try some example from their GitHub or official site.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question