Skip to main content

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 from tdata 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


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)

Uploaded Source

Built Distribution

opentele-1.0.5-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page