danog\MadelineProto\EventHandler\Message\Entities\MessageEntity
Author: Daniil Gentili daniil@daniil.it
Master class for message entities.
Properties
$offset
:int
Offset of message entity within message (in UTF-16 code units)$length
:int
Length of message entity within message (in UTF-16 code units)
Method list:
__construct(int $offset, int $length)
fromRawEntities(list<array> $entities): list<self>
fromRawEntity(self|array $entity): self
toBotAPI(): array
toMTProto(): array
Methods:
__construct(int $offset, int $length)
Parameters:
$offset
:int
$length
:int
fromRawEntities(list<array> $entities): list<self>
Parameters:
$entities
:list<array>
fromRawEntity(self|array $entity): self
Parameters:
$entity
:self|array
toBotAPI(): array
Convert entity to bot API entity.
toMTProto(): array
Convert entity to MTProto entity.
Generated by danog/phpdoc