aki / api-bot-telegram
bot telegram
Installs: 79
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Type:api
This package is auto-updated.
Last update: 2024-12-13 11:56:19 UTC
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', ]); ?>