M
M
may_gaff2022-01-14 13:54:11
Python
may_gaff, 2022-01-14 13:54:11

Error when running the script, I can't decide the third day, Maybe I'm stupid?

from lib.config import config
from lib.dbase import dbase
from lib.payment import Qiwi

from telebot import AsyncTeleBot
import time, requests, math, subprocess, re, threading
import keyboard, template

bot = AsyncTeleBot(config.get_data('token') )

livelist_process = {}
mailing_message = ''



C:\Users\admin\Desktop\master bum>python setup.py
Traceback (most recent call last):
File "C:\Users\admin\Desktop\master bum\setup.py", line 5, in
from telebot import AsyncTeleBot
ImportError: cannot import name 'AsyncTeleBot' from 'telebot' (C:\Users\admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telebot\__init__.py)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2022-01-14
@SoreMix

pip uninstall telebot
pip install -U pytelegrambotapi

https://github.com/eternnoir/pyTelegramBotAPI

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question