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

Support sending stories through sendMedia

This commit is contained in:
Daniil Gentili 2023-12-03 13:59:11 +01:00
parent f5c22300c6
commit 64a018afae

View File

@ -609,6 +609,10 @@ trait Files
$res['InputMedia'] = ['_' => 'inputMediaPhoto', 'id' => $res['InputPhoto']];
$res['MessageMedia'] = ['_' => 'messageMediaPhoto', 'photo' => $media];
break;
case 'messageMediaStory':
$media['_'] = 'inputMediaStory';
$res['InputMedia'] = $media;
break;
default:
throw new Exception("Could not convert media object of type {$media['_']}");
}