Message from Python discussions

December 2018

— My code

— 

»»>import config
import telebot

bot = telebot.TeleBot(config.token)

bot.message_handler(content_types=["text"])
def repeat_all_messages(message):
bot.send_message(message.chat.id, message.text)

if name == 'main':
bot.polling(none_stop=True)»»>

— C:\Users\User\PycharmProjects\untitled\venv\Scripts\python.exe C:/Users/User/PycharmProjects/untitled/bot.py
Traceback (most recent call last):
File "C:/Users/User/PycharmProjects/untitled/bot.py", line 6, in <module>
bot.message_handler(content_types=["text"])
AttributeError: 'TeleBot' object has no attribute 'message_handler'

Process finished with exit code 1»»>

Message permanent page

— Here is an error in pyCharm when I press the RUN button

— Google told me this:
https://github.com/eternnoir/pyTelegramBotAPI/issues/278

— Sorry for the silly question, but where is requirements.txt

— It was written in your link

— It's a file you have to create where you put your project's requirements

— You write there the libraries and versions that are needed for your project to run

— I didn't read that... I just google your issue and it was there

— I understand, but where is he?

— requirements.txt? you have to create it