T
T
timur kup2020-09-06 21:20:06
Python
timur kup, 2020-09-06 21:20:06

AttributeError: module 'telebot' has no attribute 'TeleBot' ( telebot )?

Wrote a bot, uploaded it to pythonanywhere.com, writes an error

Traceback (most recent call last):
File "/home/OIHDOIHOIDSD/bottg/bot.py", line 7, in
bot = telebot.TeleBot(token)
AttributeError: module 'telebot' has no attribute 'TeleBot'

Help me please!

connection code:
import telebot

# connecting
token='token'
bot = telebot.TeleBot(token)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SKEPTIC, 2020-09-06
@timur_ffsdfdsf

Not that telebot mb?
Necessary:
pip install pytelegrambotapi

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question