From 407f3d1c1ae0417a27f25dcf076fd8da3c371cae Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 3 Oct 2019 23:40:58 +0300 Subject: [PATCH] Add td_api::richTextUrl.is_cached. GitOrigin-RevId: fb40f341fc6c621727a97e84cbc9fe6af2e8ad96 --- td/generate/scheme/td_api.tl | 4 ++-- td/generate/scheme/td_api.tlo | Bin 158276 -> 158312 bytes td/telegram/WebPageBlock.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 135a0947507de40b04a747652e176e174e862649..daa7b56579e1c1228ebe24d8a01ab77e850fabaa 100644 GIT binary patch delta 839 zcmX?dh4aM~&J7FXST;&m3vFH^m+=(Lnl8Y?7z1GyurNljf@B${FBD@mpRT~dC@@`w zmC*#QP+@uwE29k(_YA763LB#ZL^gp9X6gYp#tMXv?J?|(7K{-73=T#agv|6C95BtO z65B&K8F#Ql6$&!GfUy1uGVTDgw(k&P%t1GCyN3wl4JL@Zia2A1F+|e>FGd3h>xvhn z0)*wj#wa5J_B8_p6gji$aM-pT1c^=8@g`1Pi#MYRG3Gt+X4D`?or4duy%xCK2X!*T zRXMI0k@F0!+(ntm86l|^C80$*VD}dkG0H&Vbh2-+`t$=FGd3h>xvhn z0)*wj#wa5J_B8_p6gji$aM-pT1c^=8@g`1Pi#MYRG3Gt+X4D`?or4duy%xCK2X!*T zRXMI0`zwy6+(ntm86l|^C80$*VD~Qo`VMU0WEnRdh{Za-FeiW{IpIc6|0~A`4W})> z#Q8?Rk2rNXe#pMT9ok3W=7F3BO^XLznDi$X7;r#b@8J(MYI4Iyg~<*N1*Y#YVswGX mJ%PzhN78N>$Ec3b9uojdb2R~s1~^^Pek6c#`;h>qC6WN8cFke{ 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: