Add td_api::richTextUrl.is_cached.

GitOrigin-RevId: fb40f341fc6c621727a97e84cbc9fe6af2e8ad96
This commit is contained in:
levlam 2019-10-03 23:40:58 +03:00
parent dcfa6d1ea6
commit 407f3d1c1a
3 changed files with 3 additions and 3 deletions

View File

@ -729,8 +729,8 @@ richTextStrikethrough text:RichText = RichText;
//@description A fixed-width rich text @text Text //@description A fixed-width rich text @text Text
richTextFixed text:RichText = RichText; richTextFixed text:RichText = RichText;
//@description A rich text URL link @text Text @url URL //@description A rich text URL link @text Text @url URL @is_cached True, if the URL has cached instant view server-side
richTextUrl text:RichText url:string = RichText; richTextUrl text:RichText url:string is_cached:Bool = RichText;
//@description A rich text email link @text Text @email_address Email address //@description A rich text email link @text Text @email_address Email address
richTextEmailAddress text:RichText email_address:string = RichText; richTextEmailAddress text:RichText email_address:string = RichText;

Binary file not shown.

View File

@ -99,7 +99,7 @@ class RichText {
case RichText::Type::Fixed: case RichText::Type::Fixed:
return make_tl_object<td_api::richTextFixed>(texts[0].get_rich_text_object()); return make_tl_object<td_api::richTextFixed>(texts[0].get_rich_text_object());
case RichText::Type::Url: case RichText::Type::Url:
return make_tl_object<td_api::richTextUrl>(texts[0].get_rich_text_object(), content); return make_tl_object<td_api::richTextUrl>(texts[0].get_rich_text_object(), content, web_page_id.is_valid());
case RichText::Type::EmailAddress: case RichText::Type::EmailAddress:
return make_tl_object<td_api::richTextEmailAddress>(texts[0].get_rich_text_object(), content); return make_tl_object<td_api::richTextEmailAddress>(texts[0].get_rich_text_object(), content);
case RichText::Type::Concatenation: case RichText::Type::Concatenation: