Metadata-Version: 2.4
Name: jetrauserapi
Version: 1.0.1
Summary: A Python library for interacting with Jetra Messenger (User Account)
Home-page: https://github.com/YOUR_USERNAME/JetraUserAPI
Author: Ali VEX
Author-email: Ali VEX <your-email@example.com>
License: MIT
Project-URL: Homepage, https://github.com/YOUR_USERNAME/JetraUserAPI
Project-URL: Repository, https://github.com/YOUR_USERNAME/JetraUserAPI
Project-URL: Issues, https://github.com/YOUR_USERNAME/JetraUserAPI/issues
Keywords: jetra,messenger,api,client,telethon
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Communications :: Chat
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: websockets>=10.0
Requires-Dist: pycryptodome>=3.15.0
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

[![PyPI version](https://badge.fury.io/py/jetrauserapi.svg)](https://badge.fury.io/py/jetrauserapi)
[![GitHub stars](https://img.shields.io/github/stars/lyrdaadhrpyk802-ux/JetraUserAPI.svg)](https://github.com/lyrdaadhrpyk802-ux/JetraUserAPI)

# JetraUserAPI
# JetraUserAPI

[![Python](https://img.shields.io/badge/Python-3.10%2B-blue)](https://www.python.org/)
[![License](https://img.shields.io/badge/License-MIT-green)](LICENSE)

A Python library for interacting with **Jetra Messenger** using user accounts.

Inspired by [Telethon](https://github.com/LonamiWebs/Telethon), JetraUserAPI provides a simple and clean API for automating Jetra Messenger.

## Features

- Login with phone number and OTP
- Send and receive text messages in private chats (PV)
- Send and receive text messages in groups
- Get list of dialogs (users and groups)
- Local SQLite database for message history
- Auto-reconnect on connection loss
- Event handlers (`on_message`, `on_ready`)
- Auto-detection of peer type (user vs group)
- Clean async/await API

## Limitations

The Jetra server blocks several operations for web clients:

- Sending media (photos, videos, files)
- Deleting messages
- Group management (ban, admin)
- Message history from server

## Installation

```bash
git clone https://github.com/YOUR_USERNAME/JetraUserAPI.git
cd JetraUserAPI
pip install -e .
