Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 days 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-18T21:43:50.000Z (4 months ago)
- Last Synced: 2024-11-01T06:47:36.306Z (13 days ago)
- Topics: api, chat, eitaa, messenger, messenger-api, python, requests
- Language: Python
- Homepage: https://bistcuite.github.io/eitaapykit
- Size: 912 KB
- Stars: 32
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eitaa Python Toolkit
Unofficial toolkit for [Eitaa](https://eitaa.com/) messenger.[![pypi](https://img.shields.io/pypi/v/eitaa)](https://pypi.org/project/eitaa)
[![Downloads](https://pepy.tech/badge/eitaa)](https://pepy.tech/project/eitaa)
![license](https://img.shields.io/badge/license-MIT-green)## Installation
Installing latest published release :
```
pip install eitaa
```
Install in-development version :
```
pip install git+https://github.com/bistcuite/eitaapykit.git
```## Example
Getting channel's information :
```py
from eitaa import Eitaa
print(Eitaa.get_info("eitta")) # "eitta" is a channel id
```Getting latest messages of a channel:
```py
from eitaa import Eitaa
print(Eitaa.get_latest_messages('eitaa'))
```Sending messages :
```py
from eitaa import Eitaa
eitaa_obj = Eitaa("your eitaayar.ir token")
print(eitaa_obj.send_message("chat id","message text",pin=True))
```Getting trends :
```py
from eitaa import Eitaa
trends = Eitaa.get_trends()
```## Documentation
Read documentation [here](https://bistcuite.github.io/eitaapykit).## Licence
This project is licensed under the **MIT** License, read [License](LICENSE) for more information.