Answer the question
In order to leave comments, you need to log in
Why does Telegram Bot on Heroku throw an error 'TeleBot' object has no attribute 'message_handler'?
I launch the bot for the first time (a passing person who does this for the first and last time to please friends, I don’t pretend to anything) it crashes on heroku, although through paycharm it calmly executes all commands
here is the beginning of the code
import telebot
bot = telebot.TeleBot('цифры токена')
@bot.message_handler(comands=["start"])
def start_message(message):
bot.send_voice(message.chat.id, 'AwACAgQAAxkBAAIBJl9BRka-FxE7B6fgRW1MgcesGCuFAAKkGgACxmsIUlA6N-NeyjRnGwQ
Answer the question
In order to leave comments, you need to log in
You need to install pyTelegramBotAPI version 3.6.6. Then it will work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question