При создании бота столкнулся с ошибкой 'NoneType' object is not callable на строчке def start(message)
import telebot
bot = telebot.TeleBot('') # токен я вставил
@bot.message_handler(commands=['start'])
def start(message):
bot.send_message(message.chat.id, 'Привет, ты написал мне /start')
bot.polling()
Ответы (1 шт):
Автор решения: Radzhab
→ Ссылка
pip uninstall telebotpip install pytelegrambotapi
import telebot
bot = telebot.TeleBot('') # токен я вставил
@bot.message_handler(commands=['start'])
def start(message):
bot.send_message(message.chat.id, 'Привет, ты написал мне /start')
bot.polling()