From 82e43bc7eb8e20322b04fde707cfa605a1849b2e Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 5 Mar 2020 03:24:57 +0300 Subject: [PATCH] Add url to richTextRefernce/AnchorLink. GitOrigin-RevId: 68d814307eb4906c0429cd6674939460b6b9173c --- td/generate/scheme/td_api.tl | 8 ++++---- td/generate/scheme/td_api.tlo | Bin 167696 -> 167752 bytes td/telegram/WebPageBlock.cpp | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 222dd6133..b25966546 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -843,14 +843,14 @@ richTextPhoneNumber text:RichText phone_number:string = RichText; //@height Height of a bounding box in which the image should be shown; 0 if unknown richTextIcon document:document width:int32 height:int32 = RichText; -//@description A rich text reference of a text on the same web page @text The text @reference_text The text to show on click -richTextReference text:RichText reference_text:RichText = RichText; +//@description A rich text reference of a text on the same web page @text The text @reference_text The text to show on click @url An HTTP URL, opening the reference +richTextReference text:RichText reference_text:RichText url:string = RichText; //@description An anchor @name Anchor name richTextAnchor name:string = RichText; -//@description A link to an anchor on the same web page @text The link text @name The anchor name -richTextAnchorLink text:RichText name:string = RichText; +//@description A link to an anchor on the same web page @text The link text @name The anchor name @url An HTTP URL, opening the anchor +richTextAnchorLink text:RichText name:string url:string = RichText; //@description A concatenation of rich texts @texts Texts richTexts texts:vector = RichText; diff --git a/td/generate/scheme/td_api.tlo b/td/generate/scheme/td_api.tlo index 01bdf0cb352be3774cee9b7ad662a41ae8b52e1e..bdc5eb16a671812e6c4492cd1758e65efb9e63c8 100644 GIT binary patch delta 907 zcmbO*kL$!dt_>d)SW=C0GBX6=Wvqcq#6VaI zVvHehF@@%kRqp0pV1iNl8^-A+`fTGbv%j0 zxjiKjYA?uT5Vud?D9oroc|i*Y#APqwCh;UOmgpeI(p5RGm~8o!?}9~{$r&N36(vEb zX{kl2dC92^3?Ox&@PHU{CW%o6YPzE|qc%j4BN^sKon%G>5pkz}3ey=a0P5fTQUCw| delta 938 zcmX>xk88p_t_>d)SZ+ksNpJq5(DND0ntni(QDOQL5k?y%E{iCm1%&G$%2)%Jh=H&a z#27>1VhYn|h`|(tjrt-6Gs;Aqu>!1a`v!5w2u6q&9!W+SB+WjOFwLkE+fPU`?qG)~ zY*A!<0bvy=G424fw(BS}=AfIneUA#`4JL^E40XmOrVvdIv5W=~R!J-)#QW2MVlon- zfM9@vB4;)o4%@baAhGFZh*YN%$EX6g1CMzPaf}+osCy7cock=|p~|*c+1% z&QhPgARcDV892+qkx7OV?$hao`i#a9r-URB=lBgos^du{&haUUaC?DHgSdYBMqx(% z=^s8Zax#O${{`GAo+QQ+9k}a(adlOWE2j9$<`sfPnaLR;sTCzbscET2sd>q%3=H77 z1Nj%?!81vWD!AiVB^l=2gdipZ3_BJbzjj;*W`|>5az=iUPi9^=njMq(SZaWst&EhE iKu(l3GfLuwX)lI4%_N1<0H=f6Yf>1u*Q79=(Eanchors_.find(anchor); if (it != context->anchors_.end()) { if (it->second == nullptr) { - return make_tl_object(texts[0].get_rich_text_object(context), anchor.str()); + return make_tl_object(texts[0].get_rich_text_object(context), anchor.str(), + content); } else { context->is_first_pass_ = true; auto reference_text = it->second->get_rich_text_object(context); context->is_first_pass_ = false; return make_tl_object(texts[0].get_rich_text_object(context), - std::move(reference_text)); + std::move(reference_text), content); } } }