Setup¶
Requirements¶
Get Telegram API ID, API HASH¶
Note
In order to dev with restart bot on changes, no using Telegram's bot server which may lead to temporarily ban.
- Go to https://my.telegram.org/
- Login
- Create app
- Add
TELEGRAM_API_ID="${App api_id}"
,TELEGRAM_API_HASH="${App api_hash}"
to.env
Get Bot token¶
- Chat with @BotFather
- Create bot
- Add
BOT_TOKEN=${bot token}
to.env
Get Chat IDs¶
Note
To let the bot know which chat IDs should it serve
- Get the message from the chat, forward to @RoseClone_bot
- Reply the message with
/id
- Gather all chat IDs you want, separate them with space and add
AUTHORIZED_CHATS=${id1 id2}
to.env
Get Owner IDs¶
Note
The owner which will have right manage the bot
- Forward message from a user to @userinfobot
- Add
OWNERS=${id1 id2}
to.env
Example .env