MaskRay / telegramircd

Control Telegram user account with IRC
Apache License 2.0
66 stars 15 forks source link

Channel members are missing from some rooms #13

Closed rodneyrod closed 6 years ago

rodneyrod commented 6 years ago

Getting a few errors in my lists, the service seems to do this at launch now. If needed I can supply the full traceback with names redacted.

rodneyrod commented 6 years ago

ERROR: channel_members {'name': '[ROOM NAME HERE]', 'peer': <telethon.tl.types.PeerChannel object at 0x7ff29c76e198>} Traceback (most recent call last): File "./telegramircd.py", line 303, in channel_members self.channel_get_participants(channel) File "./telegramircd.py", line 171, in channel_get_participants 100, TypeError: init() missing 1 required positional argument: 'hash'

MaskRay commented 6 years ago

Pushed a new commit. In the latest schema.tl shipped with Telethon, tl.functions.channels.GetParticipantsRequest accepts one extra argument hash:int.

MaskRay commented 6 years ago

Yes, sometimes participants are missing.