thedemons / opentele

A Python Telegram API Library for converting between tdata and telethon sessions, with built-in official Telegram APIs.
https://opentele.readthedocs.io/
MIT License
306 stars 99 forks source link

Getting SessionPasswordNeededError #109

Open RobertAzovski opened 9 months ago

RobertAzovski commented 9 months ago

Whenever I try to use current session I still get SessionPasswordNeededError: SessionPasswordNeededError('Two-steps verification is enabled and a password is required (caused by GetAuthorizationsRequest)')

I tried both method of obtaining TelegramClient, in both CurrentSession flag was used.

 # client = await TelegramClient.FromTDesktop(tdesk, session=None, flag=UseCurrentSession, proxy=proxy)
    client = await tdesk.ToTelethon(session=None, flag=UseCurrentSession, proxy=proxy)