Bugfix
This commit is contained in:
parent
073ca172f6
commit
28436dedc1
|
@ -470,7 +470,7 @@ trait TL
|
|||
$serialized .= $this->serialize_object(['type' => 'bytes'], $this->random(15 + 4 * (random_int(0, PHP_INT_MAX) % 3)), 'random_bytes');
|
||||
continue;
|
||||
}
|
||||
if ($current_argument['name'] === 'data' && isset($arguments['message'])) {
|
||||
if ($current_argument['name'] === 'data' && isset($tl['method']) && in_array($tl['method'], ['messages.sendEncrypted', 'messages.sendEncryptedFile', 'messages.sendEncryptedService']) && isset($arguments['message'])) {
|
||||
$serialized .= $this->serialize_object($current_argument, $this->encrypt_secret_message($arguments['peer']['chat_id'], $arguments['message']), 'data');
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user