OpenTele is a python library created to make life easier for Telegram API Developers.
Project description
OpenTele
OpenTele is a python library created to make life easier for Telegram API Developers. It helps you:
- Process tdesktop's tdata information
- Convert between tdata and telethon sessions
- Many more features are waiting to be added
Installation
- This library was created with the help of telethon, tgcrypto and pyQt5
- Just run this command to install it
pip install --upgrade opentele
First Run
- This example creates a
telethon.TelegramClient
fromtdata
folder
import opentele
import asyncio
import os
async def main():
tdataFolder = f"{os.getenv('APPDATA')}\\Telegram Desktop\\tdata"
tdesktop = opentele.TDesktop()
tdesktop.FromTData(tdataFolder)
client = tdesktop.ToTelethon()
await client.connect()
peer_user = await client.get_me()
print(f"Logged in as {peer_user.username}")
asyncio.get_event_loop().run_until_complete(main())
Documentation
to be added
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
opentele-1.0.5.tar.gz
(9.0 kB
view hashes)