定制 heidarelhaee/robotmaca 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

heidarelhaee/robotmaca

Composer 安装命令:

composer require heidarelhaee/robotmaca

包简介

A PHP library for managing Maca Robot functionality

README 文档

README

Go to the following address to download the Maca application

https://maca.avaw.ir

Start Create Robot

Click on the magnifying glass icon from the main screen and write the robot username

Click on start or write /start

Write the phrase /newbot

After writing this command, it will ask you the name of the robot you want to create

After that, she wants you to create a username for your robot (make sure that the robot is only with lowercase English letters or English numbers)

congratulation! You made your own robot! Please do not give the token key that is given to you to anyone because by taking your token they can access your robot!

Getting started with robot management

First of all, we must install the Maca Robot library!

Composer

composer require heidarelhaee/macarobot

Create a PHP file with the desired name and put the following code inside it...

PHP

<?php
require 'vendor/autoload.php';

use MacaRobot\MacaRobot;
$MacaRobot = new MacaRobot();
?>

Now let's send a message to one of the people you want

PHP

<?php
require 'vendor/autoload.php';

use MacaRobot\MacaRobot;
$MacaRobot = new MacaRobot();

$keyrobot = "";//key robot

$user = "";//The username of the person you want to send a message to...

$text = "";//Message

echo $MacaRobot->sendMessageText($keyrobot,$user,$text);
?>

Now let's answer a message

PHP

<?php
require 'vendor/autoload.php';

use MacaRobot\MacaRobot;
$MacaRobot = new MacaRobot();

$keyrobot = "";//key robot

$user = "";//The username of the person you want to send a message to...

$text = "";//Message

$id = ""; //ID Message

echo $MacaRobot->sendMessageReplayText($keyrobot,$user,$text,$id);
?>

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-02