Answer the question
In order to leave comments, you need to log in
Why doesn't Pycharm see pyTelegramBotAPI?
There was such a problem - pycharm does not see the pyTelegramBotAPI module. The module itself is installed. I tried both through pip and through the settings of the pucharm itself - it does not see it, although it is displayed in the interpreter settings. When starting the program, it stops on importing the module, the standard error is ModuleNotFoundError: No module named 'pyTelegramBotAPI' .python3.8 What could be wrong?
Answer the question
In order to leave comments, you need to log in
ModuleNotFoundError: No module named 'pyTelegramBotAPI'
A simple echo bot
The TeleBot class (defined in _init_.py) encapsulates all API calls in a single class. It provides functions such as send_xyz (send_message, send_document etc.) and several ways to listen for incoming messages.
Create a file called echo_bot.py. Then, open the file and create an instance of the TeleBot class.
import telebot bot = telebot.TeleBot("TOKEN", parse_mode=None) # You can set parse_mode by default. HTML or MARKDOWN
Note: Make sure to actually replace TOKEN with your own API token.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question