Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sarge1989 opened this issue Jun 17, 2024 · 0 comments
Open

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

sarge1989 opened this issue Jun 17, 2024 · 0 comments
Assignees

Comments

@sarge1989
Copy link
Collaborator

sarge1989 commented Jun 17, 2024

Issues Addressed

  • We need a place to search for past messages quickly without relying on the checkers bot or bigquery
  • We need a quick mechanism to detect and react to any errors in categorisation

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants