API Layer 166.2: Premium_GetUserBoosts, UpdateBotChatBoost

This commit is contained in:
Wizou 2023-11-06 23:58:48 +01:00
parent df2b2a7907
commit 96ff52fab8
4 changed files with 26 additions and 2 deletions

2
.github/dev.yml vendored
View file

@ -1,7 +1,7 @@
pr: none
trigger: [ master ]
name: 3.5.8-dev.$(Rev:r)
name: 3.5.9-dev.$(Rev:r)
pool:
vmImage: ubuntu-latest

View file

@ -4777,6 +4777,14 @@ namespace TL
public int story_id;
public Reaction reaction;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateBotChatBoost"/></para></summary>
[TLDef(0x904DD49C)]
public class UpdateBotChatBoost : Update
{
public Peer peer;
public Boost boost;
public int qts;
}
/// <summary>Updates state. <para>See <a href="https://corefork.telegram.org/constructor/updates.state"/></para></summary>
[TLDef(0xA56C2A3E)]

View file

@ -5981,6 +5981,14 @@ namespace TL
{
peer = peer,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/premium.getUserBoosts"/></para></summary>
public static Task<Premium_BoostsList> Premium_GetUserBoosts(this Client client, InputPeer peer, InputUserBase user_id)
=> client.Invoke(new Premium_GetUserBoosts
{
peer = peer,
user_id = user_id,
});
}
}
@ -10896,4 +10904,11 @@ namespace TL.Methods
{
public InputPeer peer;
}
[TLDef(0x39854D1F)]
public class Premium_GetUserBoosts : IMethod<Premium_BoostsList>
{
public InputPeer peer;
public InputUserBase user_id;
}
}

View file

@ -6,7 +6,7 @@ namespace TL
{
public static class Layer
{
public const int Version = 166; // fetched 28/10/2023 21:16:53
public const int Version = 166; // fetched 06/11/2023 22:51:44
internal const int SecretChats = 144;
internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415;
@ -384,6 +384,7 @@ namespace TL
[0x1BF335B9] = typeof(UpdateStoryID),
[0x2C084DC1] = typeof(UpdateStoriesStealthMode),
[0x7D627683] = typeof(UpdateSentStoryReaction),
[0x904DD49C] = typeof(UpdateBotChatBoost),
[0xA56C2A3E] = typeof(Updates_State),
[0x5D75A138] = typeof(Updates_DifferenceEmpty),
[0x00F49CA0] = typeof(Updates_Difference),