-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Since adding auto-callout functionality, users need a way to target a specific message and see if it contains a repost. They'll have to reply to it like with /whitelist
Hash the picture or url and see if the hash exists. If not, this is likely new content (or replying to a message the bot hasn't seen or acknowledged due to /toggle). Update the group data and reply with a "this is not a repost" message.
If the hash exists, but the message isn't in the list, it's a repost that wasn't seen or caught before. Update the group data and reply with "this is a repost but i haven't seen this before". Maybe check if message id is less than first entry in the list? Not sure what kind of message to reply with if i want to communicate that it's possibly the original post but not necessarily, and it might not be a repost?
If the hash exists and the message id is in the list, reply with "yep this is a repost". If it's the first element in the list, "this is the original post"