8000 GitHub - bistcuite/eitaapykit: Unofficial toolkit for Eitaa messenger | کار با API ایتا در پایتون
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bistcuite/eitaapykit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eitaa Python Toolkit

Unofficial toolkit for Eitaa messenger.

🇺🇸 English | 🇮🇷 فارسی

pypi Downloads license

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:

from eitaa import Eitaa
print(Eitaa.get_info("eitta")) # "eitaa" is a channel id

Getting latest messages of a channel:

from eitaa import Eitaa
print(Eitaa.get_latest_messages('eitaa'))

Sending messages:

from eitaa import Eitaa
eitaa_obj = Eitaa("your eitaayar.ir token")
print(eitaa_obj.send_message("chat id","message text",pin=True))

Getting messages from channels:

Eitaa.get_message("YUOR_CHANNEL_ID","YOUR_POST_ID")

Getting trends:

from eitaa import Eitaa
trends = Eitaa.get_trends()

Documentation

Read documentation here.

Licence

This project is licensed under the MIT License, read License for more information.

0