tg-notify-deleted-messages icon indicating copy to clipboard operation
tg-notify-deleted-messages copied to clipboard

RPCError 406: UPDATE_APP_TO_LOGIN (caused by SendCodeRequest)

Open hagz0r opened this issue 1 year ago • 0 comments

OS: Ubuntu

Problem: Traceback (most recent call last): File "/usr/src/app/./src/monitor.py", line 46, in with TelegramClient('db/user', os.getenv("TELEGRAM_API_ID"), os.getenv("TELEGRAM_API_HASH")) as client: File "/usr/local/lib/python3.9/site-packages/telethon/helpers.py", line 155, in _sync_enter return loop.run_until_complete(self.aenter()) File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/usr/local/lib/python3.9/site-packages/telethon/client/auth.py", line 636, in aenter return await self.start() File "/usr/local/lib/python3.9/site-packages/telethon/client/auth.py", line 166, in _start await self.send_code_request(phone, force_sms=force_sms) File "/usr/local/lib/python3.9/site-packages/telethon/client/auth.py", line 474, in send_code_request result = await self(functions.auth.SendCodeRequest( File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered) File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 77, in _call result = await future telethon.errors.rpcbaseerrors.AuthKeyError: RPCError 406: UPDATE_APP_TO_LOGIN (caused by SendCodeRequest)

Tried to install tulir-telethon.

hagz0r avatar Aug 12 '24 16:08 hagz0r