tgcf icon indicating copy to clipboard operation
tgcf copied to clipboard

One message skipped when there is flood wait

Open tissole opened this issue 3 years ago • 1 comments

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

tissole avatar Nov 02 '22 18:11 tissole

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.

aahnik avatar Dec 24 '22 03:12 aahnik