Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build bot #1

Closed
Alexandervelilyaev opened this issue Nov 28, 2020 · 4 comments
Closed

Can't build bot #1

Alexandervelilyaev opened this issue Nov 28, 2020 · 4 comments

Comments

@Alexandervelilyaev
Copy link

I did everything according to the instructions
But got the following error:
/home/alex/.local/lib/python3.6/site-packages/requests/init.py:91: RequestsDependencyWarning: urllib3 (1.25.10) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
Traceback (most recent call last):
File "tipper.py", line 19, in
bot = telebot.TeleBot(token=token)
TypeError: init() got an unexpected keyword argument 'token'

Please tell me what am I doing wrong?
Thanks in advance

@mrbeandev
Copy link
Owner

try this

pip install beautifulsoup4 bs4 mysql-connector pyTelegramBotAPI requests telebot urllib3

after u use this command you can skip the requirements.txt file step

@Alexandervelilyaev
Copy link
Author

Thanks. This error are solved. But I got the following:
Traceback (most recent call last):
File "tipper.py", line 19, in
bot = telebot.TeleBot(token=token)
TypeError: init() got an unexpected keyword argument 'token'

I have provided all data in config.py: token, api_key, wapi_username,
db_host, db_user, db_pass, db_database

Please help

@mrbeandev
Copy link
Owner

did you import pytelegrambotapi

pip install pytelegrambotapi

@Alexandervelilyaev
Copy link
Author

It helped me. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants