PHP 클래스 TelegramBot\Api\BotApi

파일 보기 프로젝트 열기: TelegramBot/Api 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$codes array HTTP codes

보호된 프로퍼티들

프로퍼티 타입 설명
$curl CURL object
$returnArray boolean Check whether return associative array
$token string Bot token
$trackedEvents array list of event ids
$tracker TelegramBot\Api\Botan Botan tracker

공개 메소드들

메소드 설명
__construct ( string $token, string | null $trackerToken = null ) Constructor
__destruct ( ) Close curl
answerCallbackQuery ( $callbackQueryId, null $text = null, boolean $showAlert = false ) : boolean Use this method to send answers to callback queries sent from inline keyboards.
answerInlineQuery ( string $inlineQueryId, AbstractInlineQueryResult[] $results, integer $cacheTime = 300, boolean $isPersonal = false, string $nextOffset = '' ) : mixed Use this method to send answers to an inline query. On success, True is returned.
call ( string $method, array $data = null ) : mixed Call method
curlValidate ( resource $curl ) Response validation
downloadFile ( $fileId ) : string Get file contents via cURL
editMessageCaption ( integer | string $chatId, integer $messageId, string | null $caption = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null ) : Message Use this method to edit text messages sent by the bot or via the bot
editMessageReplyMarkup ( integer | string $chatId, integer $messageId, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null ) : Message Use this method to edit only the reply markup of messages sent by the bot or via the bot
editMessageText ( integer | string $chatId, integer $messageId, string $text, string | null $parseMode = null, boolean $disablePreview = false, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null ) : Message Use this method to edit text messages sent by the bot or via the bot
forwardMessage ( integer | string $chatId, integer $fromChatId, integer $messageId, boolean $disableNotification = false ) : Message Use this method to forward messages of any kind. On success, the sent Message is returned.
getFile ( $fileId ) : TelegramBot\Api\Types\File Use this method to get basic info about a file and prepare it for downloading.
getFileUrl ( ) : string
getMe ( ) : User A simple method for testing your bot's auth token.Requires no parameters.
getUpdates ( integer $offset, integer $limit = 100, integer $timeout ) : TelegramBot\Api\Types\Update[] Use this method to receive incoming updates using long polling.
getUrl ( ) : string
getUserProfilePhotos ( integer $userId, integer $offset, integer $limit = 100 ) : TelegramBot\Api\Types\UserProfilePhotos Use this method to get a list of profile pictures for a user.
jsonValidate ( string $jsonString, boolean $asArray ) : object | array JSON validation
kickChatMember ( integer | string $chatId, integer $userId ) : boolean Use this method to kick a user from a group or a supergroup.
sendAudio ( integer | string $chatId, CURLFile | string $audio, integer | null $duration = null, string | null $performer = null, string | null $title = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message Use this method to send audio files, if you want Telegram clients to display them in the music player.
sendChatAction ( integer $chatId, string $action ) : boolean Use this method when you need to tell the user that something is happening on the bot's side.
sendContact ( integer | string $chatId, string $phoneNumber, string $firstName, string $lastName = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message Use this method to send phone contacts
sendDocument ( integer | string $chatId, CURLFile | string $document, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message Use this method to send general files. On success, the sent Message is returned.
sendLocation ( integer $chatId, float $latitude, float $longitude, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message Use this method to send point on the map. On success, the sent Message is returned.
sendMessage ( integer | string $chatId, string $text, string | null $parseMode = null, boolean $disablePreview = false, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message Use this method to send text messages. On success, the sent \TelegramBot\Api\Types\Message is returned.
sendPhoto ( integer | string $chatId, CURLFile | string $photo, string | null $caption = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message Use this method to send photos. On success, the sent Message is returned.
sendSticker ( integer | string $chatId, CURLFile | string $sticker, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message Use this method to send .webp stickers. On success, the sent Message is returned.
sendVenue ( integer | string $chatId, float $latitude, float $longitude, string $title, string $address, string | null $foursquareId = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message Use this method to send information about a venue. On success, the sent Message is returned.
sendVideo ( integer | string $chatId, CURLFile | string $video, integer | null $duration = null, string | null $caption = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document).
sendVoice ( integer | string $chatId, CURLFile | string $voice, integer | null $duration = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
setModeObject ( boolean $mode = true ) Set return array
setWebhook ( string $url = '', CURLFile | string $certificate = null ) : string Use this method to specify a url and receive incoming updates via an outgoing webhook.
track ( Message $message, string $eventName = 'Message' ) Wrapper for tracker
trackUpdate ( TelegramBot\Api\Types\Update $update, string $eventName = 'Message' )
unbanChatMember ( integer | string $chatId, integer $userId ) : boolean Use this method to unban a previously kicked user in a supergroup.

보호된 메소드들

메소드 설명
executeCurl ( array $options ) : string curl_exec wrapper for response validation

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $token, string | null $trackerToken = null )
$token string Telegram Bot API token
$trackerToken string | null Yandex AppMetrica application api_key

__destruct() 공개 메소드

Close curl
public __destruct ( )

answerCallbackQuery() 공개 메소드

The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.
public answerCallbackQuery ( $callbackQueryId, null $text = null, boolean $showAlert = false ) : boolean
$callbackQueryId
$text null
$showAlert boolean
리턴 boolean

answerInlineQuery() 공개 메소드

No more than 50 results per query are allowed.
public answerInlineQuery ( string $inlineQueryId, AbstractInlineQueryResult[] $results, integer $cacheTime = 300, boolean $isPersonal = false, string $nextOffset = '' ) : mixed
$inlineQueryId string
$results TelegramBot\Api\Types\Inline\QueryResult\AbstractInlineQueryResult[]
$cacheTime integer
$isPersonal boolean
$nextOffset string
리턴 mixed

call() 공개 메소드

Call method
public call ( string $method, array $data = null ) : mixed
$method string
$data array
리턴 mixed

curlValidate() 공개 정적인 메소드

Response validation
public static curlValidate ( resource $curl )
$curl resource

downloadFile() 공개 메소드

Get file contents via cURL
public downloadFile ( $fileId ) : string
$fileId
리턴 string

editMessageCaption() 공개 메소드

Use this method to edit text messages sent by the bot or via the bot
public editMessageCaption ( integer | string $chatId, integer $messageId, string | null $caption = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null ) : Message
$chatId integer | string
$messageId integer
$caption string | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
리턴 TelegramBot\Api\Types\Message

editMessageReplyMarkup() 공개 메소드

Use this method to edit only the reply markup of messages sent by the bot or via the bot
public editMessageReplyMarkup ( integer | string $chatId, integer $messageId, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null ) : Message
$chatId integer | string
$messageId integer
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
리턴 TelegramBot\Api\Types\Message

editMessageText() 공개 메소드

Use this method to edit text messages sent by the bot or via the bot
public editMessageText ( integer | string $chatId, integer $messageId, string $text, string | null $parseMode = null, boolean $disablePreview = false, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null ) : Message
$chatId integer | string
$messageId integer
$text string
$parseMode string | null
$disablePreview boolean
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
리턴 TelegramBot\Api\Types\Message

executeCurl() 보호된 메소드

curl_exec wrapper for response validation
protected executeCurl ( array $options ) : string
$options array
리턴 string

forwardMessage() 공개 메소드

Use this method to forward messages of any kind. On success, the sent Message is returned.
public forwardMessage ( integer | string $chatId, integer $fromChatId, integer $messageId, boolean $disableNotification = false ) : Message
$chatId integer | string chat_id or @channel_name
$fromChatId integer
$messageId integer
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

getFile() 공개 메소드

For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot/, where is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile again.
public getFile ( $fileId ) : TelegramBot\Api\Types\File
$fileId
리턴 TelegramBot\Api\Types\File

getFileUrl() 공개 메소드

public getFileUrl ( ) : string
리턴 string

getMe() 공개 메소드

Returns basic information about the bot in form of a User object.
public getMe ( ) : User
리턴 TelegramBot\Api\Types\User

getUpdates() 공개 메소드

An Array of Update objects is returned. Notes 1. This method will not work if an outgoing webhook is set up. 2. In order to avoid getting duplicate updates, recalculate offset after each server response.
public getUpdates ( integer $offset, integer $limit = 100, integer $timeout ) : TelegramBot\Api\Types\Update[]
$offset integer
$limit integer
$timeout integer
리턴 TelegramBot\Api\Types\Update[]

getUrl() 공개 메소드

public getUrl ( ) : string
리턴 string

getUserProfilePhotos() 공개 메소드

Use this method to get a list of profile pictures for a user.
public getUserProfilePhotos ( integer $userId, integer $offset, integer $limit = 100 ) : TelegramBot\Api\Types\UserProfilePhotos
$userId integer
$offset integer
$limit integer
리턴 TelegramBot\Api\Types\UserProfilePhotos

jsonValidate() 공개 정적인 메소드

JSON validation
public static jsonValidate ( string $jsonString, boolean $asArray ) : object | array
$jsonString string
$asArray boolean
리턴 object | array

kickChatMember() 공개 메소드

In the case of supergroups, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the group for this to work. Returns True on success.
public kickChatMember ( integer | string $chatId, integer $userId ) : boolean
$chatId integer | string Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername)
$userId integer Unique identifier of the target user
리턴 boolean

sendAudio() 공개 메소드

Your audio must be in the .mp3 format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. For backward compatibility, when the fields title and performer are both empty and the mime-type of the file to be sent is not audio/mpeg, the file will be sent as a playable voice message. For this to work, the audio must be in an .ogg file encoded with OPUS. This behavior will be phased out in the future. For sending voice messages, use the sendVoice method instead.
사용 중단: since 20th February. Removed backward compatibility from the method sendAudio. Voice messages now must be sent using the method sendVoice. There is no more need to specify a non-empty title or performer while sending the audio by file_id.
public sendAudio ( integer | string $chatId, CURLFile | string $audio, integer | null $duration = null, string | null $performer = null, string | null $title = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message
$chatId integer | string chat_id or @channel_name
$audio CURLFile | string
$duration integer | null
$performer string | null
$title string | null
$replyToMessageId integer | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

sendChatAction() 공개 메소드

The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive. Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_audio or upload_audio for audio files, upload_document for general files, find_location for location data.
public sendChatAction ( integer $chatId, string $action ) : boolean
$chatId integer
$action string
리턴 boolean

sendContact() 공개 메소드

Use this method to send phone contacts
public sendContact ( integer | string $chatId, string $phoneNumber, string $firstName, string $lastName = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message
$chatId integer | string chat_id or @channel_name
$phoneNumber string
$firstName string
$lastName string
$replyToMessageId integer | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

sendDocument() 공개 메소드

Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
public sendDocument ( integer | string $chatId, CURLFile | string $document, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message
$chatId integer | string chat_id or @channel_name
$document CURLFile | string
$replyToMessageId integer | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

sendLocation() 공개 메소드

Use this method to send point on the map. On success, the sent Message is returned.
public sendLocation ( integer $chatId, float $latitude, float $longitude, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message
$chatId integer
$latitude float
$longitude float
$replyToMessageId integer | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

sendMessage() 공개 메소드

Use this method to send text messages. On success, the sent \TelegramBot\Api\Types\Message is returned.
public sendMessage ( integer | string $chatId, string $text, string | null $parseMode = null, boolean $disablePreview = false, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message
$chatId integer | string
$text string
$parseMode string | null
$disablePreview boolean
$replyToMessageId integer | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

sendPhoto() 공개 메소드

Use this method to send photos. On success, the sent Message is returned.
public sendPhoto ( integer | string $chatId, CURLFile | string $photo, string | null $caption = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message
$chatId integer | string chat_id or @channel_name
$photo CURLFile | string
$caption string | null
$replyToMessageId integer | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

sendSticker() 공개 메소드

Use this method to send .webp stickers. On success, the sent Message is returned.
public sendSticker ( integer | string $chatId, CURLFile | string $sticker, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message
$chatId integer | string chat_id or @channel_name
$sticker CURLFile | string
$replyToMessageId integer | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

sendVenue() 공개 메소드

Use this method to send information about a venue. On success, the sent Message is returned.
public sendVenue ( integer | string $chatId, float $latitude, float $longitude, string $title, string $address, string | null $foursquareId = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message
$chatId integer | string chat_id or @channel_name
$latitude float
$longitude float
$title string
$address string
$foursquareId string | null
$replyToMessageId integer | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

sendVideo() 공개 메소드

On success, the sent Message is returned.
public sendVideo ( integer | string $chatId, CURLFile | string $video, integer | null $duration = null, string | null $caption = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message
$chatId integer | string chat_id or @channel_name
$video CURLFile | string
$duration integer | null
$caption string | null
$replyToMessageId integer | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

sendVoice() 공개 메소드

For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.
public sendVoice ( integer | string $chatId, CURLFile | string $voice, integer | null $duration = null, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : Message
$chatId integer | string chat_id or @channel_name
$voice CURLFile | string
$duration integer | null
$replyToMessageId integer | null
$replyMarkup TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null
$disableNotification boolean
리턴 TelegramBot\Api\Types\Message

setModeObject() 공개 메소드

Set return array
public setModeObject ( boolean $mode = true )
$mode boolean

setWebhook() 공개 메소드

Whenever there is an update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts.
public setWebhook ( string $url = '', CURLFile | string $certificate = null ) : string
$url string HTTPS url to send updates to. Use an empty string to remove webhook integration
$certificate CURLFile | string Upload your public key certificate so that the root certificate in use can be checked
리턴 string

track() 공개 메소드

Wrapper for tracker
public track ( Message $message, string $eventName = 'Message' )
$message TelegramBot\Api\Types\Message
$eventName string

trackUpdate() 공개 메소드

public trackUpdate ( TelegramBot\Api\Types\Update $update, string $eventName = 'Message' )
$update TelegramBot\Api\Types\Update
$eventName string

unbanChatMember() 공개 메소드

The user will not return to the group automatically, but will be able to join via link, etc. The bot must be an administrator in the group for this to work. Returns True on success.
public unbanChatMember ( integer | string $chatId, integer $userId ) : boolean
$chatId integer | string Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername)
$userId integer Unique identifier of the target user
리턴 boolean

프로퍼티 상세

$codes 공개적으로 정적으로 프로퍼티

HTTP codes
public static array $codes
리턴 array

$curl 보호되어 있는 프로퍼티

CURL object
protected $curl

$returnArray 보호되어 있는 프로퍼티

Check whether return associative array
protected bool $returnArray
리턴 boolean

$token 보호되어 있는 프로퍼티

Bot token
protected string $token
리턴 string

$trackedEvents 보호되어 있는 프로퍼티

list of event ids
protected array $trackedEvents
리턴 array

$tracker 보호되어 있는 프로퍼티

Botan tracker
protected Botan,TelegramBot\Api $tracker
리턴 TelegramBot\Api\Botan