From ec3fc8c749621cbbc626f34b84fded26dbb3c9d1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 29 Oct 2023 08:55:30 +0400 Subject: [PATCH] Send entities with customized webpage preview. Fixes #26981. --- Telegram/SourceFiles/apiwrap.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index b1fb11572..1efb5a275 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -3682,6 +3682,7 @@ void ApiWrap::sendMessage(MessageToSend &&message) { Api::ConvertOption::SkipLocal); if (!sentEntities.v.isEmpty()) { sendFlags |= MTPmessages_SendMessage::Flag::f_entities; + mediaFlags |= MTPmessages_SendMedia::Flag::f_entities; } const auto clearCloudDraft = action.clearDraft; const auto topicRootId = action.replyTo.topicRootId;