Answer the question
In order to leave comments, you need to log in
Why does python throw an error?
import telebot
bot = telebot.TeleBot("###")
@bot.message_handler(content_types = ["text", "document", "audio"])
if message.text == "Привет":
bot.send_message(message.from_user.id, "Привет,!")
elif message.text == "Как дела":
bot.send_message(message.from_user.id, "Норм!")
elif message.text == "Тупой":
bot.send_message(message.from_user.id, "ЩА я тебя насажу!")
else:
bot.send_message(message.from_user.id, "Я тебя не понимаю!")
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