Update webhook_example.py

This commit is contained in:
Stanislav Semenov 2020-05-31 22:23:40 +03:00 committed by GitHub
parent e088a27b56
commit d297dafd46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ API_TOKEN = 'Your bot token'
# webserver settings
WEBAPP_HOST = 'localhost' # or 0.0.0.0
WEBAPP_PORT = 88 # Ports currently supported for Webhooks: 443, 80, 88, 8443
WEBAPP_PORT = 88
# SSL settings
WEBHOOK_SSL_CERT = 'path_to_cert.pem'
@ -20,8 +20,9 @@ WEBHOOK_SSL_PRIV = 'path_to_private.key'
# webhook settings
WEBHOOK_HOST = 'XX.XX.XX.XX' # IP your host
WEBHOOK_PORT = 88 # Ports currently supported for Webhooks: 443, 80, 88, 8443
WEBHOOK_PATH = '/bot'
WEBHOOK_URL = f'{WEBHOOK_HOST}:{WEBAPP_PORT}{WEBHOOK_PATH}'
WEBHOOK_URL = f'{WEBHOOK_HOST}:{WEBHOOK_PORT}{WEBHOOK_PATH}'
logging.basicConfig(level=logging.INFO)