Closed D3FVLT closed 1 year ago
public function sendMessage(
$chatId,
$text,
$parseMode = null,
$disablePreview = false,
$replyToMessageId = null,
$replyMarkup = null,
$disableNotification = false
) {
return Message::fromResponse($this->call('sendMessage', [
'chat_id' => $chatId,
'text' => $text,
'parse_mode' => $parseMode,
'disable_web_page_preview' => $disablePreview,
'reply_to_message_id' => (int)$replyToMessageId,
'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
'disable_notification' => (bool)$disableNotification,
]));
}
$bot->sendMessage($message->getChat()->getId(), "<a href='https://www.com'>link</a>", "HTML", true);
Hi! How can i add this parameter to message?
"disable_web_page_preview": 1