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

Deploying on a server #17

Open
vrlps opened this issue Jun 20, 2022 · 1 comment
Open

Deploying on a server #17

vrlps opened this issue Jun 20, 2022 · 1 comment

Comments

@vrlps
Copy link

vrlps commented Jun 20, 2022

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

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

@Alexey336
Copy link

Привет, в файле 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()

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