diff --git a/README.md b/README.md
index e9b8fab..2783d1e 100644
--- a/README.md
+++ b/README.md
@@ -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)
diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs
index 657ae47..a20162a 100644
--- a/src/TL.Schema.cs
+++ b/src/TL.Schema.cs
@@ -1851,6 +1851,7 @@ namespace TL
has_effect = 0x4,
/// Field has a value
has_factcheck = 0x8,
+ video_processing_pending = 0x10,
}
/// ID of the message
@@ -3553,6 +3554,7 @@ namespace TL
sponsored_enabled = 0x80,
/// Field has a value
has_stargifts_count = 0x100,
+ can_view_revenue = 0x200,
}
}
@@ -4707,13 +4709,21 @@ namespace TL
public MessageBase message;
}
/// Some scheduled messages were deleted from the schedule queue of a chat See
- [TLDef(0x90866CEE)]
+ [TLDef(0xF2A71983)]
public sealed partial class UpdateDeleteScheduledMessages : Update
{
+ public Flags flags;
/// Peer
public Peer peer;
/// Deleted scheduled messages
public int[] messages;
+ [IfFlag(0)] public int[] sent_messages;
+
+ [Flags] public enum Flags : uint
+ {
+ /// Field has a value
+ has_sent_messages = 0x1,
+ }
}
/// A cloud theme was updated See
[TLDef(0x8216FBA3)]
@@ -18957,6 +18967,9 @@ namespace TL
/// Describes a Telegram Star transaction used to pay for Telegram ads as specified here ». See
[TLDef(0x60682812)]
public sealed partial class StarsTransactionPeerAds : StarsTransactionPeerBase { }
+ /// See
+ [TLDef(0xF9677AAD)]
+ public sealed partial class StarsTransactionPeerAPI : StarsTransactionPeerBase { }
/// Telegram Stars topup option. See
[TLDef(0x0BD915C0)]
@@ -18983,7 +18996,7 @@ namespace TL
}
/// Represents a Telegram Stars transaction ». See
- [TLDef(0x0A9EE4C2)]
+ [TLDef(0x35D4F276)]
public sealed partial class StarsTransaction : IObject
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
@@ -19015,6 +19028,7 @@ namespace TL
[IfFlag(12)] public int subscription_period;
[IfFlag(13)] public int giveaway_post_id;
[IfFlag(14)] public StarGift stargift;
+ [IfFlag(15)] public int floodskip_number;
[Flags] public enum Flags : uint
{
@@ -19047,6 +19061,8 @@ namespace TL
has_giveaway_post_id = 0x2000,
/// Field has a value
has_stargift = 0x4000,
+ /// Field has a value
+ has_floodskip_number = 0x8000,
}
}
@@ -19359,7 +19375,7 @@ namespace TL
}
/// See
- [TLDef(0xAEA174EE)]
+ [TLDef(0x49C577CD)]
public sealed partial class StarGift : IObject
{
public Flags flags;
@@ -19369,10 +19385,13 @@ namespace TL
[IfFlag(0)] public int availability_remains;
[IfFlag(0)] public int availability_total;
public long convert_stars;
+ [IfFlag(1)] public DateTime first_sale_date;
+ [IfFlag(1)] public DateTime last_sale_date;
[Flags] public enum Flags : uint
{
limited = 0x1,
+ sold_out = 0x2,
}
}
diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs
index 2ed88ca..6b83601 100644
--- a/src/TL.SchemaFuncs.cs
+++ b/src/TL.SchemaFuncs.cs
@@ -1860,10 +1860,10 @@ namespace TL
/// Send this message as the specified peer
/// Add the message to the specified quick reply shortcut », instead.
/// Specifies a message effect » to use for the message.
- public static Task Messages_SendMessage(this Client client, InputPeer peer, string message, long random_id, InputReplyTo reply_to = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? effect = null, bool no_webpage = false, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false)
+ public static Task Messages_SendMessage(this Client client, InputPeer peer, string message, long random_id, InputReplyTo reply_to = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? effect = null, bool no_webpage = false, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false, bool allow_paid_floodskip = false)
=> client.Invoke(new Messages_SendMessage
{
- flags = (Messages_SendMessage.Flags)((reply_to != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (effect != null ? 0x40000 : 0) | (no_webpage ? 0x2 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (invert_media ? 0x10000 : 0)),
+ flags = (Messages_SendMessage.Flags)((reply_to != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (effect != null ? 0x40000 : 0) | (no_webpage ? 0x2 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (invert_media ? 0x10000 : 0) | (allow_paid_floodskip ? 0x80000 : 0)),
peer = peer,
reply_to = reply_to,
message = message,
@@ -1894,10 +1894,10 @@ namespace TL
/// Send this message as the specified peer
/// Add the message to the specified quick reply shortcut », instead.
/// Specifies a message effect » to use for the message.
- public static Task Messages_SendMedia(this Client client, InputPeer peer, InputMedia media, string message, long random_id, InputReplyTo reply_to = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? effect = null, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false)
+ public static Task Messages_SendMedia(this Client client, InputPeer peer, InputMedia media, string message, long random_id, InputReplyTo reply_to = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? effect = null, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false, bool allow_paid_floodskip = false)
=> client.Invoke(new Messages_SendMedia
{
- flags = (Messages_SendMedia.Flags)((reply_to != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (effect != null ? 0x40000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (invert_media ? 0x10000 : 0)),
+ flags = (Messages_SendMedia.Flags)((reply_to != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (effect != null ? 0x40000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (invert_media ? 0x10000 : 0) | (allow_paid_floodskip ? 0x80000 : 0)),
peer = peer,
reply_to = reply_to,
media = media,
@@ -1926,10 +1926,10 @@ namespace TL
/// Scheduled message date for scheduled messages
/// Forward the messages as the specified peer
/// Add the messages to the specified quick reply shortcut », instead.
- public static Task Messages_ForwardMessages(this Client client, InputPeer from_peer, int[] id, long[] random_id, InputPeer to_peer, int? top_msg_id = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, bool silent = false, bool background = false, bool with_my_score = false, bool drop_author = false, bool drop_media_captions = false, bool noforwards = false)
+ public static Task Messages_ForwardMessages(this Client client, InputPeer from_peer, int[] id, long[] random_id, InputPeer to_peer, int? top_msg_id = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, bool silent = false, bool background = false, bool with_my_score = false, bool drop_author = false, bool drop_media_captions = false, bool noforwards = false, bool allow_paid_floodskip = false)
=> client.Invoke(new Messages_ForwardMessages
{
- flags = (Messages_ForwardMessages.Flags)((top_msg_id != null ? 0x200 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (with_my_score ? 0x100 : 0) | (drop_author ? 0x800 : 0) | (drop_media_captions ? 0x1000 : 0) | (noforwards ? 0x4000 : 0)),
+ flags = (Messages_ForwardMessages.Flags)((top_msg_id != null ? 0x200 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (with_my_score ? 0x100 : 0) | (drop_author ? 0x800 : 0) | (drop_media_captions ? 0x1000 : 0) | (noforwards ? 0x4000 : 0) | (allow_paid_floodskip ? 0x80000 : 0)),
from_peer = from_peer,
id = id,
random_id = random_id,
@@ -2878,10 +2878,10 @@ namespace TL
/// Send this message as the specified peer
/// Add the message to the specified quick reply shortcut », instead.
/// Specifies a message effect » to use for the message.
- public static Task Messages_SendMultiMedia(this Client client, InputPeer peer, InputSingleMedia[] multi_media, InputReplyTo reply_to = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? effect = null, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false)
+ public static Task Messages_SendMultiMedia(this Client client, InputPeer peer, InputSingleMedia[] multi_media, InputReplyTo reply_to = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? effect = null, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false, bool allow_paid_floodskip = false)
=> client.Invoke(new Messages_SendMultiMedia
{
- flags = (Messages_SendMultiMedia.Flags)((reply_to != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (effect != null ? 0x40000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (invert_media ? 0x10000 : 0)),
+ flags = (Messages_SendMultiMedia.Flags)((reply_to != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (effect != null ? 0x40000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (invert_media ? 0x10000 : 0) | (allow_paid_floodskip ? 0x80000 : 0)),
peer = peer,
reply_to = reply_to,
multi_media = multi_media,
@@ -4338,6 +4338,40 @@ namespace TL
{
});
+ /// See
+ public static Task Messages_ViewSponsoredMessage(this Client client, InputPeer peer, byte[] random_id)
+ => client.Invoke(new Messages_ViewSponsoredMessage
+ {
+ peer = peer,
+ random_id = random_id,
+ });
+
+ /// See
+ public static Task Messages_ClickSponsoredMessage(this Client client, InputPeer peer, byte[] random_id, bool media = false, bool fullscreen = false)
+ => client.Invoke(new Messages_ClickSponsoredMessage
+ {
+ flags = (Messages_ClickSponsoredMessage.Flags)((media ? 0x1 : 0) | (fullscreen ? 0x2 : 0)),
+ peer = peer,
+ random_id = random_id,
+ });
+
+ /// See
+ public static Task Messages_ReportSponsoredMessage(this Client client, InputPeer peer, byte[] random_id, byte[] option)
+ => client.Invoke(new Messages_ReportSponsoredMessage
+ {
+ peer = peer,
+ random_id = random_id,
+ option = option,
+ });
+
+ /// See
+ /// a null value means messages.sponsoredMessagesEmpty
+ public static Task Messages_GetSponsoredMessages(this Client client, InputPeer peer)
+ => client.Invoke(new Messages_GetSponsoredMessages
+ {
+ peer = peer,
+ });
+
/// Returns a current state of updates. See [bots: ✓]
public static Task Updates_GetState(this Client client)
=> client.Invoke(new Updates_GetState
@@ -5120,25 +5154,6 @@ namespace TL
channel = channel,
});
- /// Mark a specific sponsored message as read See Possible codes: 400 (details)
- /// Peer
- /// Message ID
- public static Task Channels_ViewSponsoredMessage(this Client client, InputChannelBase channel, byte[] random_id)
- => client.Invoke(new Channels_ViewSponsoredMessage
- {
- channel = channel,
- random_id = random_id,
- });
-
- /// Get a list of sponsored messages See Possible codes: 400 (details)
- /// Peer
- /// a null value means messages.sponsoredMessagesEmpty
- public static Task Channels_GetSponsoredMessages(this Client client, InputChannelBase channel)
- => client.Invoke(new Channels_GetSponsoredMessages
- {
- channel = channel,
- });
-
/// Obtains a list of peers that can be used to send messages in a specific group See Possible codes: 400 (details)
/// The group where we intend to send messages
public static Task Channels_GetSendAs(this Client client, InputPeer peer)
@@ -5348,17 +5363,6 @@ namespace TL
enabled = enabled,
});
- /// Informs the server that the user has either: See Possible codes: 400 (details)
- /// Channel where the sponsored message was posted
- /// Message ID
- public static Task Channels_ClickSponsoredMessage(this Client client, InputChannelBase channel, byte[] random_id, bool media = false, bool fullscreen = false)
- => client.Invoke(new Channels_ClickSponsoredMessage
- {
- flags = (Channels_ClickSponsoredMessage.Flags)((media ? 0x1 : 0) | (fullscreen ? 0x2 : 0)),
- channel = channel,
- random_id = random_id,
- });
-
/// Update the accent color and background custom emoji » of a channel. See Possible codes: 400 (details)
/// Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed.
Channels can change both message and profile palettes; supergroups can only change the profile palette, of course after reaching the appropriate boost level.
/// Channel whose accent color should be changed.
@@ -5422,18 +5426,6 @@ namespace TL
stickerset = stickerset,
});
- /// Report a sponsored message », see here » for more info on the full flow. See Possible codes: 400 (details)
- /// The channel where the sponsored message can be seen.
- /// ID of the sponsored message.
- /// Chosen report option, initially an empty string, see here » for more info on the full flow.
- public static Task Channels_ReportSponsoredMessage(this Client client, InputChannelBase channel, byte[] random_id, byte[] option)
- => client.Invoke(new Channels_ReportSponsoredMessage
- {
- channel = channel,
- random_id = random_id,
- option = option,
- });
-
/// Disable ads on the specified channel, for all users. See Possible codes: 400 (details)
/// The channel.
/// Whether to disable or re-enable ads.
@@ -6658,32 +6650,29 @@ namespace TL
/// Get channel ad revenue statistics ». See Possible codes: 400 (details)
/// Whether to enable dark theme for graph colors
- /// The channel
- public static Task Stats_GetBroadcastRevenueStats(this Client client, InputChannelBase channel, bool dark = false)
+ public static Task Stats_GetBroadcastRevenueStats(this Client client, InputPeer peer, bool dark = false)
=> client.Invoke(new Stats_GetBroadcastRevenueStats
{
flags = (Stats_GetBroadcastRevenueStats.Flags)(dark ? 0x1 : 0),
- channel = channel,
+ peer = peer,
});
/// Withdraw funds from a channel's ad revenue balance ». See Possible codes: 400 (details)
- /// The channel
/// 2FA password, see here » for more info.
- public static Task Stats_GetBroadcastRevenueWithdrawalUrl(this Client client, InputChannelBase channel, InputCheckPasswordSRP password)
+ public static Task Stats_GetBroadcastRevenueWithdrawalUrl(this Client client, InputPeer peer, InputCheckPasswordSRP password)
=> client.Invoke(new Stats_GetBroadcastRevenueWithdrawalUrl
{
- channel = channel,
+ peer = peer,
password = password,
});
/// Fetch channel ad revenue transaction history ». See Possible codes: 400 (details)
- /// The channel
/// Offset for pagination
/// Maximum number of results to return, see pagination
- public static Task Stats_GetBroadcastRevenueTransactions(this Client client, InputChannelBase channel, int offset = default, int limit = int.MaxValue)
+ public static Task Stats_GetBroadcastRevenueTransactions(this Client client, InputPeer peer, int offset = default, int limit = int.MaxValue)
=> client.Invoke(new Stats_GetBroadcastRevenueTransactions
{
- channel = channel,
+ peer = peer,
offset = offset,
limit = limit,
});
@@ -7096,12 +7085,13 @@ namespace TL
/// A or a .
Note areas may be searched only if they have an associated address.
/// Offset for pagination: initially an empty string, then the next_offset from the previously returned .
/// Maximum number of results to return, see pagination
- public static Task Stories_SearchPosts(this Client client, string offset, int limit = int.MaxValue, string hashtag = null, MediaArea area = null)
+ public static Task Stories_SearchPosts(this Client client, string offset, int limit = int.MaxValue, string hashtag = null, MediaArea area = null, InputPeer peer = null)
=> client.Invoke(new Stories_SearchPosts
{
- flags = (Stories_SearchPosts.Flags)((hashtag != null ? 0x1 : 0) | (area != null ? 0x2 : 0)),
+ flags = (Stories_SearchPosts.Flags)((hashtag != null ? 0x1 : 0) | (area != null ? 0x2 : 0) | (peer != null ? 0x4 : 0)),
hashtag = hashtag,
area = area,
+ peer = peer,
offset = offset,
limit = limit,
});
@@ -8723,6 +8713,7 @@ namespace TL.Methods
invert_media = 0x10000,
has_quick_reply_shortcut = 0x20000,
has_effect = 0x40000,
+ allow_paid_floodskip = 0x80000,
}
}
@@ -8757,6 +8748,7 @@ namespace TL.Methods
invert_media = 0x10000,
has_quick_reply_shortcut = 0x20000,
has_effect = 0x40000,
+ allow_paid_floodskip = 0x80000,
}
}
@@ -8785,6 +8777,7 @@ namespace TL.Methods
has_send_as = 0x2000,
noforwards = 0x4000,
has_quick_reply_shortcut = 0x20000,
+ allow_paid_floodskip = 0x80000,
}
}
@@ -9615,6 +9608,7 @@ namespace TL.Methods
invert_media = 0x10000,
has_quick_reply_shortcut = 0x20000,
has_effect = 0x40000,
+ allow_paid_floodskip = 0x80000,
}
}
@@ -10827,6 +10821,41 @@ namespace TL.Methods
[TLDef(0x472455AA)]
public sealed partial class Messages_GetPaidReactionPrivacy : IMethod { }
+ [TLDef(0x673AD8F1)]
+ public sealed partial class Messages_ViewSponsoredMessage : IMethod
+ {
+ public InputPeer peer;
+ public byte[] random_id;
+ }
+
+ [TLDef(0x0F093465)]
+ public sealed partial class Messages_ClickSponsoredMessage : IMethod
+ {
+ public Flags flags;
+ public InputPeer peer;
+ public byte[] random_id;
+
+ [Flags] public enum Flags : uint
+ {
+ media = 0x1,
+ fullscreen = 0x2,
+ }
+ }
+
+ [TLDef(0x1AF3DBB8)]
+ public sealed partial class Messages_ReportSponsoredMessage : IMethod
+ {
+ public InputPeer peer;
+ public byte[] random_id;
+ public byte[] option;
+ }
+
+ [TLDef(0x9BD2F439)]
+ public sealed partial class Messages_GetSponsoredMessages : IMethod
+ {
+ public InputPeer peer;
+ }
+
[TLDef(0xEDD4882A)]
public sealed partial class Updates_GetState : IMethod { }
@@ -11422,19 +11451,6 @@ namespace TL.Methods
public InputChannelBase channel;
}
- [TLDef(0xBEAEDB94)]
- public sealed partial class Channels_ViewSponsoredMessage : IMethod
- {
- public InputChannelBase channel;
- public byte[] random_id;
- }
-
- [TLDef(0xEC210FBF)]
- public sealed partial class Channels_GetSponsoredMessages : IMethod
- {
- public InputChannelBase channel;
- }
-
[TLDef(0x0DC770EE)]
public sealed partial class Channels_GetSendAs : IMethod
{
@@ -11602,20 +11618,6 @@ namespace TL.Methods
public bool enabled;
}
- [TLDef(0x01445D75)]
- public sealed partial class Channels_ClickSponsoredMessage : IMethod
- {
- public Flags flags;
- public InputChannelBase channel;
- public byte[] random_id;
-
- [Flags] public enum Flags : uint
- {
- media = 0x1,
- fullscreen = 0x2,
- }
- }
-
[TLDef(0xD8AA3671)]
public sealed partial class Channels_UpdateColor : IMethod
{
@@ -11672,14 +11674,6 @@ namespace TL.Methods
public InputStickerSet stickerset;
}
- [TLDef(0xAF8FF6B9)]
- public sealed partial class Channels_ReportSponsoredMessage : IMethod
- {
- public InputChannelBase channel;
- public byte[] random_id;
- public byte[] option;
- }
-
[TLDef(0x9AE91519)]
public sealed partial class Channels_RestrictSponsoredMessages : IMethod
{
@@ -12695,11 +12689,11 @@ namespace TL.Methods
public int limit;
}
- [TLDef(0x75DFB671)]
+ [TLDef(0xF788EE19)]
public sealed partial class Stats_GetBroadcastRevenueStats : IMethod
{
public Flags flags;
- public InputChannelBase channel;
+ public InputPeer peer;
[Flags] public enum Flags : uint
{
@@ -12707,17 +12701,17 @@ namespace TL.Methods
}
}
- [TLDef(0x2A65EF73)]
+ [TLDef(0x9DF4FAAD)]
public sealed partial class Stats_GetBroadcastRevenueWithdrawalUrl : IMethod
{
- public InputChannelBase channel;
+ public InputPeer peer;
public InputCheckPasswordSRP password;
}
- [TLDef(0x0069280F)]
+ [TLDef(0x70990B6D)]
public sealed partial class Stats_GetBroadcastRevenueTransactions : IMethod
{
- public InputChannelBase channel;
+ public InputPeer peer;
public int offset;
public int limit;
}
@@ -13049,12 +13043,13 @@ namespace TL.Methods
public int[] id;
}
- [TLDef(0x6CEA116A)]
+ [TLDef(0xD1810907)]
public sealed partial class Stories_SearchPosts : IMethod
{
public Flags flags;
[IfFlag(0)] public string hashtag;
[IfFlag(1)] public MediaArea area;
+ [IfFlag(2)] public InputPeer peer;
public string offset;
public int limit;
@@ -13062,6 +13057,7 @@ namespace TL.Methods
{
has_hashtag = 0x1,
has_area = 0x2,
+ has_peer = 0x4,
}
}
diff --git a/src/TL.Table.cs b/src/TL.Table.cs
index f6ce107..9d070a3 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 = 190; // fetched 15/10/2024 14:49:33
+ public const int Version = 192; // fetched 31/10/2024 17:10:55
internal const int SecretChats = 144;
internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415;
@@ -346,7 +346,7 @@ namespace TL
[0x6A7E7366] = typeof(UpdatePeerSettings),
[0xB4AFCFB0] = typeof(UpdatePeerLocated),
[0x39A51DFB] = typeof(UpdateNewScheduledMessage),
- [0x90866CEE] = typeof(UpdateDeleteScheduledMessages),
+ [0xF2A71983] = typeof(UpdateDeleteScheduledMessages),
[0x8216FBA3] = typeof(UpdateTheme),
[0x871FB939] = typeof(UpdateGeoLiveViewed),
[0x564FE691] = typeof(UpdateLoginToken),
@@ -1307,8 +1307,9 @@ namespace TL
[0xE92FD902] = typeof(StarsTransactionPeerFragment),
[0xD80DA15D] = typeof(StarsTransactionPeer),
[0x60682812] = typeof(StarsTransactionPeerAds),
+ [0xF9677AAD] = typeof(StarsTransactionPeerAPI),
[0x0BD915C0] = typeof(StarsTopupOption),
- [0x0A9EE4C2] = typeof(StarsTransaction),
+ [0x35D4F276] = typeof(StarsTransaction),
[0xBBFA316C] = typeof(Payments_StarsStatus),
[0xE87ACBC0] = typeof(FoundStory),
[0xE2DE7737] = typeof(Stories_FoundStories),
@@ -1327,7 +1328,7 @@ namespace TL
[0x4BA3A95A] = typeof(MessageReactor),
[0x94CE852A] = typeof(StarsGiveawayOption),
[0x54236209] = typeof(StarsGiveawayWinnersOption),
- [0xAEA174EE] = typeof(StarGift),
+ [0x49C577CD] = typeof(StarGift),
[0xA388A368] = null,//Payments_StarGiftsNotModified
[0x901689EA] = typeof(Payments_StarGifts),
[0xEEA49A6E] = typeof(UserStarGift),
diff --git a/src/WTelegramClient.csproj b/src/WTelegramClient.csproj
index 6af3003..ea47934 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: 190
+ Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 192
Release Notes:
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))