2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

Update API scheme to layer 176.

This commit is contained in:
John Preston
2024-02-21 17:54:01 +04:00
parent 1e5f821c6f
commit 1fe641c458
15 changed files with 86 additions and 31 deletions

View File

@@ -161,7 +161,8 @@ void SendExistingMedia(
MTPReplyMarkup(),
sentEntities,
MTP_int(message.action.options.scheduled),
(sendAs ? sendAs->input : MTP_inputPeerEmpty())
(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
MTPstring() // quick_reply_shortcut
), [=](const MTPUpdates &result, const MTP::Response &response) {
}, [=](const MTP::Error &error, const MTP::Response &response) {
if (error.code() == 400
@@ -325,7 +326,8 @@ bool SendDice(MessageToSend &message) {
MTPReplyMarkup(),
MTP_vector<MTPMessageEntity>(),
MTP_int(message.action.options.scheduled),
(sendAs ? sendAs->input : MTP_inputPeerEmpty())
(sendAs ? sendAs->input : MTP_inputPeerEmpty()),
MTPstring() // quick_reply_shortcut
), [=](const MTPUpdates &result, const MTP::Response &response) {
}, [=](const MTP::Error &error, const MTP::Response &response) {
api->sendMessageFail(error, peer, randomId, newId);