Telegram setup
These are abbreviated instructions from https://core.telegram.org/bots/tutorial.
Tip
Use https://web.telegram.org for these steps instead of your phone, for easier copying and pasting.
Creating a Telegram Bot
- Open Telegram and search for @BotFather
- Send
/newbot - Follow the prompts to name your bot
- Copy the bot token - you'll need it for
TELOXIDE_TOKENin thesecrets.envfile
Configuring your bot for a telegram group
TrufotBot will send announcements on telegram groups; these can be configured per-patient (but the same group can be reused for multiple patients). For instance, you can have a group "Medication for Alice", which will have everyone who gives Alice medication.
- Invite your bot to a telegram group
- Send
/helpto the group - The bot will reply with the group ID (a negative number like
-1001234567890) - Use this group ID when creating a patient (under "Telegram Group ID).