Method |
Description |
|
__construct ( $token ) |
|
|
forceReply ( boolean $selective = false ) : string |
Display a reply interface to the user (act as if the user has selected the bots message and tapped 'Reply'). |
|
forwardMessage ( integer $chat_id, integer $from_chat_id, integer $message_id ) : Array |
Forward messages of any kind. |
|
getFile ( String $file_id ) : On |
Use this method to get basic info about a file and prepare it for downloading. |
|
getFileData ( string $file_id, string $file_path ) : On |
Use this method to get file Data. |
|
getMe ( ) : Array |
A simple method for testing your bot's auth token. |
|
getUserProfilePhotos ( $user_id, integer $offset = null, integer $limit = null ) : Array |
Get user profile photos. |
|
getWebhookUpdates ( ) : Array |
Returns webhook updates sent by Telegram. |
|
pollUpdates ( integer $offset = null, integer $timeout = null, integer $limit = null ) : Array |
Use this method to receive incoming updates using long polling. |
|
replyKeyboardHide ( boolean $selective = false ) : string |
Hide the current custom keyboard and display the default letter-keyboard. |
|
replyKeyboardMarkup ( array $keyboard, boolean $resize_keyboard = false, boolean $one_time_keyboard = false, boolean $selective = false ) : string |
Builds a custom keyboard markup. |
|
sendAudio ( integer $chat_id, string $audio, integer $duration = null, string $performer = null, string $title = null, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array |
Send Audio. |
|
sendChatAction ( integer $chat_id, string $action ) : Array |
Send Chat Action. |
|
sendContact ( integer $chat_id, $phone_number, string $first_name, string $last_name = null, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array |
Send Contact. |
|
sendDocument ( integer $chat_id, string $document, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array |
Send Document. |
|
sendLocation ( integer $chat_id, float $latitude, float $longitude, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array |
Send Location. |
|
sendMessage ( integer $chat_id, string $text, string $parse_mode = null, boolean $disable_web_page_preview = false, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array |
Send text messages. |
|
sendPhoto ( integer $chat_id, string $photo, string $caption = null, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array |
Send Photos. |
|
sendSticker ( integer $chat_id, string $sticker, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array |
Send Sticker. |
|
sendVenue ( integer $chat_id, float $latitude, float $longitude, string $title, string $address, string $foursquare_id = null, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array |
Send Venue. |
|
sendVideo ( integer $chat_id, string $video, integer $duration = null, string $caption = null, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array |
Send Video. |
|
sendVoice ( integer $chat_id, string $audio, integer $duration = null, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array |
Send Voice. |
|
setWebhook ( string $url, $certificate = null ) : Array |
Set a Webhook to receive incoming updates via an outgoing webhook. |
|