fk-war-in-ukraine / report-telegram-channels

45 stars 15 forks source link

Segmentation Fault #19

Closed depaix closed 2 weeks ago

depaix commented 2 weeks ago

File "/home/thm/Desktop/report-telegram-channels/./main.py", line 54, in with TelegramClient('ReportDirtyChannels', api_id, api_hash) as client: File "/usr/local/lib/python3.10/dist-packages/telethon/helpers.py", line 184, in _sync_enter return loop.run_until_complete(self.aenter()) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/usr/local/lib/python3.10/dist-packages/telethon/client/auth.py", line 713, in aenter return await self.start() File "/usr/local/lib/python3.10/dist-packages/telethon/client/auth.py", line 189, in _start await self.send_code_request(phone, force_sms=force_sms) File "/usr/local/lib/python3.10/dist-packages/telethon/client/auth.py", line 514, in send_code_request result = await self(functions.auth.SendCodeRequest( File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered) File "/usr/local/lib/python3.10/dist-packages/telethon/client/users.py", line 84, in _call result = await future telethon.errors.rpcbaseerrors.AuthKeyError: RPCError 406: UPDATE_APP_TO_LOGIN (caused by SendCodeRequest) zsh: segmentation fault

depaix commented 2 weeks ago

Fixed with pip install --upgrade telethon to newest version (1.36.0)