aki/api-bot-telegram

bot telegram

1.1.0 2017-10-21 17:48 UTC

This package is auto-updated.

Last update: 2024-11-13 11:52:54 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',
]); 
?>