mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update API scheme to layer 133.
This commit is contained in:
@@ -49,12 +49,12 @@ MTPInputPeer GenerateInputPeer(
|
||||
return MTP_inputPeerUserFromMessage(
|
||||
GenerateInputPeer(id, accessHash, 0, 0, self),
|
||||
MTP_int(inMessageId),
|
||||
MTP_int(peerToUser(inMessagePeerId).bare)); // #TODO ids
|
||||
MTP_long(peerToUser(inMessagePeerId).bare));
|
||||
} else if (inMessageId && peerIsChannel(inMessagePeerId)) {
|
||||
return MTP_inputPeerChannelFromMessage(
|
||||
GenerateInputPeer(id, accessHash, 0, 0, self),
|
||||
MTP_int(inMessageId),
|
||||
MTP_int(peerToChannel(inMessagePeerId).bare)); // #TODO ids
|
||||
MTP_long(peerToChannel(inMessagePeerId).bare));
|
||||
} else if (!id) {
|
||||
return MTP_inputPeerEmpty();
|
||||
} else if (id == peerFromUser(self)) {
|
||||
|
Reference in New Issue
Block a user