Skip to main content

telectron
Telegram MTProto API Framework for Python
Documentation • Releases • Community

telectron

from telectron import Client, filters

app = Client("my_account")


@app.on_message(filters.private)
async def hello(client, message):
    await message.reply_text(f"Hello {message.from_user.mention}")


app.run()

telectron is a modern, elegant and easy-to-use Telegram client library framework written from the ground up in Python and C. It enables you to easily create custom Telegram client applications for both user and bot identities (bot API alternative) via the MTProto API.

Features

  • Easy: You can install telectron with pip and start building your applications right away.
  • Elegant: Low-level details are abstracted and re-presented in a much nicer and easier way.
  • Fast: Crypto parts are boosted up by TgCrypto, a high-performance library written in pure C.
  • Asynchronous: Allows both synchronous and asynchronous models to fit all usage needs.
  • Documented: API methods, types and public interfaces are all well documented.
  • Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.
  • Updated, to make use of the latest Telegram API version and features.
  • Bot API-like: Similar to the Bot API in its simplicity, but much more powerful and detailed.
  • Pluggable: The Smart Plugin system allows to write components with minimal boilerplate code.
  • Comprehensive: Execute any advanced action an official client is able to do, and even more.

Requirements

Installing

pip3 install telectron

Resources

Metadata

Release files for telectron 2.0.115.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telectron 2.0.115.2
File Size Uploaded Provenance Actions
telectron-2.0.115.2.tar.gz 984.4 kB Without provenance Details for telectron-2.0.115.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for telectron 2.0.115.2
File Interpreter ABI Platform Actions
telectron-2.0.115.2-py3-none-any.whl Python 3 none any Details for telectron-2.0.115.2-py3-none-any.whl

Total release size: 5.8 MB

Release files / telectron-2.0.115.2.tar.gz

Download URL telectron-2.0.115.2.tar.gz
Size 984.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e42eb6469a493c579bedb163aa2af0260d28bab0e2292325940fa37c26b7b806
BLAKE2b-256 checksum
How to use checksums
e033d83177af0235a412d7b33b16efddb030585c980a3dec05e2619914b9aae4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / telectron-2.0.115.2-py3-none-any.whl

Download URL telectron-2.0.115.2-py3-none-any.whl
Size 4.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c1c1fcfd334bd106525fc3f7479d6c96c9d5b14ddbb2dd4eb2b32cd765917acc
BLAKE2b-256 checksum
How to use checksums
bde715e68a8c64016d80be4d7ab24516eafa82458992eae0d906a8da8c4638ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Security for telectron 2.0.115.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.115.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page