Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync failes at specific message, AttributeError: 'MessageReplyStoryHeader' object has no attribute 'reply_to_msg_id' #150

Open
subhead opened this issue Dec 18, 2024 · 0 comments

Comments

@subhead
Copy link

subhead commented Dec 18, 2024

Hello,

i try to sync a private chat and i recieve an error and the sync stops at the specific message. The message is a normale text message without images, links or whatever else can be included.

Is there a way to skip a failed message and continue with the sync of the following messages?

2024-12-18 12:37:53,849: cryptg detected, it will be used for encryption
2024-12-18 12:37:54,064: starting Telegram sync (batch_size=2000, limit=0, wait=5, mode=standard)
2024-12-18 12:37:54,283: Connecting to 149.154.167.51:443/TcpFull...
2024-12-18 12:37:54,323: Connection to 149.154.167.51:443/TcpFull complete!
2024-12-18 12:37:54,602: fetching from last message id=84652 (2024-09-09 00:00:00)
Traceback (most recent call last):
  File "E:\Dev\telegram\.venv-win\Scripts\tg-archive-script.py", line 33, in <module>
    sys.exit(load_entry_point('tg-archive==1.2.2', 'console_scripts', 'tg-archive')())
  File "E:\Dev\telegram\.venv-win\lib\site-packages\tgarchive\__init__.py", line 142, in main
    s.sync(args.id, args.from_id)
  File "E:\Dev\telegram\.venv-win\lib\site-packages\tgarchive\sync.py", line 56, in sync
    for m in self._get_messages(group_id,
  File "E:\Dev\telegram\.venv-win\lib\site-packages\tgarchive\sync.py", line 184, in _get_messages
    reply_to=m.reply_to_msg_id if m.reply_to and m.reply_to.reply_to_msg_id else None,
AttributeError: 'MessageReplyStoryHeader' object has no attribute 'reply_to_msg_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant