Use this method to send text messages. On success, the sent \TelegramBot\Api\Types\Message is returned.
public sendMessage ( integer | string $chatId, string $text, string | null $parseMode = null, boolean $disablePreview = false, integer | null $replyToMessageId = null, TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null $replyMarkup = null, boolean $disableNotification = false ) : |
||
$chatId | integer | string | |
$text | string | |
$parseMode | string | null | |
$disablePreview | boolean | |
$replyToMessageId | integer | null | |
$replyMarkup | TelegramBot\Api\Types\ReplyKeyboardMarkup | TelegramBot\Api\Types\ReplyKeyboardHide | TelegramBot\Api\Types\ForceReply | null | |
$disableNotification | boolean | |
return |