1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 06:14:39 +01:00

Small fix

This commit is contained in:
Daniil Gentili 2021-12-07 18:27:07 +01:00
parent 26d67be358
commit 0a01559243
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -460,6 +460,9 @@ class Connection
}
} elseif ($method === 'channels.deleteUserHistory') {
$method = 'channels.deleteParticipantHistory';
if (isset($arguments['user_id'])) {
$arguments['participant'] = $arguments['user_id'];
}
}
if ($method === 'messages.sendEncrypted' || $method === 'messages.sendEncryptedService') {
$arguments['queuePromise'] = new Deferred;