При создании бота столкнулся с ошибкой '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
  1. pip uninstall telebot
  2. pip install pytelegrambotapi
import telebot

bot = telebot.TeleBot('') # токен я вставил

@bot.message_handler(commands=['start'])
def start(message):
    bot.send_message(message.chat.id, 'Привет, ты написал мне /start')

bot.polling()
→ Ссылка