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
- Python 3.6 or higher.
- A Telegram API key.
Installing
pip3 install telectron
Resources
- The docs contain lots of resources to help you get started with telectron: https://docs.telectron.org.
- Seeking extra help? Come join and ask our community: https://t.me/telectron.
- For other kind of inquiries, you can send a message or an e-mail.
Copyright & License
- Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
- Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)
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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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.