Code Duplication    Length = 7-7 lines in 2 locations

src/Api.php 2 locations

@@ 258-264 (lines=7) @@
255
     *
256
     * @return Message
257
     */
258
    public function sendMessage(array $params)
259
    {
260
        $params = $this->emojify($params, 'text');
261
        $response = $this->post('sendMessage', $params);
262
263
        return new Message($response->getDecodedBody());
264
    }
265
266
    /**
267
     * Forward messages of any kind.
@@ 832-838 (lines=7) @@
829
     *
830
     * @return TelegramResponse
831
     */
832
    public function editMessageText(array $params)
833
    {
834
        $params = $this->emojify($params, 'text');
835
        $response = $this->post('editMessageText', $params);
836
837
        return new Message($response->getDecodedBody());
838
    }
839
840
    /**
841
     * Edit captions of messages sent by the bot or via the bot (for inline bots).