diff --git a/.github/dev.yml b/.github/dev.yml index 6a17968..37c0a0d 100644 --- a/.github/dev.yml +++ b/.github/dev.yml @@ -1,7 +1,7 @@ pr: none trigger: [ master ] -name: 4.2.3-dev.$(Rev:r) +name: 4.2.4-dev.$(Rev:r) pool: vmImage: ubuntu-latest diff --git a/README.md b/README.md index 85dd472..e58f284 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![API Layer](https://img.shields.io/badge/API_Layer-193-blueviolet)](https://corefork.telegram.org/methods) +[![API Layer](https://img.shields.io/badge/API_Layer-194-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) diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index 643ed25..45c704f 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -2332,7 +2332,7 @@ public sealed partial class MessageActionGameScore : MessageAction public int score; } /// A user just sent a payment to me (a bot) See - [TLDef(0x8F31B327)] + [TLDef(0xFFA00CCC)] public sealed partial class MessageActionPaymentSentMe : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those @@ -2349,6 +2349,7 @@ public sealed partial class MessageActionPaymentSentMe : MessageAction [IfFlag(1)] public string shipping_option_id; /// Provider payment identifier public PaymentCharge charge; + [IfFlag(4)] public DateTime subscription_until_date; [Flags] public enum Flags : uint { @@ -2360,10 +2361,12 @@ public sealed partial class MessageActionPaymentSentMe : MessageAction recurring_init = 0x4, /// Whether this payment is part of a recurring payment recurring_used = 0x8, + /// Field has a value + has_subscription_until_date = 0x10, } } /// A payment was sent See - [TLDef(0x96163F56)] + [TLDef(0xC624B16E)] public sealed partial class MessageActionPaymentSent : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those @@ -2374,6 +2377,7 @@ public sealed partial class MessageActionPaymentSent : MessageAction public long total_amount; /// An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter » [IfFlag(0)] public string invoice_slug; + [IfFlag(4)] public DateTime subscription_until_date; [Flags] public enum Flags : uint { @@ -2383,6 +2387,8 @@ public sealed partial class MessageActionPaymentSent : MessageAction recurring_init = 0x4, /// Whether this payment is part of a recurring payment recurring_used = 0x8, + /// Field has a value + has_subscription_until_date = 0x10, } } /// A phone call See diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs index ecb1986..662abf6 100644 --- a/src/TL.SchemaFuncs.cs +++ b/src/TL.SchemaFuncs.cs @@ -6025,7 +6025,7 @@ public static Task Payments_GetStarsGiftOptions(this Client c /// Obtain a list of active, expired or cancelled Telegram Star subscriptions ». See [bots: ✓] /// Whether to return only expired subscriptions due to an excessively low Telegram Star balance. /// Always pass . - /// Offset for pagination, taken from payments.starsStatus. + /// Offset for pagination, taken from payments.starsStatus. public static Task Payments_GetStarsSubscriptions(this Client client, InputPeer peer, string offset, bool missing_balance = false) => client.Invoke(new Payments_GetStarsSubscriptions { diff --git a/src/TL.Table.cs b/src/TL.Table.cs index ec40b3f..25ddcce 100644 --- a/src/TL.Table.cs +++ b/src/TL.Table.cs @@ -6,7 +6,7 @@ namespace TL { public static partial class Layer { - public const int Version = 193; // fetched 18/11/2024 12:45:10 + public const int Version = 194; // fetched 18/11/2024 12:59:06 internal const int SecretChats = 144; internal const int MTProto2 = 73; internal const uint VectorCtor = 0x1CB5C415; @@ -181,8 +181,8 @@ public static partial class Layer [0x94BD38ED] = typeof(MessageActionPinMessage), [0x9FBAB604] = typeof(MessageActionHistoryClear), [0x92A72876] = typeof(MessageActionGameScore), - [0x8F31B327] = typeof(MessageActionPaymentSentMe), - [0x96163F56] = typeof(MessageActionPaymentSent), + [0xFFA00CCC] = typeof(MessageActionPaymentSentMe), + [0xC624B16E] = typeof(MessageActionPaymentSent), [0x80E11A7F] = typeof(MessageActionPhoneCall), [0x4792929B] = typeof(MessageActionScreenshotTaken), [0xFAE69F56] = typeof(MessageActionCustomAction), diff --git a/src/WTelegramClient.csproj b/src/WTelegramClient.csproj index 1d0caa1..19eee24 100644 --- a/src/WTelegramClient.csproj +++ b/src/WTelegramClient.csproj @@ -13,7 +13,7 @@ WTelegramClient 0.0.0 Wizou - Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 193 + Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 194 Release Notes: $(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))