MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / MakeGiftCodeLink

Function MakeGiftCodeLink

Telegram/SourceFiles/boxes/gift_premium_box.cpp:119–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119[[nodiscard]] Data::GiftCodeLink MakeGiftCodeLink(
120 not_null<Main::Session*> session,
121 const QString &slug) {
122 const auto path = u"giftcode/"_q + slug;
123 return {
124 session->createInternalLink(path),
125 session->createInternalLinkFull(path),
126 };
127}
128
129[[nodiscard]] TextWithEntities FormatValuePrice(
130 int64 price,

Callers 2

ShareWithFriendFunction · 0.85
GiftCodeBoxFunction · 0.85

Calls 2

createInternalLinkMethod · 0.80

Tested by

no test coverage detected