danog\MadelineProto\EventHandler\Message\Rich\Text\InlineButton: A button inline in the text.
Author: Daniil Gentili daniil@daniil.it
A button inline in the text.
Properties
$button:danog\MadelineProto\EventHandler\Message\Rich\ButtonThe button
Method list:
__construct(\danog\MadelineProto\EventHandler\Message\Rich\Button $button)from(\danog\MadelineProto\EventHandler\Message\Rich\RichText|string $text): \danog\MadelineProto\EventHandler\Message\Rich\RichTextgetText(): stringgetEntities(): list<\danog\MadelineProto\EventHandler\Message\Entities\MessageEntity>getHTML(bool $allowTelegramTags = false): string
Methods:
__construct(\danog\MadelineProto\EventHandler\Message\Rich\Button $button)
Parameters:
$button:\danog\MadelineProto\EventHandler\Message\Rich\Button
See also:
- [
\danog\MadelineProto\EventHandler\Message\Rich\Button: A button of a rich message, in a buttons block or inline in a text.](../../../../../../danog/MadelineProto/EventHandler/Message/Rich/Button.html)
from(\danog\MadelineProto\EventHandler\Message\Rich\RichText|string $text): \danog\MadelineProto\EventHandler\Message\Rich\RichText
Get a rich text from a rich text or a plain string.
Parameters:
$text:\danog\MadelineProto\EventHandler\Message\Rich\RichText|string
getText(): string
Get the plain text version of the rich text.
getEntities(): list<\danog\MadelineProto\EventHandler\Message\Entities\MessageEntity>
Get the entities for the styles of the plain text version of the rich text.
See also:
\danog\MadelineProto\EventHandler\Message\Entities\MessageEntity: Master class for message entities.
getHTML(bool $allowTelegramTags = false): string
Get an HTML version of the rich text.
Parameters:
$allowTelegramTags:boolWhether to allow telegram-specific tags like tg-spoiler, tg-emoji, mention links and so on…
Generated by danog/phpdoc