If you add the Telegram bot to the admin group before the server is fully working, then the imok doesn't know about the group and weirdness ensues.
Scope
Adding the Telegram bot to the admin group causes a webhook to fire which imok uses to register the chat_id for the group. This is a large negative number, and is stored in a Telegramgroup model in Django.
We need to figure out how to handle this happening.
Acceptance Criteria
Make it obvious that this has happened by adding a check to varz
Have a documented way of recovering from this (re-adding the bot is the simplest option)
Questions/Assumptions
Question: can we insert the chat_id from subsequent webhooks without causing a security risk?
Overview
If you add the Telegram bot to the admin group before the server is fully working, then the imok doesn't know about the group and weirdness ensues.
Scope
Adding the Telegram bot to the admin group causes a webhook to fire which imok uses to register the chat_id for the group. This is a large negative number, and is stored in a Telegramgroup model in Django.
We need to figure out how to handle this happening.
Acceptance Criteria
Questions/Assumptions