Telegram bot: Behind the scenes
Manage your websites from a chat.
AWS services
- API Gateway and Lambda: a webhook function checks Telegram's secret and puts every update on a queue.
- SQS: a bot function reads the queue, so a busy moment or a retry never loses or repeats an update.
- A notifier function sends the messages about releases, files and numbers.
- SSM Parameter Store: the bot token and secrets are kept encrypted, never in the code.
Decisions
- The bot calls the same use-cases as the API, so one set of rules and permissions covers every way in.
- Every action asks for the permission of the linked user, workspace by workspace.
Cost
Lambda and SQS stay inside the free tier at this size.