Opentele offers the ability to use official APIs, which are used by official apps. # Connect and print all logged in devices await client. ToTelethon ( "ssion", CreateNewSession, api ) # Although Telegram Desktop doesn't let you authorize other # sessions via QR Code (or it doesn't have that feature), # it is still available across all platforms (APIs). Generate () # Convert TDesktop session to telethon client # CreateNewSession flag will use the current existing session to # authorize the new client by `Login via QR code`. Load TDesktop from tdata folder and convert it to telethon, with a custom API: from opentele.td import TDesktop from opentele.tl import TelegramClient from opentele.api import API, CreateNewSession, UseCurrentSession import asyncio async def main (): # Load TDesktop client from tdata folder tdataFolder = r "C:\Users\\AppData\Roaming\Telegram Desktop\tdata" tdesk = TDesktop ( tdataFolder ) # Using official iOS API with randomly generated device info # print(api) to see more api = API. pyQt5 - Used by Telegram Desktop to streams data from files.tgcrypto - AES-256-IGE encryption to works with tdata.telethon - Widely used Telegram's API library for Python.Randomize device info using real data that recognized by Telegram server.Use telethon with official APIs to avoid bot detection.Convert Telegram Desktop tdata sessions to telethon sessions and vice versa.A Python Telegram API Library for converting between tdata and telethon sessions, with built-in official Telegram APIs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |