Skip to content

akbarjoudi/api-bot-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

for api bot telegram

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',
]); 
?>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages