usermp/eitaayar
最新稳定版本:v1.0.0
Composer 安装命令:
composer require usermp/eitaayar
包简介
README 文档
README
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.
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-30