11// https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/SourceFiles/mtproto/scheme/api.tl
2- // https://github.com/tdlib/td/blob/master/td/generate/scheme/td_api.tl
2+ // https://github.com/tdlib/td/blob/master/td/generate/scheme/telegram_api.tl
3+ // https://github.com/Ajaxy/telegram-tt/blob/master/src/lib/gramjs/tl/static/api.tl
34
45// /////////////////////////////
56// ///////////////// Layer cons
@@ -1318,6 +1319,7 @@ themeSettings#fa58b6d4 flags:# message_colors_animated:flags.2?true base_theme:B
13181319webPageAttributeTheme#54b56617 flags:# documents:flags.0? Vector <Document > settings:flags.1? ThemeSettings = WebPageAttribute ;
13191320webPageAttributeStory#2e94c3e7 flags:# peer:Peer id:int story:flags.0? StoryItem = WebPageAttribute ;
13201321webPageAttributeStickerSet#50cc03d3 flags:# emojis:flags.0? true text_color:flags.1? true stickers:Vector<Document > = WebPageAttribute ;
1322+ webPageAttributeUniqueStarGift#cf6f6db8 gift:StarGift = WebPageAttribute ;
13211323
13221324messages.votesList#4899484e flags:# count:int votes:Vector<MessagePeerVote > chats:Vector<Chat > users:Vector<User > next_offset:flags.0? string = messages .VotesList ;
13231325
@@ -1690,6 +1692,7 @@ mediaAreaChannelPost#770416af coordinates:MediaAreaCoordinates channel_id:long m
16901692inputMediaAreaChannelPost#2271f2bf coordinates:MediaAreaCoordinates channel:InputChannel msg_id:int = MediaArea ;
16911693mediaAreaUrl#37381085 coordinates:MediaAreaCoordinates url:string = MediaArea ;
16921694mediaAreaWeather#49a6549c coordinates:MediaAreaCoordinates emoji:string temperature_c:double color:int = MediaArea ;
1695+ mediaAreaStarGift#5787686d coordinates:MediaAreaCoordinates slug:string = MediaArea ;
16931696
16941697peerStories#9a35e999 flags:# peer:Peer max_read_id:flags.0? int stories:Vector<StoryItem > = PeerStories ;
16951698
@@ -1924,7 +1927,7 @@ starsGiveawayOption#94ce852a flags:# extended:flags.0?true default:flags.1?true
19241927starsGiveawayWinnersOption#54236209 flags:# default:flags.0? true users:int per_user_stars:long = StarsGiveawayWinnersOption ;
19251928
19261929starGift#2cc73c8 flags:# limited:flags.0? true sold_out:flags.1? true birthday:flags.2? true id:long sticker:Document stars:long availability_remains:flags.0? int availability_total:flags.0? int convert_stars:long first_sale_date:flags.1? int last_sale_date:flags.1? int upgrade_stars:flags.3? long = StarGift ;
1927- starGiftUnique#6a1407cd id:long title:string num:int owner_id:long attributes:Vector<StarGiftAttribute > availability_issued:int availability_total:int = StarGift ;
1930+ starGiftUnique#3482f322 flags:# id:long title:string slug:string num:int owner_id:flags.0 ? long owner_name:flags.1 ? string attributes:Vector<StarGiftAttribute > availability_issued:int availability_total:int = StarGift ;
19281931
19291932payments.starGiftsNotModified#a388a368 = payments .StarGifts ;
19301933payments.starGifts#901689ea hash:int gifts:Vector<StarGift > = payments .StarGifts ;
@@ -1972,6 +1975,10 @@ payments.starGiftUpgradePreview#167bd90b sample_attributes:Vector<StarGiftAttrib
19721975users.users#62d706b8 users:Vector<User > = users .Users ;
19731976users.usersSlice#315a4974 count:int users:Vector<User > = users .Users ;
19741977
1978+ payments.uniqueStarGift#caa2f60b gift:StarGift users:Vector<User > = payments .UniqueStarGift ;
1979+
1980+ messages.webPagePreview#b53e8b21 media:MessageMedia users:Vector<User > = messages .WebPagePreview ;
1981+
19751982---functions ---
19761983
19771984invokeAfterMsg#cb9f372d {X:Type} msg_id:long query :!X = X ;
@@ -2190,7 +2197,7 @@ messages.reportEncryptedSpam#4b0c8c0f peer:InputEncryptedChat = Bool;
21902197messages.readMessageContents#36a73f77 id:Vector<int > = messages .AffectedMessages ;
21912198messages.getStickers#d5a5d3a1 emoticon:string hash:long = messages .Stickers ;
21922199messages.getAllStickers#b8a0a1a8 hash:long = messages .AllStickers ;
2193- messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3? Vector <MessageEntity > = MessageMedia ;
2200+ messages.getWebPagePreview#570d6f6f flags:# message:string entities:flags.3? Vector <MessageEntity > = messages . WebPagePreview ;
21942201messages.exportChatInvite#a455de90 flags:# legacy_revoke_permanent:flags.2? true request_needed:flags.3? true peer:InputPeer expire_date:flags.0? int usage_limit:flags.1? int title:flags.4? string subscription_pricing:flags.5? StarsSubscriptionPricing = ExportedChatInvite ;
21952202messages.checkChatInvite#3eadb1bb hash:string = ChatInvite ;
21962203messages.importChatInvite#6c50051c hash:string = Updates ;
@@ -2516,7 +2523,7 @@ bots.checkDownloadFileParams#50077589 bot:InputUser file_name:string url:string
25162523bots.getAdminedBots#b0711d83 = Vector <User >;
25172524bots.updateStarRefProgram#778b5ab3 flags:# bot:InputUser commission_permille:int duration_months:flags.0? int = StarRefProgram ;
25182525bots.setCustomVerification#8b89dfbd flags:# enabled:flags.1? true bot:flags.0? InputUser peer:InputPeer custom_description:flags.2? string = Bool ;
2519- bots.getBotRecommendations#2855be61 flags:# bot:InputUser = users .Users ;
2526+ bots.getBotRecommendations#a1b70815 bot:InputUser = users .Users ;
25202527
25212528payments.getPaymentForm#37148dbb flags:# invoice:InputInvoice theme_params:flags.0? DataJSON = payments .PaymentForm ;
25222529payments.getPaymentReceipt#2478d1cc peer:InputPeer msg_id:int = payments .PaymentReceipt ;
@@ -2552,6 +2559,7 @@ payments.getStarGifts#c4563590 hash:int = payments.StarGifts;
25522559payments.getUserStarGifts#5e72c7e1 user_id:InputUser offset:string limit:int = payments .UserStarGifts ;
25532560payments.saveStarGift#92fd2aae flags:# unsave:flags.0? true msg_id:int = Bool ;
25542561payments.convertStarGift#72770c83 msg_id:int = Bool ;
2562+ payments.getUniqueStarGift#a1974d72 slug:string = payments .UniqueStarGift ;
25552563payments.botCancelStarsSubscription#6dfa0622 flags:# restore:flags.0? true user_id:InputUser charge_id:string = Bool ;
25562564payments.getConnectedStarRefBots#5869a553 flags:# peer:InputPeer offset_date:flags.2? int offset_link:flags.2? string limit:int = payments .ConnectedStarRefBots ;
25572565payments.getConnectedStarRefBot#b7d998f0 peer:InputPeer bot:InputUser = payments .ConnectedStarRefBots ;
@@ -2562,6 +2570,7 @@ payments.getStarGiftUpgradePreview#9c9abcb1 gift_id:long = payments.StarGiftUpgr
25622570payments.upgradeStarGift#cf4f0781 flags:# keep_original_details:flags.0? true msg_id:int = Updates ;
25632571payments.transferStarGift#333fb526 msg_id:int to_id:InputUser = Updates ;
25642572payments.getUserStarGift#b502e4a5 msg_id:Vector<int > = payments .UserStarGifts ;
2573+ payments.getUniqueStarGift#a1974d72 slug:string = payments .UniqueStarGift ;
25652574
25662575stickers.createStickerSet#9021ab67 flags:# masks:flags.0? true emojis:flags.5? true text_color:flags.6? true user_id:InputUser title:string short_name:string thumb:flags.2? InputDocument stickers:Vector<InputStickerSetItem > software:flags.3? string = messages .StickerSet ;
25672576stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages .StickerSet ;
@@ -2690,4 +2699,4 @@ fragment.getCollectibleInfo#be1e85ba collectible:InputCollectible = fragment.Col
26902699// invokeWithGooglePlayIntegrityPrefix#1df92984 nonce:string token:string = Error;
26912700// invokeWithApnsSecretPrefix#0dae54f8 nonce:string secret:string = Error;
26922701
2693- // LAYER 196
2702+ // LAYER 197
0 commit comments