skip to Main Content

I'm writing a telegram bot with python – Telegram API

I want to write a telegram bot via Python, but it doesn't work. import telebot bot = telebot.TeleBot("my_token") @bot.message_handler(content_types=['text']) def sending(message): bot.send_message(message.chat.id, message.text) # RUN bot.polling(non_stop=True) Returns to me the following problem. AttributeError: 'TeleBot' object has no attribute 'message_handler'

VIEW QUESTION

Error while running Certbot in AWS EC2 CentOS 7.4

When I run sudo certbot on terminal Get following error [root@ip-111-111-111-111 home]# sudo certbot Traceback (most recent call last): File "/bin/certbot", line 9, in <module> load_entry_point('certbot==1.0.0', 'console_scripts', 'certbot')() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line…

VIEW QUESTION

Venv fails in CentOS, ensurepip missing

Im trying to install a venv in python3 (on CentOS). However i get the following error: Error: Command '['/home/cleared/Develop/test/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1. I guess there is some problem with my ensurepip... Running python3 -m…

VIEW QUESTION
Back To Top
Search