ohld / telegram-support-bot

Easy way to use Telegram bot to hide your identity. Useful for support, anonymous channel management. Free clone of Livegram Bot.
https://t.me/danokhlopkov
MIT License
332 stars 271 forks source link

Deploying on a server #17

Open vrlps opened 2 years ago

vrlps commented 2 years ago

Can you tell me how to deploy this bot on a private server? For example a VPS or a home Raspberry Pi.

Если можно, ответьте на на русском:)

Alexey336 commented 2 years ago

Привет, в файле main.py замените содержимое на следующее

from telegram.ext import Updater
from handlers import setup_dispatcher
from settings import TELEGRAM_TOKEN, HEROKU_APP_NAME, PORT

# Setup bot handlers
updater = Updater(TELEGRAM_TOKEN)

dp = updater.dispatcher
dp = setup_dispatcher(dp)

# Run bot
print('Bot has started!')
updater.start_polling()
updater.idle()