# PyJetra
یک کتابخانهی مدرن پایتون برای ساخت رباتهای پیامرسان جترا (همگام و ناهمگام).
A modern Python wrapper for the Jetra Bot API (Sync & Async).

## نصب / Installation
```bash
pip install pyjetra
نیازمند پایتون ۳.۷ به بالا (Requires Python 3.7+)
امکانات / Features
· پشتیبانی از هر دو حالت همگام (Sync) و ناهمگام (Async) · پشتیبانی کامل از تمام متدهای Jetra Bot API (پیام، رسانه، وبهوک و...) · مدیریت وضعیت (FSM) برای گفتگوهای چندمرحلهای · دکمههای شیشهای (Inline Keyboards) و فیلترهای پیشرفته · قابلیت استفاده از وبهوک با هندلرهای آماده (WSGI/ASGI)
شروع سریع / Quick Start
from pyjetra import JetraBot, CommandFilter
bot = JetraBot("YOUR_BOT_TOKEN")
@bot.on_message(filters=[CommandFilter("start")])
def start(msg):
msg.reply("سلام! PyJetra با موفقیت متصل شد.")
bot.poll()
حالت ناهمگام / Async Example
import asyncio
from pyjetra import AsyncJetraBot, CommandFilter
async def main():
async with AsyncJetraBot("YOUR_BOT_TOKEN") as bot:
@bot.on_message(filters=[CommandFilter("start")])
async def start(msg):
await msg.reply("سلام از حالت Async!")
await bot.start_polling()
asyncio.run(main())
مستندات و لینکها / Links
· مستندات رسمی جترا (Jetra Docs): jetra.ir/docs/bots · مخزن گیتهاب (GitHub): github.com/lyrdaadhrpyk802-ux/pyjetra · گزارش مشکلات (Issues): github.com/lyrdaadhrpyk802-ux/pyjetra/issues
توسعهدهنده / Developer
Ali VEX
· پروفایل جترا (Jetra Profile): @UserBoT · ایمیل (Email): lyrdaadhrpyk802@gmail.com
Released under the MIT License.
Metadata
Release files for pyjetra 1.7.4
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 |
|---|---|---|---|---|
| pyjetra-1.7.4.tar.gz | 58.7 kB | Without provenance | Details for pyjetra-1.7.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyjetra-1.7.4-py3-none-any.whl | Python 3 | none | any | Details for pyjetra-1.7.4-py3-none-any.whl |
Total release size: 82.8 kB
Release files / pyjetra-1.7.4.tar.gz
| Download URL | pyjetra-1.7.4.tar.gz |
|---|---|
| Size | 58.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ecb1bd98b88f87601bc8638eb1645c366a65cfdd3b0fe16570c8ee964f4863c
|
|
BLAKE2b-256 checksum How to use checksums |
33fbe70725d756683723cd30778670e20933773e54c212626f71fed84a251195
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / pyjetra-1.7.4-py3-none-any.whl
| Download URL | pyjetra-1.7.4-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41273355b0c8424cbd0ff81014382604d2794d389b36881d6899301fdd3d1e44
|
|
BLAKE2b-256 checksum How to use checksums |
1b7a05f379ff848eb4b4b63fac3f83248c4b00c0d407d49294b95e7b53af4768
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for pyjetra 1.7.4
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.