for api bot telegram
Installation
The preferred way to install this extension is through composer., (*1)
Either run, (*2)
php composer.phar require aki/api-bot-telegram "*"
or add, (*3)
"aki/api-bot-telegram": "*"
to the require section of your composer.json
file., (*4)
Method list usable
list methods, (*5)
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 :, (*6)
```php
'your bot token..',
]);
$telegram->sendMessage([
'chat_id' => Input::getChatID(),
'text' => 'test',
]);
?>, (*7)