mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Remove hardcoded tokens, opt for environment variable
This commit is contained in:
parent
879b333a11
commit
6b2b3f48a7
7 changed files with 11 additions and 21 deletions
|
|
@ -21,9 +21,7 @@ from aiogram.webhook.aiohttp_server import (
|
|||
main_router = Router()
|
||||
|
||||
BASE_URL = getenv("BASE_URL", "https://example.com")
|
||||
MAIN_BOT_TOKEN = "42:TOKEN"
|
||||
# However, is recommended to get the token from environment variable:
|
||||
# MAIN_BOT_TOKEN = getenv("BOT_TOKEN")
|
||||
MAIN_BOT_TOKEN = getenv("BOT_TOKEN")
|
||||
|
||||
|
||||
WEB_SERVER_HOST = "127.0.0.1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue