Get Config Values
Here is the complete guide to get all config values.
Config Types
Config values are Divided in to 2 Parts.
Required Config Values
These are need bot to work without any errors.
Get APP_ID
and API_HASH
APP_ID
and API_HASH
For this Go to my.telegram.org . Then create a new app (If you haven't did this already). Then simply copy App Id and Api Hash.
Get SESSION_NAME
SESSION_NAME
For this you need Pyrogram String Session. To Get that you can run the Official Repl.it script. Alternatively You can use @PyroStringSessionbot or @genStr_Bot.
Get BOT_TOKEN
BOT_TOKEN
To get this go to @BotFather . Make a new bot by sending /newbot
command to @BotFather. Follow the given instructions and finish the setup. Then Copy the Bot Token.
Get ARQ_API_KEY
ARQ_API_KEY
For this go to @ARQRobot and start it. Then Click on "Commands ❓" button in start message. Then click on "API KEY" button. Send /get_key
command to @ARQRobot. Now simply give you name and get the ARQ API Key.
Get BOT_OWNER
BOT_OWNER
This is your telegram user id. To get this just go to @MissRose_bot and start it. Then send /info
command. Finally copy ID.
Get SUDO_USERS
SUDO_USERS
Get BOT_USERNAME
BOT_USERNAME
This is you bot's username that we created in this step. Add this value without "@"
Get LOG_CHANNEL
LOG_CHANNEL
To get this go to Telegram and Make a new private channel. Then Forward a message from that channel to @ChannelidHEXbot and Copy the Channel ID.
Get HEROKU_API_KEY
and HEROKU_APP_NAME
HEROKU_API_KEY
and HEROKU_APP_NAME
HEROKU_APP_NAME
is your Heroku app name that you entered first. To get HEROKU_API_KEY
go to Your Heroku Account Page , scroll down and find API Key section. Then click on Reveal button and Get the Api Key
Get DATABASE_URL
DATABASE_URL
Get Your Own MongoDB url at https://www.mongodb.com/. If You can't understand how to do that Watch the Tutorial Video.
Non-Required Config Values
These aren't needed to Deploy your bot. If you need better customized bot fill these.
Get THUMB_URL
THUMB_URL
This is the thumbnail url. Change this to your own if needed. (Use telegra.ph to upload your thumbnail)
Get UPDATES_CHANNEL
UPDATES_CHANNEL
Get UPSTREAM_REPO
UPSTREAM_REPO
This is the Github Repository URL of your bot. Needed for Update module of your bot. Set this if you're using your own custom fork. (Recommended to keep it default)
Last updated
Was this helpful?