@@ 48-61 (lines=14) @@ | ||
45 | * @param bool $disable_web_preview <i>Optional</i>. Disables link previews for links in this message. |
|
46 | * @return Message|false Message edited, false otherwise. |
|
47 | */ |
|
48 | public function editMessageText(int $message_id, string $text, string $reply_markup = null, string $parse_mode = 'HTML', bool $disable_web_preview = true) |
|
49 | { |
|
50 | ||
51 | $this->parameters = [ |
|
52 | 'chat_id' => $this->_chat_id, |
|
53 | 'message_id' => $message_id, |
|
54 | 'text' => $text, |
|
55 | 'reply_markup' => $reply_markup, |
|
56 | 'parse_mode' => $parse_mode, |
|
57 | 'disable_web_page_preview' => $disable_web_preview, |
|
58 | ]; |
|
59 | ||
60 | return $this->processRequest('editMessageText', 'Message'); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * \brief Edit text of a message sent via the bot. |
@@ 299-310 (lines=12) @@ | ||
296 | * @param bool On success, the sent message. |
|
297 | * @return Message|false Message sent on success, false otherwise. |
|
298 | */ |
|
299 | public function sendSticker($sticker, string $reply_markup = null, bool $disable_notification = false, int $reply_to_message_id = null) |
|
300 | { |
|
301 | $this->parameters = [ |
|
302 | 'chat_id' => $this->_chat_id, |
|
303 | 'sticker' => $sticker, |
|
304 | 'disable_notification' => $disable_notification, |
|
305 | 'reply_to_message_id' => $reply_to_message_id, |
|
306 | 'reply_markup' => $reply_markup |
|
307 | ]; |
|
308 | ||
309 | return $this->processRequest('sendSticker', 'Message'); |
|
310 | } |
|
311 | ||
312 | /** |
|
313 | * \brief Send audio files. |