Skip to main content

Pyeitaa

A simple Python SDK for interacting with the Eitaa API.

Lightweight and easy-to-use wrapper for Eitaa messenger API.

🚀 Installation

pip install pyeitaa

🔑 How do I get a token?

Get your token from:

"https://eitaayar.ir/" (https://eitaayar.ir/)


⚡ Quick Start

from pyeitaa import Eitaa

bot = Eitaa("YOUR_TOKEN")

print(bot.get_me())


💬 Send Message

bot.send_message( chat_id="123456", text="Hello from Pyeitaa!" )

This method sends a text message to a channel or group.

Parameters

  • "chat_id" (required) Unique identifier of the channel or group. You can also use the username without "@".

    Example:

    • "chat_id="eitaayar""
    • "chat_id="1404""
  • "text" (required) Message content to send.

  • "title" (optional) Internal title used for search and display purposes.

  • "disable_notification" (optional) Sends the message silently without notification.

  • "reply_to_message_id" (optional) Sends the message as a reply.

  • "date" (optional) Unix timestamp for scheduled sending.

  • "pin" (optional) Pins the message after sending.

  • "viewCountForDelete" (optional) Deletes the message after reaching a specific view count.


📎 Send File

bot.send_file( chat_id="123456", file_path="image.png", caption="Hello file" )

This method sends media or files.

Parameters

  • "chat_id" (required) Channel or group identifier.

  • "file_path" (required) Path to the file.

  • "caption" (optional) Caption text for the file.


📌 Important Notes

  • To send a GIF file, rename the extension to ".gif"

Example:

sample.mp4 → sample.gif

  • To send a sticker, rename the extension to ".webp"

Example:

sample.png → sample.webp


⚠️ Exceptions

from pyeitaa.exceptions import EitaaError, EitaaAuthError

try: bot.get_me()

except EitaaAuthError: print("Invalid token")

except EitaaError: print("General error")


🧠 Features

  • Simple and clean API
  • File upload support
  • Custom exceptions
  • Lightweight ("httpx")
  • Easy to extend

📦 Project Status

Alpha version ("0.1.0")


🛠 Requirements

  • Python 3.8+
  • httpx

📌 Roadmap

  • Async support
  • Webhook system
  • Retry mechanism
  • Rate limiting
  • Better response objects

📄 License

This project is licensed under the MIT License.

See: "LICENSE" (LICENSE)

Metadata

Release files for pyeitaa 0.1.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 pyeitaa 0.1.2
File Size Uploaded Provenance Actions
pyeitaa-0.1.2.tar.gz 4.1 kB Without provenance Details for pyeitaa-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 8.2 kB

Release files / pyeitaa-0.1.2.tar.gz

Download URL pyeitaa-0.1.2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4cf65942e4c3b16b87f365103952db5f516d87be55a6caa2f74c129731ecb89a
BLAKE2b-256 checksum
How to use checksums
418cddcd5494bbf674e2c96abb87bbfca86f9d0d9c494ccb91ebc0884fcaebc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / pyeitaa-0.1.2-py3-none-any.whl

Download URL pyeitaa-0.1.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00772f936b64954578525306054855037727dd99c612502ededbba8113389286
BLAKE2b-256 checksum
How to use checksums
350cbee4dbca14ceada186d28f03ea21f387a20d23f36ef703aa56f7cbfe26c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for pyeitaa 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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