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;
    }