pnpm i
pnpm envio dev
cp .env.example .env
Edit the .env
file with your Telegram bot token, channel id and message thread id.
- msg @BotFather
/start
->/newbot
& follow the prompts (this will print the bot token in the chat once successfully created) - Add the bot to your telegram group
- In the group, send the following message
@MyUniqueBot /start
- Visit
https://api.telegram.org/bot<YourBOTToken>/getUpdates
- Find the channel chat id of the group you want to monitor and paste it in the env file (it should start with "-")
*Note, If you created the new group with the bot and you only get {"ok":true,"result":[]}, remove and add the bot again to the group
Please refer to the documentation website for a thorough guide on all Envio indexer features