proseltd / Telepathy-Community

Public release of Telepathy, an OSINT toolkit for investigating Telegram chats.
MIT License
949 stars 133 forks source link

Upgrading version of telethon? #47

Open anothercookiecrumbles opened 1 year ago

anothercookiecrumbles commented 1 year ago

Hi, so it looks like there’s a bug in telethon 1.25 which means that for some channels get_messages / iter_messages only returns a 100 items. This is inconsistent, i.e. for some channels you get everything, and for some channels, you only get ~100 messages. (This bug is constantly reproducible for specific channels)

It appears to be fixed in telethon v1.27 though. Happy to raise a PR with the new version, but just wondering if there are any compatibility issues that you’re already aware of that’s a blocker to the update.

Thanks for creating the library — allows me to retire my fragile scripts!

proseltd commented 1 year ago

Hi there!

There shouldn't be any compatibility issues, though I'll be thoroughly testing this shortly as Telepathy moves to 3.0.0. Let me know if you do try to upgrade and run into any issues!

anothercookiecrumbles commented 1 year ago

I’ve been running 1.27 at my end for about a week and it seems to work. For some channels, though, I do run into: An exception occurred. 'NoneType' object has no attribute ‘user_id’ but I’ve not had a moment to investigate further. If I do see something that ties it into the newer version of telethon, I’ll let you know though.