geeksforsocialchange / imok

A simple bot to support people doing risky activities
https://gfsc.studio/blog/2021/imok-is-launched/
MIT License
11 stars 1 forks source link

Unexpected behaviour when adding the bot to the group before configuring the server #91

Closed wheresalice closed 3 years ago

wheresalice commented 3 years ago

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