Telegram\Bot\Objects\Update::isType PHP 메소드

isType() 공개 메소드

Determine if the update is of given type
public isType ( string $type ) : boolean
$type string
리턴 boolean
    public function isType($type)
    {
        if ($this->has(strtolower($type))) {
            return true;
        }
        return $this->detectType() === $type;
    }