Swears like this:
@ bot.message_handler (content_types = ['text'])
TypeError: 'NoneType' object is not callable
Code:
bot = telebot.TeleBot(constants.token) @bot.message_handler(content_types=['text']) def handle_text(message): if message.text == "A": bot.send_message(message.chat_id, "B")