LonamiWebs / Telethon

Pure Python 3 MTProto API Telegram client library, for bots too!
https://docs.telethon.dev
MIT License
9.68k stars 1.38k forks source link

Creating a new account implicitly fails on V2 #3746

Closed penn5 closed 1 year ago

penn5 commented 2 years ago

Checklist

Traceback

  File "/home/penn/biobot2/biobot/backends/userbot.py", line 47, in init
    await self.client.start(self.phone, code_callback=self.login_code and (lambda: self.login_code) or (lambda: input(f"Enter login the code you received on {self.phone}: ")))
  File "/home/penn/Telethon/telethon/_client/auth.py", line 23, in __aenter__
    await self.start_fn()
  File "/home/penn/Telethon/telethon/_client/auth.py", line 143, in _start
    me = await self.sign_in(phone, code=value)
  File "/home/penn/Telethon/telethon/_client/auth.py", line 254, in sign_in
    raise errors.PhoneNumberUnoccupiedError(request=request)
TypeError: RpcError.__init__() missing 2 required positional arguments: 'code' and 'message'
Lonami commented 1 year ago

Closing since v2 is still very far off and not ready for public testing.