Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error, Windows 11 #2

Open
and725rey opened this issue May 26, 2024 · 1 comment
Open

error, Windows 11 #2

and725rey opened this issue May 26, 2024 · 1 comment

Comments

@and725rey
Copy link

exception Ошибка во время запуска клиента.
Traceback (most recent call last):
File "C:\Users\ANDREW\Desktop\deanonvoprosy-main\deanon.py", line 173, in
app.run(main())
File "C:\Users\ANDREW\AppData\Roaming\Python\Python312\site-packages\pyrogram\methods\utilities\run.py", line 77, in run
run(coroutine)
File "C:\Program Files\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\ANDREW\Desktop\deanonvoprosy-main\deanon.py", line 160, in main
async with app:
File "C:\Users\ANDREW\AppData\Roaming\Python\Python312\site-packages\pyrogram\client.py", line 311, in aenter
return await self.start()
^^^^^^^^^^^^^^^^^^
File "C:\Users\ANDREW\AppData\Roaming\Python\Python312\site-packages\pyrogram\methods\utilities\start.py", line 62, in start
await self.authorize()
File "C:\Users\ANDREW\AppData\Roaming\Python\Python312\site-packages\pyrogram\client.py", line 359, in authorize
sent_code = await self.send_code(self.phone_number)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ANDREW\AppData\Roaming\Python\Python312\site-packages\pyrogram\methods\auth\send_code.py", line 79, in send_code
return types.SentCode._parse(r)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ANDREW\AppData\Roaming\Python\Python312\site-packages\pyrogram\types\authorization\sent_code.py", line 58, in _parse
type=enums.SentCodeType(type(sent_code.type)),
^^^^^^^^^^^^^^
AttributeError: 'BadMsgNotification' object has no attribute 'type'

@metah4cker
Copy link
Owner

metah4cker commented May 27, 2024

Похоже, что ошибка на стороне фреймворка, который мы используем - Pyrogram. На данный момент, с этой проблемой уже сталкивались другие люди и программисты pyrogram пока что ничего не ответили. Ссылка. Убедитесь, что вы ввели верные данные для входа (номер телефона, код). Возможно в этом и кроется вся суть проблемы.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants