Answer the question
In order to leave comments, you need to log in
Hello, when starting the bot there is an error?
C:\Users\Administrator\Desktop\11>main.py
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\11\main.py", line 3, in
from telebot import types
File " C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\telebot\types.py", line 12, in
from telebot import util
File "C:\Users\Administrator\AppData\Local \Programs\Python\Python39\lib\site-packages\telebot\util.py", line 307, in
def user_link(user: types.User, include_id: bool=False) -> str:
AttributeError: partially initialized module 'telebot .types' has no attribute 'User' (most likely due to a circular import)
C:\Users\Administrator\Desktop\11>
Answer the question
In order to leave comments, you need to log in
pip uninstall telebot
pip install pytelegrambotapi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question