API Layer 187: Star Giveaways, private paid reactions, bot msg for paid media

This commit is contained in:
Wizou 2024-09-07 02:09:42 +02:00
parent be7027b318
commit 62a691359b
5 changed files with 241 additions and 32 deletions

View file

@ -1,4 +1,4 @@
[![API Layer](https://img.shields.io/badge/API_Layer-186-blueviolet)](https://corefork.telegram.org/methods)
[![API Layer](https://img.shields.io/badge/API_Layer-187-blueviolet)](https://corefork.telegram.org/methods)
[![NuGet version](https://img.shields.io/nuget/v/WTelegramClient?color=00508F)](https://www.nuget.org/packages/WTelegramClient/)
[![NuGet prerelease](https://img.shields.io/nuget/vpre/WTelegramClient?color=C09030&label=dev+nuget)](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
[![Donate](https://img.shields.io/badge/Help_this_project:-Donate-ff4444)](https://buymeacoffee.com/wizou)

View file

@ -471,13 +471,21 @@ namespace TL
}
}
/// <summary><a href="https://corefork.telegram.org/api/paid-media">Paid media, see here »</a> for more info. <para>See <a href="https://corefork.telegram.org/constructor/inputMediaPaidMedia"/></para></summary>
[TLDef(0xAA661FC3)]
[TLDef(0xC4103386)]
public sealed partial class InputMediaPaidMedia : InputMedia
{
public Flags flags;
/// <summary>The price of the media in <a href="https://corefork.telegram.org/api/stars">Telegram Stars</a>.</summary>
public long stars_amount;
/// <summary>Photos or videos.</summary>
public InputMedia[] extended_media;
[IfFlag(0)] public string payload;
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="payload"/> has a value</summary>
has_payload = 0x1,
}
}
/// <summary>Defines a new group profile photo. <para>See <a href="https://corefork.telegram.org/type/InputChatPhoto"/></para> <para>Derived classes: <see cref="InputChatUploadedPhoto"/>, <see cref="InputChatPhoto"/></para></summary>
@ -2142,7 +2150,7 @@ namespace TL
}
}
/// <summary>Contains info about a <a href="https://corefork.telegram.org/api/giveaways">giveaway, see here »</a> for more info. <para>See <a href="https://corefork.telegram.org/constructor/messageMediaGiveaway"/></para></summary>
[TLDef(0xDAAD85B0)]
[TLDef(0xAA073BEB)]
public sealed partial class MessageMediaGiveaway : MessageMedia
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -2156,7 +2164,8 @@ namespace TL
/// <summary>Number of <a href="https://corefork.telegram.org/api/premium">Telegram Premium</a> subscriptions given away.</summary>
public int quantity;
/// <summary>Duration in months of each <a href="https://corefork.telegram.org/api/premium">Telegram Premium</a> subscription in the giveaway.</summary>
public int months;
[IfFlag(4)] public int months;
[IfFlag(5)] public long stars;
/// <summary>The end date of the giveaway.</summary>
public DateTime until_date;
@ -2170,10 +2179,14 @@ namespace TL
winners_are_visible = 0x4,
/// <summary>Field <see cref="prize_description"/> has a value</summary>
has_prize_description = 0x8,
/// <summary>Field <see cref="months"/> has a value</summary>
has_months = 0x10,
/// <summary>Field <see cref="stars"/> has a value</summary>
has_stars = 0x20,
}
}
/// <summary>A <a href="https://corefork.telegram.org/api/giveaways">giveaway</a> with public winners has finished, this constructor contains info about the winners. <para>See <a href="https://corefork.telegram.org/constructor/messageMediaGiveawayResults"/></para></summary>
[TLDef(0xC6991068)]
[TLDef(0xCEAA3EA1)]
public sealed partial class MessageMediaGiveawayResults : MessageMedia
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -2191,7 +2204,8 @@ namespace TL
/// <summary>Up to 100 user identifiers of the winners of the giveaway.</summary>
public long[] winners;
/// <summary>Duration in months of each <a href="https://corefork.telegram.org/api/premium">Telegram Premium</a> subscription in the giveaway.</summary>
public int months;
[IfFlag(4)] public int months;
[IfFlag(5)] public long stars;
/// <summary>Can contain a textual description of additional giveaway prizes.</summary>
[IfFlag(1)] public string prize_description;
/// <summary>Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in initial parameters of the giveaway.</summary>
@ -2207,6 +2221,10 @@ namespace TL
refunded = 0x4,
/// <summary>Field <see cref="additional_peers_count"/> has a value</summary>
has_additional_peers_count = 0x8,
/// <summary>Field <see cref="months"/> has a value</summary>
has_months = 0x10,
/// <summary>Field <see cref="stars"/> has a value</summary>
has_stars = 0x20,
}
}
/// <summary><a href="https://corefork.telegram.org/api/paid-media">Paid media, see here »</a> for more info. <para>See <a href="https://corefork.telegram.org/constructor/messageMediaPaidMedia"/></para></summary>
@ -2659,16 +2677,31 @@ namespace TL
}
}
/// <summary>A <a href="https://corefork.telegram.org/api/giveaways">giveaway</a> was started. <para>See <a href="https://corefork.telegram.org/constructor/messageActionGiveawayLaunch"/></para></summary>
[TLDef(0x332BA9ED)]
public sealed partial class MessageActionGiveawayLaunch : MessageAction { }
[TLDef(0xA80F51E4)]
public sealed partial class MessageActionGiveawayLaunch : MessageAction
{
public Flags flags;
[IfFlag(0)] public long stars;
[Flags] public enum Flags : uint
{
has_stars = 0x1,
}
}
/// <summary>A <a href="https://corefork.telegram.org/api/giveaways">giveaway</a> has ended. <para>See <a href="https://corefork.telegram.org/constructor/messageActionGiveawayResults"/></para></summary>
[TLDef(0x2A9FADC5)]
[TLDef(0x87E2F155)]
public sealed partial class MessageActionGiveawayResults : MessageAction
{
public Flags flags;
/// <summary>Number of winners in the giveaway</summary>
public int winners_count;
/// <summary>Number of undistributed prizes</summary>
public int unclaimed_count;
[Flags] public enum Flags : uint
{
stars = 0x1,
}
}
/// <summary>Some <a href="https://corefork.telegram.org/api/boost">boosts »</a> were applied to the channel or supergroup. <para>See <a href="https://corefork.telegram.org/constructor/messageActionBoostApply"/></para></summary>
[TLDef(0xCC02AA6D)]
@ -2736,6 +2769,21 @@ namespace TL
has_transaction_id = 0x2,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionPrizeStars"/></para></summary>
[TLDef(0xB00C47A2)]
public sealed partial class MessageActionPrizeStars : MessageAction
{
public Flags flags;
public long stars;
public string transaction_id;
public Peer boost_peer;
public int giveaway_msg_id;
[Flags] public enum Flags : uint
{
unclaimed = 0x1,
}
}
/// <summary>Chat info. <para>See <a href="https://corefork.telegram.org/type/Dialog"/></para> <para>Derived classes: <see cref="Dialog"/>, <see cref="DialogFolder"/></para></summary>
public abstract partial class DialogBase : IObject
@ -5512,6 +5560,22 @@ namespace TL
/// <summary>New Telegram Star balance.</summary>
public StarsRevenueStatus status;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateBotPurchasedPaidMedia"/></para></summary>
[TLDef(0x283BD312)]
public sealed partial class UpdateBotPurchasedPaidMedia : Update
{
public long user_id;
public string payload;
public int qts;
public override (long, int, int) GetMBox() => (-1, qts, 1);
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updatePaidReactionPrivacy"/></para></summary>
[TLDef(0x51CA7AEC)]
public sealed partial class UpdatePaidReactionPrivacy : Update
{
public bool private_;
}
/// <summary>Updates state. <para>See <a href="https://corefork.telegram.org/constructor/updates.state"/></para></summary>
[TLDef(0xA56C2A3E)]
@ -11747,6 +11811,13 @@ namespace TL
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionToggleSignatureProfiles"/></para></summary>
[TLDef(0x60A79C79)]
public sealed partial class ChannelAdminLogEventActionToggleSignatureProfiles : ChannelAdminLogEventActionToggleSignatures { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionParticipantSubExtend"/></para></summary>
[TLDef(0x64642DB3)]
public sealed partial class ChannelAdminLogEventActionParticipantSubExtend : ChannelAdminLogEventAction
{
public ChannelParticipantBase prev_participant;
public ChannelParticipantBase new_participant;
}
/// <summary>Admin log event <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEvent"/></para></summary>
[TLDef(0x1FAD68CD)]
@ -11821,6 +11892,7 @@ namespace TL
send = 0x10000,
/// <summary><a href="https://corefork.telegram.org/api/forum">Forum</a>-related events</summary>
forums = 0x20000,
sub_extend = 0x40000,
}
}
@ -15645,6 +15717,31 @@ namespace TL
/// <summary>Total price in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
public long amount;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputStorePaymentStarsGiveaway"/></para></summary>
[TLDef(0x751F08FA)]
public sealed partial class InputStorePaymentStarsGiveaway : InputStorePaymentPurpose
{
public Flags flags;
public long stars;
public InputPeer boost_peer;
[IfFlag(1)] public InputPeer[] additional_peers;
[IfFlag(2)] public string[] countries_iso2;
[IfFlag(4)] public string prize_description;
public long random_id;
public DateTime until_date;
public string currency;
public long amount;
public int users;
[Flags] public enum Flags : uint
{
only_new_subscribers = 0x1,
has_additional_peers = 0x2,
has_countries_iso2 = 0x4,
winners_are_visible = 0x8,
has_prize_description = 0x10,
}
}
/// <summary>Telegram Premium gift option <para>See <a href="https://corefork.telegram.org/constructor/premiumGiftOption"/></para></summary>
[TLDef(0x74C34319)]
@ -17248,7 +17345,7 @@ namespace TL
public override DateTime StartDate => start_date;
}
/// <summary>A <a href="https://corefork.telegram.org/api/giveaways">giveaway</a> has ended. <para>See <a href="https://corefork.telegram.org/constructor/payments.giveawayInfoResults"/></para></summary>
[TLDef(0x00CD5570)]
[TLDef(0xE175E66F)]
public sealed partial class Payments_GiveawayInfoResults : Payments_GiveawayInfoBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -17256,13 +17353,14 @@ namespace TL
/// <summary>Start date of the giveaway</summary>
public DateTime start_date;
/// <summary>If we're one of the winners of this giveaway, contains the <a href="https://corefork.telegram.org/api/links#premium-giftcode-links">Premium gift code</a>, see <a href="https://corefork.telegram.org/api/giveaways">here »</a> for more info on the full giveaway flow.</summary>
[IfFlag(0)] public string gift_code_slug;
[IfFlag(3)] public string gift_code_slug;
[IfFlag(4)] public long stars_prize;
/// <summary>End date of the giveaway. May be bigger than the end date specified in parameters of the giveaway.</summary>
public DateTime finish_date;
/// <summary>Number of winners in the giveaway</summary>
public int winners_count;
/// <summary>Number of winners, which activated their <a href="https://corefork.telegram.org/api/links#premium-giftcode-links">gift codes</a>.</summary>
public int activated_count;
[IfFlag(2)] public int activated_count;
[Flags] public enum Flags : uint
{
@ -17270,15 +17368,31 @@ namespace TL
winner = 0x1,
/// <summary>Whether the giveaway was canceled and was fully refunded.</summary>
refunded = 0x2,
/// <summary>Field <see cref="activated_count"/> has a value</summary>
has_activated_count = 0x4,
/// <summary>Field <see cref="gift_code_slug"/> has a value</summary>
has_gift_code_slug = 0x8,
/// <summary>Field <see cref="stars_prize"/> has a value</summary>
has_stars_prize = 0x10,
}
/// <summary>Start date of the giveaway</summary>
public override DateTime StartDate => start_date;
}
/// <summary>Contains info about a <a href="https://corefork.telegram.org/api/giveaways">prepaid giveaway »</a>. <para>See <a href="https://corefork.telegram.org/type/PrepaidGiveaway"/></para> <para>Derived classes: <see cref="PrepaidGiveaway"/></para></summary>
public abstract partial class PrepaidGiveawayBase : IObject
{
/// <summary>Prepaid giveaway ID.</summary>
public virtual long ID => default;
/// <summary>Number of given away <a href="https://corefork.telegram.org/api/premium">Telegram Premium</a> subscriptions.</summary>
public virtual int Quantity => default;
/// <summary>Payment date.</summary>
public virtual DateTime Date => default;
}
/// <summary>Contains info about a <a href="https://corefork.telegram.org/api/giveaways">prepaid giveaway »</a>. <para>See <a href="https://corefork.telegram.org/constructor/prepaidGiveaway"/></para></summary>
[TLDef(0xB2539D54)]
public sealed partial class PrepaidGiveaway : IObject
public sealed partial class PrepaidGiveaway : PrepaidGiveawayBase
{
/// <summary>Prepaid giveaway ID.</summary>
public long id;
@ -17288,10 +17402,31 @@ namespace TL
public int quantity;
/// <summary>Payment date.</summary>
public DateTime date;
/// <summary>Prepaid giveaway ID.</summary>
public override long ID => id;
/// <summary>Number of given away <a href="https://corefork.telegram.org/api/premium">Telegram Premium</a> subscriptions.</summary>
public override int Quantity => quantity;
/// <summary>Payment date.</summary>
public override DateTime Date => date;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/prepaidStarsGiveaway"/></para></summary>
[TLDef(0x9A9D77E0)]
public sealed partial class PrepaidStarsGiveaway : PrepaidGiveawayBase
{
public long id;
public long stars;
public int quantity;
public int boosts;
public DateTime date;
public override long ID => id;
public override int Quantity => quantity;
public override DateTime Date => date;
}
/// <summary>Info about one or more <a href="https://corefork.telegram.org/api/boost">boosts</a> applied by a specific user. <para>See <a href="https://corefork.telegram.org/constructor/boost"/></para></summary>
[TLDef(0x2A1C8C71)]
[TLDef(0x4B3E14D6)]
public sealed partial class Boost : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -17310,6 +17445,7 @@ namespace TL
[IfFlag(4)] public string used_gift_slug;
/// <summary>If set, this boost counts as <c>multiplier</c> boosts, otherwise it counts as a single boost.</summary>
[IfFlag(5)] public int multiplier;
[IfFlag(6)] public long stars;
[Flags] public enum Flags : uint
{
@ -17325,6 +17461,8 @@ namespace TL
has_used_gift_slug = 0x10,
/// <summary>Field <see cref="multiplier"/> has a value</summary>
has_multiplier = 0x20,
/// <summary>Field <see cref="stars"/> has a value</summary>
has_stars = 0x40,
}
}
@ -17411,7 +17549,7 @@ namespace TL
/// <summary><a href="https://corefork.telegram.org/api/links#boost-links">Boost deep link »</a> that can be used to boost the chat.</summary>
public string boost_url;
/// <summary>A list of prepaid <a href="https://corefork.telegram.org/api/giveaways">giveaways</a> available for the chat; only returned to channel/supergroup admins.</summary>
[IfFlag(3)] public PrepaidGiveaway[] prepaid_giveaways;
[IfFlag(3)] public PrepaidGiveawayBase[] prepaid_giveaways;
/// <summary>Indicates which of our <a href="https://corefork.telegram.org/api/boost">boost slots</a> we've assigned to this peer (populated if <c>my_boost</c> is set).</summary>
[IfFlag(2)] public int[] my_boost_slots;
@ -18680,15 +18818,21 @@ namespace TL
}
/// <summary>Describes <a href="https://corefork.telegram.org/api/revenue">channel ad revenue balances »</a>. <para>See <a href="https://corefork.telegram.org/constructor/broadcastRevenueBalances"/></para></summary>
[TLDef(0x8438F1C6)]
[TLDef(0xC3FF71E7)]
public sealed partial class BroadcastRevenueBalances : IObject
{
public Flags flags;
/// <summary>Amount of not-yet-withdrawn cryptocurrency.</summary>
public long current_balance;
/// <summary>Amount of withdrawable cryptocurrency, out of the currently available balance (<c>available_balance &lt;= current_balance</c>).</summary>
public long available_balance;
/// <summary>Total amount of earned cryptocurrency.</summary>
public long overall_revenue;
[Flags] public enum Flags : uint
{
withdrawal_enabled = 0x1,
}
}
/// <summary>Represents a <a href="https://corefork.telegram.org/api/effects">message effect »</a>. <para>See <a href="https://corefork.telegram.org/constructor/availableEffect"/></para></summary>
@ -18807,7 +18951,7 @@ namespace TL
}
/// <summary>Represents a <a href="https://corefork.telegram.org/api/stars">Telegram Stars transaction »</a>. <para>See <a href="https://corefork.telegram.org/constructor/starsTransaction"/></para></summary>
[TLDef(0x433AEB2B)]
[TLDef(0xEE7522D5)]
public sealed partial class StarsTransaction : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -18837,6 +18981,7 @@ namespace TL
/// <summary>The purchased <a href="https://corefork.telegram.org/api/paid-media">paid media »</a>.</summary>
[IfFlag(9)] public MessageMedia[] extended_media;
[IfFlag(12)] public int subscription_period;
[IfFlag(13)] public int giveaway_post_id;
[Flags] public enum Flags : uint
{
@ -18865,6 +19010,8 @@ namespace TL
reaction = 0x800,
/// <summary>Field <see cref="subscription_period"/> has a value</summary>
has_subscription_period = 0x1000,
/// <summary>Field <see cref="giveaway_post_id"/> has a value</summary>
has_giveaway_post_id = 0x2000,
}
}
@ -19141,4 +19288,38 @@ namespace TL
has_peer_id = 0x8,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/starsGiveawayOption"/></para></summary>
[TLDef(0x94CE852A)]
public sealed partial class StarsGiveawayOption : IObject
{
public Flags flags;
public long stars;
public int yearly_boosts;
[IfFlag(2)] public string store_product;
public string currency;
public long amount;
public StarsGiveawayWinnersOption[] winners;
[Flags] public enum Flags : uint
{
extended = 0x1,
default_ = 0x2,
has_store_product = 0x4,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/starsGiveawayWinnersOption"/></para></summary>
[TLDef(0x54236209)]
public sealed partial class StarsGiveawayWinnersOption : IObject
{
public Flags flags;
public int users;
public long per_user_stars;
[Flags] public enum Flags : uint
{
default_ = 0x1,
}
}
}

View file

@ -4313,14 +4313,15 @@ namespace TL
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.sendPaidReaction"/></para></summary>
public static Task<UpdatesBase> Messages_SendPaidReaction(this Client client, InputPeer peer, int msg_id, int count, long random_id, bool private_ = false)
public static Task<UpdatesBase> Messages_SendPaidReaction(this Client client, InputPeer peer, int msg_id, int count, long random_id, bool? private_ = default)
=> client.Invoke(new Messages_SendPaidReaction
{
flags = (Messages_SendPaidReaction.Flags)(private_ ? 0x1 : 0),
flags = (Messages_SendPaidReaction.Flags)(private_ != default ? 0x1 : 0),
peer = peer,
msg_id = msg_id,
count = count,
random_id = random_id,
private_ = private_.GetValueOrDefault(),
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.togglePaidReactionPrivacy"/></para></summary>
@ -4332,6 +4333,12 @@ namespace TL
private_ = private_,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getPaidReactionPrivacy"/></para></summary>
public static Task<UpdatesBase> Messages_GetPaidReactionPrivacy(this Client client)
=> client.Invoke(new Messages_GetPaidReactionPrivacy
{
});
/// <summary>Returns a current state of updates. <para>See <a href="https://corefork.telegram.org/method/updates.getState"/> [bots: ✓]</para></summary>
public static Task<Updates_State> Updates_GetState(this Client client)
=> client.Invoke(new Updates_GetState
@ -5982,6 +5989,12 @@ namespace TL
subscription_id = subscription_id,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.getStarsGiveawayOptions"/></para></summary>
public static Task<StarsGiveawayOption[]> Payments_GetStarsGiveawayOptions(this Client client)
=> client.Invoke(new Payments_GetStarsGiveawayOptions
{
});
/// <summary>Create a stickerset. <para>See <a href="https://corefork.telegram.org/method/stickers.createStickerSet"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.createStickerSet#possible-errors">details</a>)</para></summary>
/// <param name="masks">Whether this is a mask stickerset</param>
/// <param name="emojis">Whether this is a <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji</a> stickerset.</param>
@ -10755,7 +10768,7 @@ namespace TL.Methods
}
}
[TLDef(0x25C8FE3E)]
[TLDef(0x9DD6A67B)]
public sealed partial class Messages_SendPaidReaction : IMethod<UpdatesBase>
{
public Flags flags;
@ -10763,10 +10776,11 @@ namespace TL.Methods
public int msg_id;
public int count;
public long random_id;
[IfFlag(0)] public bool private_;
[Flags] public enum Flags : uint
{
private_ = 0x1,
has_private = 0x1,
}
}
@ -10778,6 +10792,9 @@ namespace TL.Methods
public bool private_;
}
[TLDef(0x472455AA)]
public sealed partial class Messages_GetPaidReactionPrivacy : IMethod<UpdatesBase> { }
[TLDef(0xEDD4882A)]
public sealed partial class Updates_GetState : IMethod<Updates_State> { }
@ -12085,6 +12102,9 @@ namespace TL.Methods
public string subscription_id;
}
[TLDef(0xBD1EFD3E)]
public sealed partial class Payments_GetStarsGiveawayOptions : IMethod<StarsGiveawayOption[]> { }
[TLDef(0x9021AB67)]
public sealed partial class Stickers_CreateStickerSet : IMethod<Messages_StickerSet>
{

View file

@ -6,7 +6,7 @@ namespace TL
{
public static partial class Layer
{
public const int Version = 186; // fetched 14/08/2024 12:45:43
public const int Version = 187; // fetched 07/09/2024 00:00:28
internal const int SecretChats = 144;
internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415;
@ -102,7 +102,7 @@ namespace TL
[0xE66FBF7B] = typeof(InputMediaDice),
[0x89FDD778] = typeof(InputMediaStory),
[0xC21B8849] = typeof(InputMediaWebPage),
[0xAA661FC3] = typeof(InputMediaPaidMedia),
[0xC4103386] = typeof(InputMediaPaidMedia),
[0x1CA48F57] = null,//InputChatPhotoEmpty
[0xBDCDAEC0] = typeof(InputChatUploadedPhoto),
[0x8953AD37] = typeof(InputChatPhoto),
@ -164,8 +164,8 @@ namespace TL
[0x4BD6E798] = typeof(MessageMediaPoll),
[0x3F7EE58B] = typeof(MessageMediaDice),
[0x68CB6283] = typeof(MessageMediaStory),
[0xDAAD85B0] = typeof(MessageMediaGiveaway),
[0xC6991068] = typeof(MessageMediaGiveawayResults),
[0xAA073BEB] = typeof(MessageMediaGiveaway),
[0xCEAA3EA1] = typeof(MessageMediaGiveawayResults),
[0xA8852491] = typeof(MessageMediaPaidMedia),
[0xB6AEF7B0] = null,//MessageActionEmpty
[0xBD47CBAD] = typeof(MessageActionChatCreate),
@ -206,12 +206,13 @@ namespace TL
[0x31518E9B] = typeof(MessageActionRequestedPeer),
[0x5060A3F4] = typeof(MessageActionSetChatWallPaper),
[0x678C2E09] = typeof(MessageActionGiftCode),
[0x332BA9ED] = typeof(MessageActionGiveawayLaunch),
[0x2A9FADC5] = typeof(MessageActionGiveawayResults),
[0xA80F51E4] = typeof(MessageActionGiveawayLaunch),
[0x87E2F155] = typeof(MessageActionGiveawayResults),
[0xCC02AA6D] = typeof(MessageActionBoostApply),
[0x93B31848] = typeof(MessageActionRequestedPeerSentMe),
[0x41B3E202] = typeof(MessageActionPaymentRefunded),
[0x45D5B021] = typeof(MessageActionGiftStars),
[0xB00C47A2] = typeof(MessageActionPrizeStars),
[0xD58A08C6] = typeof(Dialog),
[0x71BD134C] = typeof(DialogFolder),
[0x2331B22D] = typeof(PhotoEmpty),
@ -415,6 +416,8 @@ namespace TL
[0x0FB85198] = typeof(UpdateStarsBalance),
[0x1EA2FDA7] = typeof(UpdateBusinessBotCallbackQuery),
[0xA584B019] = typeof(UpdateStarsRevenueStatus),
[0x283BD312] = typeof(UpdateBotPurchasedPaidMedia),
[0x51CA7AEC] = typeof(UpdatePaidReactionPrivacy),
[0xA56C2A3E] = typeof(Updates_State),
[0x5D75A138] = typeof(Updates_DifferenceEmpty),
[0x00F49CA0] = typeof(Updates_Difference),
@ -836,6 +839,7 @@ namespace TL
[0x3EA9FEB1] = typeof(ChannelAdminLogEventActionChangeEmojiStatus),
[0x46D840AB] = typeof(ChannelAdminLogEventActionChangeEmojiStickerSet),
[0x60A79C79] = typeof(ChannelAdminLogEventActionToggleSignatureProfiles),
[0x64642DB3] = typeof(ChannelAdminLogEventActionParticipantSubExtend),
[0x1FAD68CD] = typeof(ChannelAdminLogEvent),
[0xED8AF74D] = typeof(Channels_AdminLogResults),
[0xEA107AE4] = typeof(ChannelAdminLogEventsFilter),
@ -1094,6 +1098,7 @@ namespace TL
[0x160544CA] = typeof(InputStorePaymentPremiumGiveaway),
[0xDDDD0F56] = typeof(InputStorePaymentStarsTopup),
[0x1D741EF7] = typeof(InputStorePaymentStarsGift),
[0x751F08FA] = typeof(InputStorePaymentStarsGiveaway),
[0x74C34319] = typeof(PremiumGiftOption),
[0x88F8F21B] = typeof(PaymentFormMethod),
[0x2DE11AAE] = null,//EmojiStatusEmpty
@ -1195,9 +1200,10 @@ namespace TL
[0x257E962B] = typeof(PremiumGiftCodeOption),
[0x284A1096] = typeof(Payments_CheckedGiftCode),
[0x4367DAA0] = typeof(Payments_GiveawayInfo),
[0x00CD5570] = typeof(Payments_GiveawayInfoResults),
[0xE175E66F] = typeof(Payments_GiveawayInfoResults),
[0xB2539D54] = typeof(PrepaidGiveaway),
[0x2A1C8C71] = typeof(Boost),
[0x9A9D77E0] = typeof(PrepaidStarsGiveaway),
[0x4B3E14D6] = typeof(Boost),
[0x86F8613C] = typeof(Premium_BoostsList),
[0xC448415C] = typeof(MyBoost),
[0x9AE228E2] = typeof(Premium_MyBoosts),
@ -1285,7 +1291,7 @@ namespace TL
[0x42D30D2E] = typeof(BroadcastRevenueTransactionRefund),
[0x87158466] = typeof(Stats_BroadcastRevenueTransactions),
[0x56E34970] = typeof(ReactionsNotifySettings),
[0x8438F1C6] = typeof(BroadcastRevenueBalances),
[0xC3FF71E7] = typeof(BroadcastRevenueBalances),
[0x93C3E27E] = typeof(AvailableEffect),
[0xD1ED9A5B] = null,//Messages_AvailableEffectsNotModified
[0xBDDB616E] = typeof(Messages_AvailableEffects),
@ -1298,7 +1304,7 @@ namespace TL
[0xD80DA15D] = typeof(StarsTransactionPeer),
[0x60682812] = typeof(StarsTransactionPeerAds),
[0x0BD915C0] = typeof(StarsTopupOption),
[0x433AEB2B] = typeof(StarsTransaction),
[0xEE7522D5] = typeof(StarsTransaction),
[0xBBFA316C] = typeof(Payments_StarsStatus),
[0xE87ACBC0] = typeof(FoundStory),
[0xE2DE7737] = typeof(Stories_FoundStories),
@ -1315,6 +1321,8 @@ namespace TL
[0x05416D58] = typeof(StarsSubscriptionPricing),
[0x538ECF18] = typeof(StarsSubscription),
[0x4BA3A95A] = typeof(MessageReactor),
[0x94CE852A] = typeof(StarsGiveawayOption),
[0x54236209] = typeof(StarsGiveawayWinnersOption),
// from TL.Secret:
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
[0x020DF5D0] = typeof(Layer101.MessageEntityBlockquote),

View file

@ -13,7 +13,7 @@
<PackageId>WTelegramClient</PackageId>
<Version>0.0.0</Version>
<Authors>Wizou</Authors>
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 186
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 187
Release Notes:
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>