fix scheduler

This commit is contained in:
Dmitry Afanasyev 2023-04-18 21:10:34 +03:00
parent d88ef52c53
commit b3b2217115
2 changed files with 11 additions and 2 deletions

View File

@ -22,7 +22,16 @@ sudo systemctl start mosgortrans.service
python main.py
```
- change bash bot-start.sh to python main.py
- set `START_WITH_WEBHOOK` to blank
## Delete or set webhook manually
url: https://api.telegram.org/bot{TELEGRAM_TOKEN}/{method}Webhook?url={WEBHOOK_URL}
methods:
- delete
- set
## Local development clean:

View File

@ -5,7 +5,7 @@ WEBHOOK_HOST="https://mydomain.com"
WEBHOOK_PATH="/transport"
# webserver settings
WEBAPP_HOST="127.0.0.1"
WEBAPP_HOST="0.0.0.0"
WEBAPP_PORT="8080"
# set to true to start with webhook. Else bot will start on polling method