aki/api-bot-telegram
Composer 安装命令:
composer require aki/api-bot-telegram
包简介
bot telegram
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require aki/api-bot-telegram "*"
or add
"aki/api-bot-telegram": "*"
to the require section of your composer.json file.
Method list usable
list methods
getMe
sendMessage
forwardMessage
sendPhoto
sendAudio
sendDocument
sendSticker
sendVideo
sendLocation
sendChatAction
getUserProfilePhotos
getUpdates
setWebhook
getChat
getChatAdministrators
getChatMembersCount
getChatMember
answerCallbackQuery
editMessageText
Usage
Once the extension is installed, simply use it in your code by :
<?php $telegram = new Telegram([ 'botToken' => 'your bot token..', ]); $telegram->sendMessage([ 'chat_id' => Input::getChatID(), 'text' => 'test', ]); ?>
统计信息
- 总下载量: 84
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2017-01-08