cd /storage/emulated/0/pyjetra || exit 1
TIMESTAMP=$(date +%Y%m%d_%H%M%S) mkdir -p "backups/readme_final_${TIMESTAMP}" cp README.md "backups/readme_final_${TIMESTAMP}/README.md.bak" echo "=== Backup: backups/readme_final_${TIMESTAMP}/ ==="
cat > README.md << 'EOF'
🌐 English
🚀 What is PyJetra?
PyJetra is the first and most complete Python library for building Jetra bots. It provides a clean, modern interface over the Jetra Bot API with full support for both synchronous and asynchronous workflows.
Whether you're building a small personal bot or a large group-management system, PyJetra gives you all the tools you need — without hiding the details.
✨ Core Features
- 🔄 Sync & Async —
JetraBot(requests) andAsyncJetraBot(aiohttp) - 🎛️ Full Bot API coverage — messages, media, edits, deletes, callbacks, webhooks
- 🧠 FSM state management — step-by-step conversations made easy
- 🎨 Inline keyboards — multi-level menus, URL buttons, callbacks
- 🧩 Advanced filters —
CommandFilter,TextFilter,RegexFilter - 📨 Edited message events —
@bot.on_edited_messagedecorator - 📎 Full media support — photo, document, video, audio, voice, sticker, animation, location, contact, venue
- 🌐 Webhook ready —
set_webhook,delete_webhook,get_webhook_info - 💬 Rich Message type — parses
reply_to_message, forwards, service events - 🐍 Pythonic — type hints, clean dataclasses, no boilerplate
📦 Installation
pip install pyjetra
⚡ Quick Start
from pyjetra import JetraBot, CommandFilter, InlineKeyboardMarkup, InlineKeyboardButton
bot = JetraBot("YOUR_BOT_TOKEN")
@bot.on_message(filters=[CommandFilter("start")])
def start(msg):
keyboard = InlineKeyboardMarkup([
[InlineKeyboardButton(text="Open Jetra", url="https://jetra.ir")],
[InlineKeyboardButton(text="About", callback_data="about")],
])
msg.reply("Welcome to PyJetra!", reply_markup=keyboard)
@bot.on_callback_query()
def on_button(cb):
if cb.data == "about":
cb.answer("PyJetra — Modern Python wrapper for Jetra Bot API")
bot.poll()
🧠 Async Example
import asyncio
from pyjetra import AsyncJetraBot, CommandFilter
bot = AsyncJetraBot("YOUR_BOT_TOKEN")
@bot.on_message(filters=[CommandFilter("start")])
async def start(msg):
await msg.reply("Hello from Async PyJetra!")
asyncio.run(bot.start_polling())
📚 Documentation & Links
· 📦 PyPI: pypi.org/project/pyjetra · 📁 GitHub: github.com/lyrdaadhrpyk802-ux/pyjetra · 🐛 Issues: Report a bug · 🚀 Releases: Version history
🌐 فارسی
🚀 PyJetra چیه؟
PyJetra اولین و کاملترین کتابخانهی پایتون برای ساخت رباتهای جترا است. این کتابخانه یک رابط تمیز و مدرن روی Bot API جترا فراهم میکند و از هر دو حالت همگام (Sync) و ناهمگام (Async) بهطور کامل پشتیبانی میکند.
چه یک ربات شخصی کوچک بسازید و چه یک سیستم مدیریت گروه بزرگ، PyJetra تمام ابزارهای لازم را در اختیار شما قرار میدهد.
✨ امکانات اصلی
· 🔄 همگام و ناهمگام — JetraBot (requests) و AsyncJetraBot (aiohttp) · 🎛️ پوشش کامل Bot API — پیام، رسانه، ویرایش، حذف، کلیکها، وبهوک · 🧠 مدیریت وضعیت (FSM) — گفتگوهای چند مرحلهای · 🎨 دکمههای شیشهای — منوهای چندسطحی، دکمههای لینک، کالبک · 🧩 فیلترهای پیشرفته — دستورات، متن، الگوهای Regex · 📨 رویداد ویرایش پیام — دکوراتور @bot.on_edited_message · 📎 پشتیبانی کامل رسانه — عکس، فایل، ویدیو، صدا، ویس، استیکر، انیمیشن، موقعیت، مخاطب، مکان · 🌐 آمادهی Webhook — تنظیم، حذف و دریافت اطلاعات وبهوک · 💬 تایپ کامل Message — پارس reply_to_message، فوروارد و رویدادهای سرویس · 🐍 پایتونیک — type hint، dataclass تمیز، بدون کد اضافه
📦 نصب
pip install pyjetra
⚡ شروع سریع
from pyjetra import JetraBot, CommandFilter
bot = JetraBot("YOUR_BOT_TOKEN")
@bot.on_message(filters=[CommandFilter("start")])
def start(msg):
msg.reply("سلام از PyJetra!")
bot.poll()
👤 About the Developer
Ali VEX
Founder & Lead Developer of PyJetra Bot Developer • Python Enthusiast • Jetra Community Member
Ali VEX is a passionate Python developer who created PyJetra — the first and most complete Python library for the Jetra Bot API. He is active in the Jetra developer community and maintains JetraGuard, a full-featured group-management bot built on top of PyJetra.
His goal: make Jetra bot development accessible, clean, and fun for every developer — from beginners to professionals.
📬 Connect with Ali VEX
Platform Link 💬 Jetra Profile https://jetra.ir/UserBoT 📢 PyJetra Channel https://jetra.ir/pyJetra 👥 Community Chat https://jetra.ir/Chatpyjetra 🐙 GitHub https://github.com/lyrdaadhrpyk802-ux/pyjetra 📧 Email lyrdaadhrpyk802@gmail.com
Metadata
Release files for pyjetra 1.7.0
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.0.tar.gz | 32.6 kB | Without provenance | Details for pyjetra-1.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyjetra-1.7.0-py3-none-any.whl | Python 3 | none | any | Details for pyjetra-1.7.0-py3-none-any.whl |
Total release size: 58.4 kB
Release files / pyjetra-1.7.0.tar.gz
| Download URL | pyjetra-1.7.0.tar.gz |
|---|---|
| Size | 32.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14dec22a2bf56a816151c92c14c908f4e37c36fb3f26174125da933499060d8f
|
|
BLAKE2b-256 checksum How to use checksums |
b95fde57edbf4504e97741f772a4b63634df10dc08edf8744a59abe7e811a123
|
| 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.0-py3-none-any.whl
| Download URL | pyjetra-1.7.0-py3-none-any.whl |
|---|---|
| Size | 25.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b85814b1d4318f7f9262bc70ba9abf6cd40f5a62b9762f50e168eee5fd8a970
|
|
BLAKE2b-256 checksum How to use checksums |
466c3473143f55e63792abf03305860eb516fdf27a3e44408a782c3bb5038768
|
| 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.0
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.