skip to Main Content

How to run Python script in venv? – Telegram API

Im trying to start telegram bot in Linux using venv. But bot starts only if venv activated manualy. Python code: #!env/bin/python3 # -*- coding: utf-8 -*- import config import telebot bot = telebot.TeleBot(config.token) @bot.message_handler(content_types=["text"]) def repeat_all_messages(message): bot.send_message(message.chat.id, message.text) if __name__…

VIEW QUESTION
Back To Top
Search