Eitaayar
This package provides a simple way to interact with the Eitaayar API for sending messages and documents to Eitaayar channel or groups
Install / Use
/learn @usermp/EitaayarREADME
Eitaayar API Client
This package provides a simple way to interact with the Eitaayar API for sending messages and documents to Eitaayar channel or groups.
Installation
To install this package, you can use Composer:
composer require usermp/eitaayar
Usage
To use this package, you need to have an Eitaayar API token.
Edit your .env file and add this const:
EITAAYAR_TOKEN={Eitaayar API token}
Sending a message
To send a text message to a chat, you can use the sendMessage() method. Here's an example:
use Eitaayar\Eitaayar;
// Send a message to the chat with ID 12345678
$message = Eitaayar::sendMessage(12345678, "Hello, world!");
The sendMessage() method returns an array with information about the message that was sent.
Sending a document
To send a document to a chat, you can use the sendDocument() method. Here's an example:
use Eitaayar\Eitaayar;
// Send a document to the chat with ID 12345678
$message = Eitaayar::sendDocument(12345678, "/path/to/document.pdf");
The sendDocument() method returns an array with information about the message that was sent.
License
Eitaayar API Client is open-sourced software licensed under the MIT license.
Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.7kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
