Total Complexity | 2 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class InputTextMessageContentType extends InputMessageContentType implements HasParseModeVariableInterface |
||
17 | { |
||
18 | use FillFromArrayTrait; |
||
19 | use CaptionEntitiesFieldTrait; |
||
20 | |||
21 | /** |
||
22 | * Text of the message to be sent, 1-4096 characters. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | public $messageText; |
||
27 | |||
28 | /** |
||
29 | * Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, |
||
30 | * fixed-width text or inline URLs in your bot's message. |
||
31 | * |
||
32 | * @var string|null |
||
33 | */ |
||
34 | public $parseMode; |
||
35 | |||
36 | /** |
||
37 | * Optional. Disables link previews for links in the sent message. |
||
38 | * |
||
39 | * @var bool|null |
||
40 | */ |
||
41 | public $disableWebPagePreview; |
||
42 | |||
43 | /** |
||
44 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
45 | */ |
||
46 | 2 | public static function create(string $messageText, array $data = null): InputTextMessageContentType |
|
57 |