mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
API Layer 194: bot star subscriptions feedback
This commit is contained in:
parent
9208d0b92c
commit
b40557f78c
2
.github/dev.yml
vendored
2
.github/dev.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[](https://corefork.telegram.org/methods)
|
||||
[](https://corefork.telegram.org/methods)
|
||||
[](https://www.nuget.org/packages/WTelegramClient/)
|
||||
[](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
|
||||
[](https://buymeacoffee.com/wizou)
|
||||
|
|
|
|||
|
|
@ -2332,7 +2332,7 @@ namespace TL
|
|||
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>
|
||||
|
|
@ -2349,6 +2349,7 @@ namespace TL
|
|||
[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
|
||||
{
|
||||
|
|
@ -2360,10 +2361,12 @@ namespace TL
|
|||
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>
|
||||
|
|
@ -2374,6 +2377,7 @@ namespace TL
|
|||
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
|
||||
{
|
||||
|
|
@ -2383,6 +2387,8 @@ namespace TL
|
|||
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>
|
||||
|
|
|
|||
|
|
@ -6025,7 +6025,7 @@ namespace TL
|
|||
/// <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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 @@ namespace TL
|
|||
[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),
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue