PHP 클래스 Telegram\Bot\Objects\Update

상속: extends BaseObject
파일 보기 프로젝트 열기: irazasyed/telegram-bot-sdk 1 사용 예제들

공개 메소드들

메소드 설명
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 ( )