Message from Python discussions
December 2018
— Thank you very much, brother. You have helped me alot, I've fixed it already.
Hello everyone are there anyone who used python with 3D slicer? I need a plug in that save 3d segmentation? Thank you
— Hello I have a problem in python
I wanted to install echo bot
— 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»»>
— 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