Login Flags
Login flags tell conversion helpers how to handle authorization state when moving between Telegram Desktop and Telethon sessions.
LoginFlag
LoginFlag is the base integer flag type. Use one of the concrete flags below
instead of constructing it directly.
UseCurrentSession
UseCurrentSession reuses the authorization already present in the source
session.
from opentele2.api import UseCurrentSession
client = await tdesk.ToTelethon("telethon.session", UseCurrentSession)CreateNewSession
CreateNewSession creates a new authorized session during conversion.
from opentele2.api import CreateNewSession
client = await tdesk.ToTelethon("new.session", CreateNewSession)Last updated on