https://github.com/bistcuite/eitaapykit
Unofficial toolkit for Eitaa messenger | کار با API ایتا در پایتون
https://github.com/bistcuite/eitaapykit
api chat eitaa messenger messenger-api python requests
Last synced: about 1 year ago
JSON representation
Unofficial toolkit for Eitaa messenger | کار با API ایتا در پایتون
- Host: GitHub
- URL: https://github.com/bistcuite/eitaapykit
- Owner: bistcuite
- License: mit
- Created: 2021-09-23T15:47:29.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T17:27:21.000Z (over 1 year ago)
- Last Synced: 2025-03-31T10:01:34.248Z (over 1 year ago)
- Topics: api, chat, eitaa, messenger, messenger-api, python, requests
- Language: Python
- Homepage: https://hasan.is-a.dev/eitaapykit
- Size: 925 KB
- Stars: 39
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README-FA.md
- License: LICENSE
Awesome Lists containing this project
README
# کار با API ایتا در پایتون
این یک پکیج غیررسمی برای پیامرسان [ایتا](https://eitaa.com/) جهت کار با API این پیامرسان است.
[🇺🇸 English](README.md) | 🇮🇷 فارسی
[](https://pypi.org/project/eitaa)
[](https://pepy.tech/project/eitaa)

## نصب
نصب آخرین نسخه منتشر شده:
```
pip install eitaa
```
نصب نسخه در حال توسعه:
```
pip install git+https://github.com/bistcuite/eitaapykit.git
```
## مثال
دریافت اطلاعات کانال:
```py
from eitaa import Eitaa
print(Eitaa.get_info("eitta")) # "eitaa" یک شناسه کانال است
```
دریافت آخرین پیامهای یک کانال:
```py
from eitaa import Eitaa
print(Eitaa.get_latest_messages('eitaa'))
```
ارسال پیام:
```py
from eitaa import Eitaa
eitaa_obj = Eitaa("توکن eitaayar.ir شما")
print(eitaa_obj.send_message("شناسه چت","متن پیام",pin=True))
```
دریافت ترندها:
```py
from eitaa import Eitaa
trends = Eitaa.get_trends()
```
## مستندات
مستندات راهنما را از [اینجا](https://hasan.is-a.dev/eitaapykit) بخوانید.
## مجوز
این پروژه تحت پروانۀ **MIT** منتشر شده است، برای اطلاعات بیشتر [متن پروانه](LICENSE) را بخوانید.