diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 19f1034b..7f7af27a 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -729,8 +729,8 @@ richTextStrikethrough text:RichText = RichText; //@description A fixed-width rich text @text Text richTextFixed text:RichText = RichText; -//@description A rich text URL link @text Text @url URL -richTextUrl text:RichText url:string = RichText; +//@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 is_cached:Bool = RichText; //@description A rich text email link @text Text @email_address Email address richTextEmailAddress text:RichText email_address:string = RichText; diff --git a/td/generate/scheme/td_api.tlo b/td/generate/scheme/td_api.tlo index 135a0947..daa7b565 100644 Binary files a/td/generate/scheme/td_api.tlo and b/td/generate/scheme/td_api.tlo differ diff --git a/td/telegram/WebPageBlock.cpp b/td/telegram/WebPageBlock.cpp index 66f19924..75d3e631 100644 --- a/td/telegram/WebPageBlock.cpp +++ b/td/telegram/WebPageBlock.cpp @@ -99,7 +99,7 @@ class RichText { case RichText::Type::Fixed: return make_tl_object(texts[0].get_rich_text_object()); case RichText::Type::Url: - return make_tl_object(texts[0].get_rich_text_object(), content); + return make_tl_object(texts[0].get_rich_text_object(), content, web_page_id.is_valid()); case RichText::Type::EmailAddress: return make_tl_object(texts[0].get_rich_text_object(), content); case RichText::Type::Concatenation: