src/TelebotSDK/BotApi.php
public function sendMessage($chat_id, $text, $parse_mode = null,
                                $disable_web_page_preview = null,
                                $reply_to_message_id = null,
                                $reply_markup = null) {
        $params = [
            'chat_id' => $chat_id,
            'text' => $text,
            'parse_mode' => $parse_mode,
            'disable_web_page_preview' => $disable_web_page_preview,
            'reply_to_message_id' => $reply_to_message_id,
            'reply_markup' => $reply_markup ? ReplyMarkup::encode($reply_markup) : null,
        ];

        $update = $this->performMethod('sendMessage', Message::class, $params);

        return $update;
    }
public function sendMessage($chat_id, $text, $parse_mode = null,
                                $disable_web_page_preview = null,
                                $reply_to_message_id = null,
                                $reply_markup = null) {
        $params = [
            'chat_id' => $chat_id,
            'text' => $text,
            'parse_mode' => $parse_mode,
            'disable_web_page_preview' => $disable_web_page_preview,
            'reply_to_message_id' => $reply_to_message_id,
            'reply_markup' => $reply_markup ? ReplyMarkup::encode($reply_markup) : null,
        ];

        $update = $this->performMethod('sendMessage', Message::class, $params);

        return $update;
    }
@param $chat_id
@param $text
@param null $parse_mode
@param null $disable_web_page_preview
@param null $reply_to_message_id
@param ReplyKeyboardMarkup|ReplyKeyboardHide|ForceReply $reply_markup

@return Response