Code Duplication    Length = 7-7 lines in 2 locations

src/Api.php 2 locations

@@ 247-253 (lines=7) @@
244
     *
245
     * @return Message
246
     */
247
    public function sendMessage(array $params)
248
    {
249
        $params = $this->emojify($params, 'text');
250
        $response = $this->post('sendMessage', $params);
251
252
        return new Message($response->getDecodedBody());
253
    }
254
255
    /**
256
     * Forward messages of any kind.
@@ 821-827 (lines=7) @@
818
     *
819
     * @return TelegramResponse
820
     */
821
    public function editMessageText(array $params)
822
    {
823
        $params = $this->emojify($params, 'text');
824
        $response = $this->post('editMessageText', $params);
825
826
        return new Message($response->getDecodedBody());
827
    }
828
829
    /**
830
     * Edit captions of messages sent by the bot or via the bot (for inline bots).