A small client which interacts with the EitaaYar API
Project description
EitaaAPI
EitaaAPI is a simple Python package for interacting with the Eitaa messaging platform's API. It allows you to send messages and files, as well as retrieve information about the bot.
Functions
(All of the arguments are flags for the EitaaYar API)
- SendMessage: Send a message to the EitaaYar API by the arguments
- ASendMessage: asynchronously Send a message using aiohttp (Needs a ClientSession)
- SendFile: Send a file using the requests package
- ASendFile: asynchronously Send a file using the aiohttp package
- GetMe: Get information about the bot
- GetJSON: Process a JSON object to send a message or file
[
{
"type":"MSG", #Type of the message(IMG,MSG) for the according function
"args":{ #Arguments of the function type
"text":"Hello, World!" #Hello world message
}
}, 'Message_Title'] #Title of the message
This sends a message to the eitaayar API with the text:
Title: Message_Title
Hello, World!
As you can see the Message_Title the second item of the list is our title. It will add a "TITLE: ...\n" to the top of the text and then add the other text.
Notice that the message is inside a list of two, this is because you only send 1 message at a time in this function.
Example code: \
import EitaaAPI
session = EitaaAPI.Session("YOUR_API_KEY", "YOUR_CHAT_ID")
session.SendMessage("Example Message")
The SendMessage function has other flags such as disable_notification which is a flag for the EitaaAPI
Notice
I am not currently planning to support this project. I have tested this but only a couple of times.
Just wanted to clarify that this API is not fully complete.
So it is a demo.
Please note that If any bugs-errors happen that cause damage I am not liable because this is a demo and maybe I will choose to develop It in the future.
THIS IS NOT AN OFFICIAL PROJECT OF ANY SORTS. THIS PROJECT IS MADE BY ME AND IT IS NOT MADE OR SAID TO BE OFFICIAL TO THE COMPANY WHO OWNS THE EITAA MESSAGING APP.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eitaaapi-0.0.1.tar.gz.
File metadata
- Download URL: eitaaapi-0.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a4f7cc661d5716f1edd7b59010109ebe8ecb816e7c404053f13e69bda012194
|
|
| MD5 |
2032863dadad6f8083fc950e42e5cc9b
|
|
| BLAKE2b-256 |
a8b7d3ccedcacbf12662d72e1a2c5c8cbde564d901896b1c70b036971794a93f
|
File details
Details for the file eitaaapi-0.0.1-py3-none-any.whl.
File metadata
- Download URL: eitaaapi-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4df647768ffdca41a1d718865405c18f5c420390c6c3248ad6957db48a93cd2
|
|
| MD5 |
456cf0b9ba1087d8ff79423a637dcbd2
|
|
| BLAKE2b-256 |
431505f40fc015df75462412e53a3a62177b17e3fa1b148ae5644be9f57c48d4
|