Skip to content

Commit 8635217

Browse files
committed
update structures
1 parent 53a9a7c commit 8635217

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Api/Type/Message/Message.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,17 @@ final class Message
389389
* @var PassportData|null
390390
*/
391391
public $passportData;
392+
393+
public function isCommand(): bool
394+
{
395+
foreach($this->entities as $entity)
396+
{
397+
if($entity->isCommand() === true)
398+
{
399+
return true;
400+
}
401+
}
402+
403+
return false;
404+
}
392405
}

0 commit comments

Comments
 (0)