tgbot-collection / SearchGram

🔠 Telegram 中文聊天记录搜索机器人 Effortlessly search your Telegram chat history, including CJK languages, with fuzzy and typo-tolerant search capabilities.
GNU General Public License v3.0
263 stars 27 forks source link

about the sync history message #119

Closed ZhiShengYuan closed 8 months ago

ZhiShengYuan commented 9 months ago

When I attempt to synchronize message history, it notifies me with the error pyrogram.errors.exceptions.bad_request_400.PeerIdInvalid: Telegram says: [400 PEER_ID_INVALID] - The peer id being used is invalid or not known yet . This issue occurs towards the end of syncing for certain accounts. I suspect that the program may not handle the conclusion of the message syncing process properly.

BennyThink commented 8 months ago

It is recommended to use usernames whenever possible when configuring the sync ID

https://github.com/tgbot-collection/SearchGram/blob/master/Docker.md#6-optionalsetup-sync-id