1 | <?php |
||
22 | class Text extends BaseType implements TypeInterface |
||
23 | { |
||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | static protected $requiredParams = ['message_text']; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | static protected $map = [ |
||
37 | 'message_text' => true, |
||
38 | 'parse_mode' => true, |
||
39 | 'disable_web_page_preview' => true, |
||
40 | ]; |
||
41 | |||
42 | /** |
||
43 | * Text of the message to be sent, 1-4096 characters |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $messageText; |
||
48 | |||
49 | /** |
||
50 | * Optional. Send Markdown or HTML, |
||
51 | * if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. |
||
52 | * |
||
53 | * @var string |
||
54 | */ |
||
55 | protected $parseMode; |
||
56 | |||
57 | /** |
||
58 | * Optional. Disables link previews for links in the sent message |
||
59 | * |
||
60 | * @var bool |
||
61 | */ |
||
62 | protected $disableWebPagePreview; |
||
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | public function getMessageText() |
||
71 | |||
72 | /** |
||
73 | * @param string $messageText |
||
74 | */ |
||
75 | public function setMessageText($messageText) |
||
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getParseMode() |
||
87 | |||
88 | /** |
||
89 | * @param string $parseMode |
||
90 | */ |
||
91 | public function setParseMode($parseMode) |
||
95 | |||
96 | /** |
||
97 | * @return boolean |
||
98 | */ |
||
99 | public function isDisableWebPagePreview() |
||
103 | |||
104 | /** |
||
105 | * @param boolean $disableWebPagePreview |
||
106 | */ |
||
107 | public function setDisableWebPagePreview($disableWebPagePreview) |
||
111 | } |
||
112 |