opentele
opentele copied to clipboard
Getting SessionPasswordNeededError
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)