password_check = telethon.password.compute_check(await client(functions.account.GetPasswordRequest()), "2FA PASSWORD") pass as password=password_check, in EditCreator
Bro I used your code but says 2fa is not correct so I changed code to «password="."» and password was correct but says : Unhandled exception on data Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telethon/tl/tlobject.py", line 194, in __bytes__ return self._bytes() File "/usr/local/lib/python3.10/dist-packages/telethon/tl/functions/channels.py", line 541, in _bytes self.password._bytes(), AttributeError: 'str' object has no attribute '_bytes' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telethon/client/updates.py", line 543, in _dispatch_update await callback(event) File "/root/owner-changer/app.py", line 45, in data res = await previous_owner_client(functions.channels.EditCreatorRequest( 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 63, in _call future = sender.send(request, ordered=ordered) File "/usr/local/lib/python3.10/dist-packages/telethon/network/mtprotosender.py", line 181, in send state = RequestState(request) File "/usr/local/lib/python3.10/dist-packages/telethon/network/requeststate.py", line 17, in __init__ self.data = bytes(request) File "/usr/local/lib/python3.10/dist-packages/telethon/tl/tlobject.py", line 200, in __bytes__ raise TypeError('a TLObject was expected but found something else') TypeError: a TLObject was expected but found something else
Обсуждают сегодня