2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Update API scheme on layer 166.

This commit is contained in:
John Preston
2023-10-03 17:52:33 +04:00
parent 744c1b925e
commit 926aae6847
18 changed files with 801 additions and 75 deletions

View File

@@ -45,12 +45,15 @@ MTPInputReplyTo ReplyToForMTP(
}
} else if (replyTo.msgId || replyTo.topicRootId) {
using Flag = MTPDinputReplyToMessage::Flag;
return MTP_inputReplyToMessage(
return MTP_inputReplyToMessage( // #TODO replies
(replyTo.topicRootId
? MTP_flags(Flag::f_top_msg_id)
: MTP_flags(0)),
MTP_int(replyTo.msgId ? replyTo.msgId : replyTo.topicRootId),
MTP_int(replyTo.topicRootId));
MTP_int(replyTo.topicRootId),
MTPInputPeer(), // reply_to_peer_id
MTPstring(), // quote_text
MTPVector<MTPMessageEntity>()); // quote_entities
}
return MTPInputReplyTo();
}