PHP Class Telegram\Bot\Objects\Update

Inheritance: extends BaseObject
Exibir arquivo Open project: irazasyed/telegram-bot-sdk Class Usage Examples

Public Methods

Method Description
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 ( )

Method Details

detectType() public method

Detect type based on properties.
public detectType ( ) : string | null
return string | null

getChat() public method

Get message object (if exists)
public getChat ( ) : null | Telegram\Bot\Objects\Chat
return null | Telegram\Bot\Objects\Chat

isType() public method

Determine if the update is of given type
public isType ( string $type ) : boolean
$type string
return boolean

recentMessage() public method

Get recent message.
public recentMessage ( ) : Update
return Update

relations() public method

public relations ( )