mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update webhook_example.py
This commit is contained in:
parent
e088a27b56
commit
d297dafd46
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue