Send entities with customized webpage preview.

Fixes #26981.
This commit is contained in:
John Preston 2023-10-29 08:55:30 +04:00
parent e64a096dca
commit ec3fc8c749
1 changed files with 1 additions and 0 deletions

View File

@ -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;