Telegram¶
Limitations
In Telegram, although the configuration uses the term channels, they are actually implemented as groups with topics.
Authentication¶
- Use https://<your_domain>/auth/callback as ENV
AUTH_REDIRECT_URL↰ - Open BotFather Mini App
- Select IMPulse bot -> Bot Settings
- In the Web Login section:
Create a bot¶
Follow this instruction. Save the bot token as the TELEGRAM_BOT_TOKEN↰ environment variable (used in section 2.3 here).
Configure groups¶
-
Open your group, go to the menu, and click "Manage group":
- enable "Topics"
- optionally, set our logo by clicking the "photo" icon
- click Save
-
Add the bot to your group
-
Promote the bot to administrator, enable "Manage topics"
-
All users from
messenger.admin_users↰ must be members of every group listed in theroute↰ block -
Add users from
messenger.chains↰ to their respective groups.For simplicity, you can add all users from
messenger.users↰ to all groups defined in theroute↰ block -
It is highly recommended to mute group notifications forever to reduce noise
-
Get the group ID (using the
@myidbotbot)- add
@myidbotbot to group - go to the group's "General" topic and send the command:
/getgroupid@myidbot - use the returned group ID in the
messenger.channels↰ configuration block - you can remove
@myidbotafterwards
- add
-
Make sure the IMPulse bot has permission to interact with users. If you see the log warning "user <username> not found in Telegram and will not be notified" - ask the user
<username>to send a message to the bot. This usually resolves the issue.