From 2ef90dd29dcd8a028de2f3aa4710400d2e977fe5 Mon Sep 17 00:00:00 2001 From: GitHub Date: Tue, 8 Oct 2024 07:44:20 +0000 Subject: [PATCH] feat(schema): update TDLib to the latest layer --- _schema/tdapi.tl | 6 +++--- tdapi/tl_gift_gen.go | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/_schema/tdapi.tl b/_schema/tdapi.tl index f013e0f570..37394fe326 100644 --- a/_schema/tdapi.tl +++ b/_schema/tdapi.tl @@ -1,7 +1,7 @@ // Code generated by ./cmd/dltl, DO NOT EDIT. // // Source: https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/td_api.tl -// SHA256: a624d4bf3c7a0a3cb3dc9f91e3b51cbd955292befe703c7ca29ab2912568c84e +// SHA256: 9a87d3a3e4516376de91182fa64e40adf54e4173eab25b988398b7fa00ecdaad double#2210c154 ? = Double; @@ -924,7 +924,7 @@ starGiveawayPaymentOptions#909fbf18 options:vector = //@sticker The sticker representing the gift //@star_count Number of Telegram Stars that must be paid for the gift //@default_sell_star_count Number of Telegram Stars that can be claimed by the receiver instead of the gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed -//@remaining_count Number of remaining times the gift can be purchased by all users; 0 if not limited +//@remaining_count Number of remaining times the gift can be purchased by all users; 0 if not limited or the gift was sold out //@total_count Number of total times the gift can be purchased by all users; 0 if not limited gift#2acb4d76 id:int64 sticker:sticker star_count:int53 default_sell_star_count:int53 remaining_count:int32 total_count:int32 = Gift; @@ -12009,7 +12009,7 @@ deleteSavedCredentials#314056d2 = Ok; //@description Returns gifts that can be sent to other users getAvailableGifts#f6d565eb = Gifts; -//@description Send a gift to another user +//@description Sends a gift to another user. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift was sold out //@gift_id Identifier of the gift to send //@user_id Identifier of the user that will receive the gift //@text Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed diff --git a/tdapi/tl_gift_gen.go b/tdapi/tl_gift_gen.go index 84b11a4342..51b5ec9952 100644 --- a/tdapi/tl_gift_gen.go +++ b/tdapi/tl_gift_gen.go @@ -43,7 +43,8 @@ type Gift struct { // default. If the gift was paid with just bought Telegram Stars, then full value can be // claimed DefaultSellStarCount int64 - // Number of remaining times the gift can be purchased by all users; 0 if not limited + // Number of remaining times the gift can be purchased by all users; 0 if not limited or + // the gift was sold out RemainingCount int32 // Number of total times the gift can be purchased by all users; 0 if not limited TotalCount int32