aahnik / tgcf

The ultimate tool to automate custom telegram message forwarding. Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ... Call it whatever you like! tgcf can fulfill your custom needs.
https://github.com/aahnik/tgcf/wiki
MIT License
1.29k stars 773 forks source link

Plugin to prevent forwarding of recent duplicate messages #578

Open 8of opened 3 months ago

8of commented 3 months ago

Is your feature request related to a problem? Please describe. Sometimes the same TG users post the same info to a different telegram channels in a short time, one after another.

Describe the solution you'd like Simple plugin to check last (5) messages we received. Drop any new message that is already in the list. Forward message otherwise, and add it to the list. Drop one element from list if it contains more than (5) element.

Later we can expand on the simple implementation to solve problems like this: https://github.com/aahnik/tgcf/issues/57