P
P
PashaLynx2020-11-08 18:19:05
PyCharm
PashaLynx, 2020-11-08 18:19:05

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

1 answer(s)
L
Lesha, 2020-11-08
@PashaLynx

ModuleNotFoundError: No module named 'pyTelegramBotAPI'

You need to download pyTelegramBotAPI , and import - telebot
ps Or you could just open the documentation and solve everything in a minute :D
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.

https://github.com/eternnoir/pyTelegramBotAPI#a-si...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question