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.31k stars 783 forks source link

One message skipped when there is flood wait #371

Open tissole opened 1 year ago

tissole commented 1 year ago

Describe the bug The script skips files in past mode. The file skipped is the next file after resuming from flood wait.

To Reproduce Set up a forward task in past mode.

Expected behavior After resuming from waiting caused by flood wait, the script should continue from where it stopped, but the next file is always skipped after resuming.

System information: Ubuntu 22.04 under WSL

Additional context This is the log from web-ui

INFO     forwarding message with id = 15429                                           past.py:71
INFO     Sleeping for A wait of 2984 seconds is required (caused by SendMediaRequest) past.py:78

INFO     forwarding message with id = 15431                                           past.py:71

The file with ID 15430 is skipped. I checked in the source and the file exists, but it is not forwarded to destination. The bug was reported before #317

aahnik commented 1 year ago

hi @tissole I have understood the reason for this bug, and will fix it soon! This pertains not only to past mode, but also to live mode.