Code Duplication    Length = 7-7 lines in 2 locations

src/Api.php 2 locations

@@ 269-275 (lines=7) @@
266
     *
267
     * @return Message
268
     */
269
    public function sendMessage(array $params)
270
    {
271
        $params = $this->emojify($params, 'text');
272
        $response = $this->post('sendMessage', $params);
273
274
        return new Message($response->getDecodedBody());
275
    }
276
277
    /**
278
     * Forward messages of any kind.
@@ 843-849 (lines=7) @@
840
     *
841
     * @return TelegramResponse
842
     */
843
    public function editMessageText(array $params)
844
    {
845
        $params = $this->emojify($params, 'text');
846
        $response = $this->post('editMessageText', $params);
847
848
        return new Message($response->getDecodedBody());
849
    }
850
851
    /**
852
     * Edit captions of messages sent by the bot or via the bot (for inline bots).