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:
parent
f5c22300c6
commit
64a018afae
@ -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['_']}");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user