PHP Класс Telegram\Bot\Objects\Update

Наследование: extends BaseObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
detectType ( ) : string | null Detect type based on properties.
getChat ( ) : null | Telegram\Bot\Objects\Chat Get message object (if exists)
isType ( string $type ) : boolean Determine if the update is of given type
recentMessage ( ) : Update Get recent message.
relations ( )

Описание методов

detectType() публичный Метод

Detect type based on properties.
public detectType ( ) : string | null
Результат string | null

getChat() публичный Метод

Get message object (if exists)
public getChat ( ) : null | Telegram\Bot\Objects\Chat
Результат null | Telegram\Bot\Objects\Chat

isType() публичный Метод

Determine if the update is of given type
public isType ( string $type ) : boolean
$type string
Результат boolean

recentMessage() публичный Метод

Get recent message.
public recentMessage ( ) : Update
Результат Update

relations() публичный Метод

public relations ( )