I
I
iqmen2020-10-15 20:55:46
Python
iqmen, 2020-10-15 20:55:46

VPN connection in Python. What is the best way to implement on MacOS?

There is a Telegram Bot program. The code is presented below.

import telebot

bot = telebot.TeleBot("1245989665:AAHrsujBU3xtvFgBHUJFlIz9UwywQv8eOqE")

@bot.message_handler(content_typs=['text'])
def lalala(message):
  bot.send_message(message.chat.id, message.text)

bot.polling(none_stop=True)


But when I run it through the terminal, I get this error. What could it be and how can it be solved?

Traceback (most recent call last):
  File "bot2.py", line 1, in <module>
    import telebot
ImportError: No module named telebot


Tell me please)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Susanin, 2020-10-15
@ivan1234554321

You do not have the library installed
. To install, enter this command:pip install PyTelegramBotAPI

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question