Skip to content

Commit

Permalink
API Layer 194: bot star subscriptions feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
wiz0u committed Nov 18, 2024
1 parent 9208d0b commit b40557f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/dev.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
10 changes: 8 additions & 2 deletions src/TL.Schema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,7 @@ public sealed partial class MessageActionGameScore : MessageAction
public int score;
}
/// <summary>A user just sent a payment to me (a bot) <para>See <a href="https://corefork.telegram.org/constructor/messageActionPaymentSentMe"/></para></summary>
[TLDef(0x8F31B327)]
[TLDef(0xFFA00CCC)]
public sealed partial class MessageActionPaymentSentMe : MessageAction
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
Expand All @@ -2349,6 +2349,7 @@ public sealed partial class MessageActionPaymentSentMe : MessageAction
[IfFlag(1)] public string shipping_option_id;
/// <summary>Provider payment identifier</summary>
public PaymentCharge charge;
[IfFlag(4)] public DateTime subscription_until_date;

[Flags] public enum Flags : uint
{
Expand All @@ -2360,10 +2361,12 @@ public sealed partial class MessageActionPaymentSentMe : MessageAction
recurring_init = 0x4,
/// <summary>Whether this payment is part of a recurring payment</summary>
recurring_used = 0x8,
/// <summary>Field <see cref="subscription_until_date"/> has a value</summary>
has_subscription_until_date = 0x10,
}
}
/// <summary>A payment was sent <para>See <a href="https://corefork.telegram.org/constructor/messageActionPaymentSent"/></para></summary>
[TLDef(0x96163F56)]
[TLDef(0xC624B16E)]
public sealed partial class MessageActionPaymentSent : MessageAction
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
Expand All @@ -2374,6 +2377,7 @@ public sealed partial class MessageActionPaymentSent : MessageAction
public long total_amount;
/// <summary>An invoice slug taken from an <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> or from the <a href="https://corefork.telegram.org/api/config#premium-invoice-slug"><c>premium_invoice_slug</c> app config parameter »</a></summary>
[IfFlag(0)] public string invoice_slug;
[IfFlag(4)] public DateTime subscription_until_date;

[Flags] public enum Flags : uint
{
Expand All @@ -2383,6 +2387,8 @@ public sealed partial class MessageActionPaymentSent : MessageAction
recurring_init = 0x4,
/// <summary>Whether this payment is part of a recurring payment</summary>
recurring_used = 0x8,
/// <summary>Field <see cref="subscription_until_date"/> has a value</summary>
has_subscription_until_date = 0x10,
}
}
/// <summary>A phone call <para>See <a href="https://corefork.telegram.org/constructor/messageActionPhoneCall"/></para></summary>
Expand Down
2 changes: 1 addition & 1 deletion src/TL.SchemaFuncs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6025,7 +6025,7 @@ public static Task<StarsGiftOption[]> Payments_GetStarsGiftOptions(this Client c
/// <summary>Obtain a list of active, expired or cancelled <a href="https://corefork.telegram.org/api/invites#paid-invite-links">Telegram Star subscriptions »</a>. <para>See <a href="https://corefork.telegram.org/method/payments.getStarsSubscriptions"/> [bots: ✓]</para></summary>
/// <param name="missing_balance">Whether to return only expired subscriptions due to an excessively low Telegram Star balance.</param>
/// <param name="peer">Always pass <see cref="InputPeerSelf"/>.</param>
/// <param name="offset">Offset for pagination, taken from <see cref="Payments_StarsStatus#subscriptionsNextOffset">payments.starsStatus</see>.</param>
/// <param name="offset">Offset for pagination, taken from <see cref="Payments_StarsStatus">payments.starsStatus</see>.</param>
public static Task<Payments_StarsStatus> Payments_GetStarsSubscriptions(this Client client, InputPeer peer, string offset, bool missing_balance = false)
=> client.Invoke(new Payments_GetStarsSubscriptions
{
Expand Down
6 changes: 3 additions & 3 deletions src/TL.Table.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion src/WTelegramClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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: 193
<Description>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"))</Description>
Expand Down

0 comments on commit b40557f

Please sign in to comment.