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.34k stars 795 forks source link

User account can't find too old messages #481

Closed MuhammadBayiz closed 10 months ago

MuhammadBayiz commented 1 year ago

Describe the bug Hi! Got a bug/issue with this I'm using a user account to backup a group content the group has a proximitly 7 thousand videos and the IDs goes from 3 to 10466 i configured the offset and the end but when i run it it started at 4831 usually this is the case i tried other groups as well with huge number of files but same issue. Any ideas? Thanks in advance

To Reproduce Forward messages from a huge group with other 10 thousand messages

Expected behavior forward messages from ID N. 3 to ID N. 10466 with filtered messages to be forwarded

System information: Ubuntu 20.04 running it on a podman container

Additional context log of tgcf: log.txt

MobCode100 commented 1 year ago

I see that you're trying to forward only media files, do you get them all?

MuhammadBayiz commented 1 year ago

I see that you're trying to forward only media files, do you get them all?

Yes that's right, it will filter out everything but videos photos documents.

Edit: as for the question, i receiv everything from where it started (ID N. 4831 to 10466) but older messages older than 4831 no i don't get anything that old Also i can clearly see the messages in my telegram

MobCode100 commented 1 year ago

Can you share me the link for the group? I might try to reproduce.

MuhammadBayiz commented 1 year ago

Can you share me the link for the group? I might try to reproduce.

Uh... Why not, what's your username on TG the group is private so i need to send it in DM

MobCode100 commented 1 year ago

Can you share me the link for the group? I might try to reproduce.

Uh... Why not, what's your username on TG the group is private so i need to send it in DM

Thank you for the thought, nevermind, I've found a channel that has a lot of messages.

MuhammadBayiz commented 1 year ago

Thank you for the thought, nevermind, I've found a channel that has a lot of messages.

That's great, please let me know how it goes

aahnik commented 10 months ago

this is hard to reproduce for me, i think this is something to do with telegram's protocols, and the telegram client libraries i am using.... as this is not directly under tgcf's control am closing this.

MuhammadBayiz commented 10 months ago

Understandable, i think the problem were with the group message IDs the old messages had normal ids up until at a big number the numbers got reset and started again so definitely a telegram problem thanks for checking