| @@ 254-260 (lines=7) @@ | ||
| 251 | * |
|
| 252 | * @return Message |
|
| 253 | */ |
|
| 254 | public function sendMessage(array $params) |
|
| 255 | { |
|
| 256 | $params = $this->emojify($params, 'text'); |
|
| 257 | $response = $this->post('sendMessage', $params); |
|
| 258 | ||
| 259 | return new Message($response->getDecodedBody()); |
|
| 260 | } |
|
| 261 | ||
| 262 | /** |
|
| 263 | * Forward messages of any kind. |
|
| @@ 828-834 (lines=7) @@ | ||
| 825 | * |
|
| 826 | * @return TelegramResponse |
|
| 827 | */ |
|
| 828 | public function editMessageText(array $params) |
|
| 829 | { |
|
| 830 | $params = $this->emojify($params, 'text'); |
|
| 831 | $response = $this->post('editMessageText', $params); |
|
| 832 | ||
| 833 | return new Message($response->getDecodedBody()); |
|
| 834 | } |
|
| 835 | ||
| 836 | /** |
|
| 837 | * Edit captions of messages sent by the bot or via the bot (for inline bots). |
|