Telegram\Bot\Objects\Update::isType PHP Méthode

isType() public méthode

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