Skip to main content

pyjetra

Python toolkit for Jetra Messenger, with two independent clients:

  • pyjetra.botapi: Bot API wrapper (sync and async), with FSM, filters, inline keyboards and webhooks.
  • pyjetra.userapi: User account client (MTProto-style protocol, SRP login, 2FA).

Install

pip install pyjetra[bot]     # Bot API only
pip install pyjetra[user]    # User account only
pip install pyjetra[all]     # both

Requires Python 3.10 or newer.

Bot API quick start

from pyjetra.botapi import JetraBot, CommandFilter

bot = JetraBot("YOUR_BOT_TOKEN")

@bot.on_message(filters=[CommandFilter("start")])
def start(msg):
    msg.reply("Hello from pyjetra")

bot.poll()

User account quick start

from pyjetra.userapi import JetraClient

Session and local database files are stored in ~/.pyjetra by default. Change the location with the PYJETRA_DATA_DIR environment variable. Session files are never part of the package.

Banner

The banner is not printed on import. Call pyjetra.botapi.banner.print_banner() if you want it.

Disclaimer

pyjetra is not an official Jetra product. You are responsible for your account and for complying with Jetra's terms.

License

MIT. Author: Ali VEX.

Metadata

Release files for pyjetra 2.0.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 pyjetra 2.0.2
File Size Uploaded Provenance Actions
pyjetra-2.0.2.tar.gz 217.1 kB Without provenance Details for pyjetra-2.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 448.0 kB

Release files / pyjetra-2.0.2.tar.gz

Download URL pyjetra-2.0.2.tar.gz
Size 217.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9ba547f28de67aa09bb337f6c0b87c3701911734048268ab5a3cc6d16c0e5ae
BLAKE2b-256 checksum
How to use checksums
9559409b9309a351d11283aab436d4bbbb50b141f6d7d92cf173446806fedcf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / pyjetra-2.0.2-py3-none-any.whl

Download URL pyjetra-2.0.2-py3-none-any.whl
Size 230.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
733b3608d8dbf55417649cc30ea6f31da3db78a32f81acdecbb5341acdda74a3
BLAKE2b-256 checksum
How to use checksums
c9a74d73d2788c190a0438d150d805d7ceb1496644c9e77fde2a3a1c4d112ff5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for pyjetra 2.0.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.

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