src/Telegram/ApiClient.php
public function sendMessage(
        $chatId,
        $text,
        $disableWebPagePreview = null,
        $replyToMessageId = null,
        $replyMarkup = null
    ) {
        $response = $this->apiRequest("sendMessage", [
            "chat_id" => $chatId,
            "text" => $text,
            "disable_web_page_preview" => $disableWebPagePreview,
            "reply_to_message_id" => $replyToMessageId,
            "reply_markup" => $replyMarkup ? $replyMarkup->toArray() : null,
        ]);
        return $this->entityFromBody($response->getBody(), new Message());
    }
public function sendMessage(
        $chatId,
        $text,
        $disableWebPagePreview = null,
        $replyToMessageId = null,
        $replyMarkup = null
    ) {
        $response = $this->apiRequest("sendMessage", [
            "chat_id" => $chatId,
            "text" => $text,
            "disable_web_page_preview" => $disableWebPagePreview,
            "reply_to_message_id" => $replyToMessageId,
            "reply_markup" => $replyMarkup ? $replyMarkup->toArray() : null,
        ]);
        return $this->entityFromBody($response->getBody(), new Message());
    }
Send a message

@param int $chatId
@param string $text
@param bool|null $disableWebPagePreview
@param int|null $replyToMessageId
@param ReplyKeyboardMarkup|ReplyKeyboardHide|ForceReply|null $replyMarkup
@return Message