Add linkPreviewTypeEmbeddedAudioPlayer.thumbnail.
This commit is contained in:
parent
bb2b10f615
commit
2f3efdaa73
@ -2602,9 +2602,10 @@ linkPreviewTypeDocument document:document author:string = LinkPreviewType;
|
|||||||
|
|
||||||
//@description The link is a link to an audio player
|
//@description The link is a link to an audio player
|
||||||
//@url URL of the external audio player
|
//@url URL of the external audio player
|
||||||
|
//@thumbnail Thumbanil of the audio; may be null if unknown
|
||||||
//@duration Duration of the audio, in seconds
|
//@duration Duration of the audio, in seconds
|
||||||
//@author Author of the audio
|
//@author Author of the audio
|
||||||
linkPreviewTypeEmbeddedAudioPlayer url:string duration:int32 author:string = LinkPreviewType;
|
linkPreviewTypeEmbeddedAudioPlayer url:string thumbnail:photo duration:int32 author:string = LinkPreviewType;
|
||||||
|
|
||||||
//@description The link is a link to a video player
|
//@description The link is a link to a video player
|
||||||
//@url URL of the external video player
|
//@url URL of the external video player
|
||||||
|
@ -1541,8 +1541,9 @@ td_api::object_ptr<td_api::LinkPreviewType> WebPagesManager::get_link_preview_ty
|
|||||||
if (!web_page->embed_type_.empty() || !web_page->embed_url_.empty()) {
|
if (!web_page->embed_type_.empty() || !web_page->embed_url_.empty()) {
|
||||||
if (web_page->embed_type_ == "iframe") {
|
if (web_page->embed_type_ == "iframe") {
|
||||||
if (web_page->type_ == "audio") {
|
if (web_page->type_ == "audio") {
|
||||||
return td_api::make_object<td_api::linkPreviewTypeEmbeddedAudioPlayer>(web_page->embed_url_,
|
return td_api::make_object<td_api::linkPreviewTypeEmbeddedAudioPlayer>(
|
||||||
web_page->duration_, web_page->author_);
|
web_page->embed_url_, get_photo_object(td_->file_manager_.get(), web_page->photo_), web_page->duration_,
|
||||||
|
web_page->author_);
|
||||||
}
|
}
|
||||||
if (web_page->type_ == "video") {
|
if (web_page->type_ == "video") {
|
||||||
return td_api::make_object<td_api::linkPreviewTypeEmbeddedVideoPlayer>(
|
return td_api::make_object<td_api::linkPreviewTypeEmbeddedVideoPlayer>(
|
||||||
|
Loading…
Reference in New Issue
Block a user