mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 05:58:58 +01:00
Fixes
This commit is contained in:
parent
6baac5b14a
commit
6376ebd2c5
2
docs
2
docs
@ -1 +1 @@
|
|||||||
Subproject commit 5da30efc5233a9ef6e6804dd48cdd89170e56209
|
Subproject commit 04a7377df9117e2a6c215ae78abf77b65df51558
|
@ -1 +1 @@
|
|||||||
Subproject commit 32214a5ad3aa7ffdf4cd7a1592b98990ca5a559b
|
Subproject commit 453cf521d71f99f21f84fff96651c744b0f99a34
|
@ -137,7 +137,7 @@ trait Files
|
|||||||
throw new AssertionError("has_document_photo === null: ".\json_encode($media['document']));
|
throw new AssertionError("has_document_photo === null: ".\json_encode($media['document']));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($attr['mask']) {
|
if ($attr['mask'] ?? false) {
|
||||||
return new MaskSticker($this, $media, $attr, $has_document_photo, $protected);
|
return new MaskSticker($this, $media, $attr, $has_document_photo, $protected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,6 +304,8 @@ trait BotAPI
|
|||||||
return $res;
|
return $res;
|
||||||
case 'messageMediaEmpty':
|
case 'messageMediaEmpty':
|
||||||
return [];
|
return [];
|
||||||
|
case 'decryptedMessageMediaExternalDocument':
|
||||||
|
$data = ['document' => $document];
|
||||||
case 'messageMediaDocument':
|
case 'messageMediaDocument':
|
||||||
$type_name = 'document';
|
$type_name = 'document';
|
||||||
$res = [];
|
$res = [];
|
||||||
@ -391,7 +393,6 @@ trait BotAPI
|
|||||||
case 'decryptedMessageMediaAudio':
|
case 'decryptedMessageMediaAudio':
|
||||||
case 'decryptedMessageMediaPhoto':
|
case 'decryptedMessageMediaPhoto':
|
||||||
case 'decryptedMessageMediaVideo':
|
case 'decryptedMessageMediaVideo':
|
||||||
case 'decryptedMessageMediaDocument':
|
|
||||||
case 'decryptedMessageMediaDocument':
|
case 'decryptedMessageMediaDocument':
|
||||||
$data = $data['file'];
|
$data = $data['file'];
|
||||||
// no break
|
// no break
|
||||||
|
Loading…
Reference in New Issue
Block a user