Mandatory Variables
Note
Never disclose these keys to anyone!
API Keys
API Keys are one of the most important needed keys to work with any MTProto Framework. They include a API_ID and API_HASH.
You can get these from my.telegram.org
Bot Token
Bot Token is a specific token for every telegram bot. You will get it when you create a new bot using BotFather
It should be filled as BOT_TOKEN
Filling the Variables
For Local Deploy - fill them in
.envfile.For Heroku Deploy - fill them after you tap on
Deploy to Herokubutton on your repository.
Non-mandatory Variables
CMD_PREFIXES- prefixes for commands (defaults to “/”). For multiple prefixes, specify multiple together like “/.*”OWNER_ID- Your Telegram IDTIMEZONE- “Asia/Kolkata”DATABASE_URL- for PostgreSQL databaseREDIS_URL- for Redis database (public endpoint)REDIS_PASSWORD- for Redis databaseDB_SESSION- for using Telegram as a database.DB_CHAT_ID- for using Telegram as a database (ID of a new channel).