bettersg / checkMate

GNU General Public License v3.0
5 stars 0 forks source link

Broadcast every new message in a telegram chatgroup with admins #349

Open sarge1989 opened 2 weeks ago

sarge1989 commented 2 weeks ago

Issues Addressed

To Do:

  1. Everytime theres a new Message object is created in Firestore, on top of creating a poll, to send the content (text or image+caption) to this new Telegram chatgroup
    • If it's auto-classified, follow up with an immediate reply to the Telegram message informing of the category.
    • Else, follow up with an immediate reply saying it's being voted on.
  2. Everytime isAssessed flag is true and there is a change in primaryCategory, reply to the original message in telegram (point 1) informing of the change. This will include the first time the Message changes to isAssessed.

Remarks

  1. Will have to create a new secret to store the chatID
  2. Create two telegram chats, one for nonprod testing and one for prod. For the nonprod testing, just put the telegram chatID into .env.local.
  3. We can use the current telegram report bot to handle this part