API Layer 211: Stories Albums, user's pending Stars Rating, SearchPosts + Check Flood, ...

(that might not be the most recent API layer. check https://patreon.com/wizou for the latest layers)
This commit is contained in:
Wizou 2025-08-01 00:49:57 +02:00
parent d9e4b7cc0f
commit 7faa3873f8
5 changed files with 303 additions and 49 deletions

View file

@ -1,4 +1,4 @@
[![API Layer](https://img.shields.io/badge/API_Layer-210-blueviolet)](https://corefork.telegram.org/methods) [![API Layer](https://img.shields.io/badge/API_Layer-211-blueviolet)](https://corefork.telegram.org/methods)
[![NuGet version](https://img.shields.io/nuget/v/WTelegramClient?color=00508F)](https://www.nuget.org/packages/WTelegramClient/) [![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) [![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) [![Donate](https://img.shields.io/badge/Help_this_project:-Donate-ff4444)](https://buymeacoffee.com/wizou)

View file

@ -818,6 +818,7 @@ namespace TL
/// <summary>Monthly Active Users (MAU) of this bot (may be absent for small bots).</summary> /// <summary>Monthly Active Users (MAU) of this bot (may be absent for small bots).</summary>
[IfFlag(44)] public int bot_active_users; [IfFlag(44)] public int bot_active_users;
[IfFlag(46)] public long bot_verification_icon; [IfFlag(46)] public long bot_verification_icon;
/// <summary>If set, the user has enabled <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a>, we <em>might</em> need to pay the specified amount of <a href="https://corefork.telegram.org/api/stars">Stars</a> to send them messages, depending on the configured exceptions: check <see cref="UserFull"/>.<c>send_paid_messages_stars</c> or <see cref="SchemaExtensions.Users_GetRequirementsToContact">Users_GetRequirementsToContact</see> to see if the currently logged in user actually has to pay or not, see <a href="https://corefork.telegram.org/api/paid-messages">here »</a> for the full flow.</summary>
[IfFlag(47)] public long send_paid_messages_stars; [IfFlag(47)] public long send_paid_messages_stars;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
@ -1124,6 +1125,7 @@ namespace TL
/// <summary>Expiration date of the <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram Star subscription »</a> the current user has bought to gain access to this channel.</summary> /// <summary>Expiration date of the <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram Star subscription »</a> the current user has bought to gain access to this channel.</summary>
[IfFlag(43)] public DateTime subscription_until_date; [IfFlag(43)] public DateTime subscription_until_date;
[IfFlag(45)] public long bot_verification_icon; [IfFlag(45)] public long bot_verification_icon;
/// <summary>If set, this supergroup or <a href="https://corefork.telegram.org/api/forum#monoforums">monoforum</a> has enabled <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a>, we <em>might</em> need to pay the specified amount of <a href="https://corefork.telegram.org/api/stars">Stars</a> to send messages to it, depending on the configured exceptions: check <see cref="ChannelFull"/>.<c>send_paid_messages_stars</c> to see if the currently logged in user actually has to pay or not, see <a href="https://corefork.telegram.org/api/paid-messages">here »</a> for the full flow (only set for the monoforum, not the associated channel).</summary>
[IfFlag(46)] public long send_paid_messages_stars; [IfFlag(46)] public long send_paid_messages_stars;
[IfFlag(50)] public long linked_monoforum_id; [IfFlag(50)] public long linked_monoforum_id;
@ -1491,6 +1493,7 @@ namespace TL
[IfFlag(42)] public StickerSet emojiset; [IfFlag(42)] public StickerSet emojiset;
[IfFlag(49)] public BotVerification bot_verification; [IfFlag(49)] public BotVerification bot_verification;
[IfFlag(50)] public int stargifts_count; [IfFlag(50)] public int stargifts_count;
/// <summary>If set and bigger than 0, this supergroup, <a href="https://corefork.telegram.org/api/forum#monoforums">monoforum</a> or the monoforum associated to this channel has enabled <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a> and we <em>must</em> pay the specified amount of <a href="https://corefork.telegram.org/api/stars">Stars</a> to send messages to it, see <a href="https://corefork.telegram.org/api/paid-messages">here »</a> for the full flow. <br/>This flag will be set both for the monoforum and for <see cref="ChannelFull"/> of the associated channel). <br/>If set and equal to 0, the monoforum requires payment in general but we were exempted from paying.</summary>
[IfFlag(53)] public long send_paid_messages_stars; [IfFlag(53)] public long send_paid_messages_stars;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
@ -1841,7 +1844,9 @@ namespace TL
[IfFlag(34)] public long effect; [IfFlag(34)] public long effect;
/// <summary>Represents a <a href="https://corefork.telegram.org/api/factcheck">fact-check »</a>.</summary> /// <summary>Represents a <a href="https://corefork.telegram.org/api/factcheck">fact-check »</a>.</summary>
[IfFlag(35)] public FactCheck factcheck; [IfFlag(35)] public FactCheck factcheck;
/// <summary>Used for <a href="https://telegram.org/blog/star-messages-gateway-2-0-and-more#save-even-more-on-user-verification">Telegram Gateway verification messages</a>: if set and the current unixtime is bigger than the specified unixtime, invoke <see cref="SchemaExtensions.Messages_ReportMessagesDelivery">Messages_ReportMessagesDelivery</see> passing the ID and the peer of this message as soon as it is received by the client (optionally batching requests for the same peer).</summary>
[IfFlag(37)] public DateTime report_delivery_until_date; [IfFlag(37)] public DateTime report_delivery_until_date;
/// <summary>The amount of stars the <strong>sender</strong> has paid to send the message, see <a href="https://corefork.telegram.org/api/paid-messages">here »</a> for more info.</summary>
[IfFlag(38)] public long paid_message_stars; [IfFlag(38)] public long paid_message_stars;
[IfFlag(39)] public SuggestedPost suggested_post; [IfFlag(39)] public SuggestedPost suggested_post;
@ -1965,6 +1970,7 @@ namespace TL
public DateTime date; public DateTime date;
/// <summary>Event connected with the service message</summary> /// <summary>Event connected with the service message</summary>
public MessageAction action; public MessageAction action;
/// <summary><a href="https://corefork.telegram.org/api/reactions">Reactions »</a>.</summary>
[IfFlag(20)] public MessageReactions reactions; [IfFlag(20)] public MessageReactions reactions;
/// <summary>Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.</summary> /// <summary>Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.</summary>
[IfFlag(25)] public int ttl_period; [IfFlag(25)] public int ttl_period;
@ -1981,6 +1987,7 @@ namespace TL
media_unread = 0x20, media_unread = 0x20,
/// <summary>Field <see cref="from_id"/> has a value</summary> /// <summary>Field <see cref="from_id"/> has a value</summary>
has_from_id = 0x100, has_from_id = 0x100,
/// <summary>Whether you can <a href="https://corefork.telegram.org/api/reactions">react to this messages »</a>.</summary>
reactions_are_possible = 0x200, reactions_are_possible = 0x200,
/// <summary>Whether the message is silent</summary> /// <summary>Whether the message is silent</summary>
silent = 0x2000, silent = 0x2000,
@ -2007,6 +2014,7 @@ namespace TL
public override MessageReplyHeaderBase ReplyTo => reply_to; public override MessageReplyHeaderBase ReplyTo => reply_to;
/// <summary>Message date</summary> /// <summary>Message date</summary>
public override DateTime Date => date; public override DateTime Date => date;
/// <summary><a href="https://corefork.telegram.org/api/reactions">Reactions »</a>.</summary>
public override MessageReactions Reactions => reactions; public override MessageReactions Reactions => reactions;
/// <summary>Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.</summary> /// <summary>Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.</summary>
public override int TtlPeriod => ttl_period; public override int TtlPeriod => ttl_period;
@ -2967,7 +2975,7 @@ namespace TL
} }
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionStarGiftUnique"/></para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionStarGiftUnique"/></para></summary>
[TLDef(0x2E3AE60E)] [TLDef(0x34F762F3)]
public sealed partial class MessageActionStarGiftUnique : MessageAction public sealed partial class MessageActionStarGiftUnique : MessageAction
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -2978,7 +2986,7 @@ namespace TL
[IfFlag(6)] public Peer from_id; [IfFlag(6)] public Peer from_id;
[IfFlag(7)] public Peer peer; [IfFlag(7)] public Peer peer;
[IfFlag(7)] public long saved_id; [IfFlag(7)] public long saved_id;
[IfFlag(8)] public long resale_stars; [IfFlag(8)] public StarsAmountBase resale_amount;
[IfFlag(9)] public DateTime can_transfer_at; [IfFlag(9)] public DateTime can_transfer_at;
[IfFlag(10)] public DateTime can_resell_at; [IfFlag(10)] public DateTime can_resell_at;
@ -2996,8 +3004,8 @@ namespace TL
has_from_id = 0x40, has_from_id = 0x40,
/// <summary>Fields <see cref="peer"/> and <see cref="saved_id"/> have a value</summary> /// <summary>Fields <see cref="peer"/> and <see cref="saved_id"/> have a value</summary>
has_peer = 0x80, has_peer = 0x80,
/// <summary>Field <see cref="resale_stars"/> has a value</summary> /// <summary>Field <see cref="resale_amount"/> has a value</summary>
has_resale_stars = 0x100, has_resale_amount = 0x100,
/// <summary>Field <see cref="can_transfer_at"/> has a value</summary> /// <summary>Field <see cref="can_transfer_at"/> has a value</summary>
has_can_transfer_at = 0x200, has_can_transfer_at = 0x200,
/// <summary>Field <see cref="can_resell_at"/> has a value</summary> /// <summary>Field <see cref="can_resell_at"/> has a value</summary>
@ -3596,6 +3604,7 @@ namespace TL
[IfFlag(13)] public long business_bot_id; [IfFlag(13)] public long business_bot_id;
/// <summary>Contains a <a href="https://corefork.telegram.org/api/links">deep link »</a>, used to open a management menu in the business bot. This flag is set if and only if <c>business_bot_id</c> is set.</summary> /// <summary>Contains a <a href="https://corefork.telegram.org/api/links">deep link »</a>, used to open a management menu in the business bot. This flag is set if and only if <c>business_bot_id</c> is set.</summary>
[IfFlag(13)] public string business_bot_manage_url; [IfFlag(13)] public string business_bot_manage_url;
/// <summary>All users that must <a href="https://corefork.telegram.org/api/paid-messages">pay <em>us</em> »</a> to send us private messages will have this flag set <em>only for us</em>, containing the amount of required stars, see <a href="https://corefork.telegram.org/api/paid-messages">here »</a> for more info on paid messages.</summary>
[IfFlag(14)] public long charge_paid_message_stars; [IfFlag(14)] public long charge_paid_message_stars;
[IfFlag(15)] public string registration_month; [IfFlag(15)] public string registration_month;
[IfFlag(16)] public string phone_country; [IfFlag(16)] public string phone_country;
@ -3742,7 +3751,7 @@ namespace TL
} }
/// <summary>Extended user info <para>See <a href="https://corefork.telegram.org/constructor/userFull"/></para></summary> /// <summary>Extended user info <para>See <a href="https://corefork.telegram.org/constructor/userFull"/></para></summary>
[TLDef(0x29DE80BE)] [TLDef(0x7E63CE1F)]
public sealed partial class UserFull : IObject public sealed partial class UserFull : IObject
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -3806,9 +3815,12 @@ namespace TL
/// <summary>This bot has an active <a href="https://corefork.telegram.org/api/bots/referrals">referral program »</a></summary> /// <summary>This bot has an active <a href="https://corefork.telegram.org/api/bots/referrals">referral program »</a></summary>
[IfFlag(43)] public StarRefProgram starref_program; [IfFlag(43)] public StarRefProgram starref_program;
[IfFlag(44)] public BotVerification bot_verification; [IfFlag(44)] public BotVerification bot_verification;
/// <summary>If set and bigger than 0, this user has enabled <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a> and we <em>must</em> pay the specified amount of <a href="https://corefork.telegram.org/api/stars">Stars</a> to send messages to them, see <a href="https://corefork.telegram.org/api/paid-messages">here »</a> for the full flow. <br/>If set and equal to 0, the user requires payment in general but we were exempted from paying <a href="https://corefork.telegram.org/api/paid-messages">for any of the reasons specified in the docs »</a>.</summary>
[IfFlag(46)] public long send_paid_messages_stars; [IfFlag(46)] public long send_paid_messages_stars;
[IfFlag(47)] public DisallowedGiftsSettings disallowed_gifts; [IfFlag(47)] public DisallowedGiftsSettings disallowed_gifts;
[IfFlag(49)] public StarsRating stars_rating; [IfFlag(49)] public StarsRating stars_rating;
[IfFlag(50)] public StarsRating stars_my_pending_rating;
[IfFlag(50)] public DateTime stars_my_pending_rating_date;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
@ -3903,6 +3915,8 @@ namespace TL
display_gifts_button = 0x10000, display_gifts_button = 0x10000,
/// <summary>Field <see cref="stars_rating"/> has a value</summary> /// <summary>Field <see cref="stars_rating"/> has a value</summary>
has_stars_rating = 0x20000, has_stars_rating = 0x20000,
/// <summary>Fields <see cref="stars_my_pending_rating"/> and <see cref="stars_my_pending_rating_date"/> have a value</summary>
has_stars_my_pending_rating = 0x40000,
} }
} }
@ -4056,7 +4070,7 @@ namespace TL
public override IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats); public override IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
} }
/// <summary>Incomplete list of messages and auxiliary data. <para>See <a href="https://corefork.telegram.org/constructor/messages.messagesSlice"/></para></summary> /// <summary>Incomplete list of messages and auxiliary data. <para>See <a href="https://corefork.telegram.org/constructor/messages.messagesSlice"/></para></summary>
[TLDef(0x3A54685E)] [TLDef(0x762B263D)]
public sealed partial class Messages_MessagesSlice : Messages_Messages, IPeerResolver public sealed partial class Messages_MessagesSlice : Messages_Messages, IPeerResolver
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -4067,6 +4081,7 @@ namespace TL
[IfFlag(0)] public int next_rate; [IfFlag(0)] public int next_rate;
/// <summary>Indicates the absolute position of <c>messages[0]</c> within the total result set with count <c>count</c>. <br/>This is useful, for example, if the result was fetched using <c>offset_id</c>, and we need to display a <c>progress/total</c> counter (like <c>photo 134 of 200</c>, for all media in a chat, we could simply use <c>photo ${offset_id_offset} of ${count}</c>.</summary> /// <summary>Indicates the absolute position of <c>messages[0]</c> within the total result set with count <c>count</c>. <br/>This is useful, for example, if the result was fetched using <c>offset_id</c>, and we need to display a <c>progress/total</c> counter (like <c>photo 134 of 200</c>, for all media in a chat, we could simply use <c>photo ${offset_id_offset} of ${count}</c>.</summary>
[IfFlag(2)] public int offset_id_offset; [IfFlag(2)] public int offset_id_offset;
[IfFlag(3)] public SearchPostsFlood search_flood;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
@ -4076,6 +4091,8 @@ namespace TL
inexact = 0x2, inexact = 0x2,
/// <summary>Field <see cref="offset_id_offset"/> has a value</summary> /// <summary>Field <see cref="offset_id_offset"/> has a value</summary>
has_offset_id_offset = 0x4, has_offset_id_offset = 0x4,
/// <summary>Field <see cref="search_flood"/> has a value</summary>
has_search_flood = 0x8,
} }
} }
/// <summary>Channel messages <para>See <a href="https://corefork.telegram.org/constructor/messages.channelMessages"/></para></summary> /// <summary>Channel messages <para>See <a href="https://corefork.telegram.org/constructor/messages.channelMessages"/></para></summary>
@ -7163,7 +7180,7 @@ namespace TL
Birthday = 0xD65A11CC, Birthday = 0xD65A11CC,
///<summary>Whether received <a href="https://corefork.telegram.org/api/gifts">gifts</a> will be automatically displayed on our profile</summary> ///<summary>Whether received <a href="https://corefork.telegram.org/api/gifts">gifts</a> will be automatically displayed on our profile</summary>
StarGiftsAutoSave = 0xE1732341, StarGiftsAutoSave = 0xE1732341,
///<summary>See <a href="https://corefork.telegram.org/constructor/inputPrivacyKeyNoPaidMessages"/></summary> ///<summary>Who can send you messages without paying, if <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a> are enabled.</summary>
NoPaidMessages = 0xBDC597B4, NoPaidMessages = 0xBDC597B4,
} }
@ -7194,7 +7211,7 @@ namespace TL
Birthday = 0x2000A518, Birthday = 0x2000A518,
///<summary>Whether received <a href="https://corefork.telegram.org/api/gifts">gifts</a> will be automatically displayed on our profile</summary> ///<summary>Whether received <a href="https://corefork.telegram.org/api/gifts">gifts</a> will be automatically displayed on our profile</summary>
StarGiftsAutoSave = 0x2CA4FDF8, StarGiftsAutoSave = 0x2CA4FDF8,
///<summary>See <a href="https://corefork.telegram.org/constructor/privacyKeyNoPaidMessages"/></summary> ///<summary>Who can send you messages without paying, if <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a> are enabled.</summary>
NoPaidMessages = 0x17D348D2, NoPaidMessages = 0x17D348D2,
} }
@ -7230,14 +7247,14 @@ namespace TL
[TLDef(0x840649CF)] [TLDef(0x840649CF)]
public sealed partial class InputPrivacyValueAllowChatParticipants : InputPrivacyRule public sealed partial class InputPrivacyValueAllowChatParticipants : InputPrivacyRule
{ {
/// <summary>Allowed chat IDs</summary> /// <summary>Allowed chat IDs (either a <see cref="Chat"/> or a <see cref="Channel">supergroup</see> ID, verbatim the way it is received in the constructor (i.e. unlike with bot API IDs, here group and supergroup IDs should be treated in the same way)).</summary>
public long[] chats; public long[] chats;
} }
/// <summary>Disallow only participants of certain chats <para>See <a href="https://corefork.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants"/></para></summary> /// <summary>Disallow only participants of certain chats <para>See <a href="https://corefork.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants"/></para></summary>
[TLDef(0xE94F0F86)] [TLDef(0xE94F0F86)]
public sealed partial class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule public sealed partial class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule
{ {
/// <summary>Disallowed chat IDs</summary> /// <summary>Disallowed chat IDs (either a <see cref="Chat"/> or a <see cref="Channel">supergroup</see> ID, verbatim the way it is received in the constructor (i.e. unlike with bot API IDs, here group and supergroup IDs should be treated in the same way)).</summary>
public long[] chats; public long[] chats;
} }
/// <summary>Allow only <a href="https://corefork.telegram.org/api/privacy">close friends »</a> <para>See <a href="https://corefork.telegram.org/constructor/inputPrivacyValueAllowCloseFriends"/></para></summary> /// <summary>Allow only <a href="https://corefork.telegram.org/api/privacy">close friends »</a> <para>See <a href="https://corefork.telegram.org/constructor/inputPrivacyValueAllowCloseFriends"/></para></summary>
@ -7285,14 +7302,14 @@ namespace TL
[TLDef(0x6B134E8E)] [TLDef(0x6B134E8E)]
public sealed partial class PrivacyValueAllowChatParticipants : PrivacyRule public sealed partial class PrivacyValueAllowChatParticipants : PrivacyRule
{ {
/// <summary>Allowed chats</summary> /// <summary>Allowed chat IDs (either a <see cref="Chat"/> or a <see cref="Channel">supergroup</see> ID, verbatim the way it is received in the constructor (i.e. unlike with bot API IDs, here group and supergroup IDs should be treated in the same way)).</summary>
public long[] chats; public long[] chats;
} }
/// <summary>Disallow only participants of certain chats <para>See <a href="https://corefork.telegram.org/constructor/privacyValueDisallowChatParticipants"/></para></summary> /// <summary>Disallow only participants of certain chats <para>See <a href="https://corefork.telegram.org/constructor/privacyValueDisallowChatParticipants"/></para></summary>
[TLDef(0x41C87565)] [TLDef(0x41C87565)]
public sealed partial class PrivacyValueDisallowChatParticipants : PrivacyRule public sealed partial class PrivacyValueDisallowChatParticipants : PrivacyRule
{ {
/// <summary>Disallowed chats</summary> /// <summary>Disallowed chats IDs (either a <see cref="Chat"/> or a <see cref="Channel">supergroup</see> ID, verbatim the way it is received in the constructor (i.e. unlike with bot API IDs, here group and supergroup IDs should be treated in the same way)).</summary>
public long[] chats; public long[] chats;
} }
/// <summary>Allow only <a href="https://corefork.telegram.org/api/privacy">close friends »</a> <para>See <a href="https://corefork.telegram.org/constructor/privacyValueAllowCloseFriends"/></para></summary> /// <summary>Allow only <a href="https://corefork.telegram.org/api/privacy">close friends »</a> <para>See <a href="https://corefork.telegram.org/constructor/privacyValueAllowCloseFriends"/></para></summary>
@ -14255,6 +14272,12 @@ namespace TL
{ {
public StarGiftBase gift; public StarGiftBase gift;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/webPageAttributeStarGiftCollection"/></para></summary>
[TLDef(0x31CAD303)]
public sealed partial class WebPageAttributeStarGiftCollection : WebPageAttribute
{
public DocumentBase[] icons;
}
/// <summary>How users voted in a poll <para>See <a href="https://corefork.telegram.org/constructor/messages.votesList"/></para></summary> /// <summary>How users voted in a poll <para>See <a href="https://corefork.telegram.org/constructor/messages.votesList"/></para></summary>
[TLDef(0x4899484E)] [TLDef(0x4899484E)]
@ -16190,11 +16213,17 @@ namespace TL
public long stars; public long stars;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceStarGiftResale"/></para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceStarGiftResale"/></para></summary>
[TLDef(0x63CBC38C)] [TLDef(0xC39F5324)]
public sealed partial class InputInvoiceStarGiftResale : InputInvoice public sealed partial class InputInvoiceStarGiftResale : InputInvoice
{ {
public Flags flags;
public string slug; public string slug;
public InputPeer to_id; public InputPeer to_id;
[Flags] public enum Flags : uint
{
ton = 0x1,
}
} }
/// <summary>Exported <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> <para>See <a href="https://corefork.telegram.org/constructor/payments.exportedInvoice"/></para></summary> /// <summary>Exported <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> <para>See <a href="https://corefork.telegram.org/constructor/payments.exportedInvoice"/></para></summary>
@ -17433,7 +17462,7 @@ namespace TL
public override int ID => id; public override int ID => id;
} }
/// <summary>Represents a <a href="https://corefork.telegram.org/api/stories">story</a>. <para>See <a href="https://corefork.telegram.org/constructor/storyItem"/></para></summary> /// <summary>Represents a <a href="https://corefork.telegram.org/api/stories">story</a>. <para>See <a href="https://corefork.telegram.org/constructor/storyItem"/></para></summary>
[TLDef(0x79B26A24)] [TLDef(0xEDF164F1)]
public sealed partial class StoryItem : StoryItemBase public sealed partial class StoryItem : StoryItemBase
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -17462,6 +17491,7 @@ namespace TL
[IfFlag(3)] public StoryViews views; [IfFlag(3)] public StoryViews views;
/// <summary>The reaction we sent.</summary> /// <summary>The reaction we sent.</summary>
[IfFlag(15)] public Reaction sent_reaction; [IfFlag(15)] public Reaction sent_reaction;
[IfFlag(19)] public int[] albums;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
@ -17499,6 +17529,8 @@ namespace TL
has_fwd_from = 0x20000, has_fwd_from = 0x20000,
/// <summary>Field <see cref="from_id"/> has a value</summary> /// <summary>Field <see cref="from_id"/> has a value</summary>
has_from_id = 0x40000, has_from_id = 0x40000,
/// <summary>Field <see cref="albums"/> has a value</summary>
has_albums = 0x80000,
} }
/// <summary>ID of the story.</summary> /// <summary>ID of the story.</summary>
@ -20155,7 +20187,7 @@ namespace TL
public override Peer ReleasedBy => released_by; public override Peer ReleasedBy => released_by;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/starGiftUnique"/></para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/constructor/starGiftUnique"/></para></summary>
[TLDef(0xF63778AE)] [TLDef(0x3A274D50)]
public sealed partial class StarGiftUnique : StarGiftBase public sealed partial class StarGiftUnique : StarGiftBase
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -20171,7 +20203,7 @@ namespace TL
public int availability_issued; public int availability_issued;
public int availability_total; public int availability_total;
[IfFlag(3)] public string gift_address; [IfFlag(3)] public string gift_address;
[IfFlag(4)] public long resell_stars; [IfFlag(4)] public StarsAmountBase[] resell_amount;
[IfFlag(5)] public Peer released_by; [IfFlag(5)] public Peer released_by;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
@ -20184,11 +20216,12 @@ namespace TL
has_owner_address = 0x4, has_owner_address = 0x4,
/// <summary>Field <see cref="gift_address"/> has a value</summary> /// <summary>Field <see cref="gift_address"/> has a value</summary>
has_gift_address = 0x8, has_gift_address = 0x8,
/// <summary>Field <see cref="resell_stars"/> has a value</summary> /// <summary>Field <see cref="resell_amount"/> has a value</summary>
has_resell_stars = 0x10, has_resell_amount = 0x10,
/// <summary>Field <see cref="released_by"/> has a value</summary> /// <summary>Field <see cref="released_by"/> has a value</summary>
has_released_by = 0x20, has_released_by = 0x20,
require_premium = 0x40, require_premium = 0x40,
resale_ton_only = 0x80,
} }
public override long ID => id; public override long ID => id;
@ -20697,23 +20730,25 @@ namespace TL
public InputPeer peer; public InputPeer peer;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/account.paidMessagesRevenue"/></para></summary> /// <summary>Total number of non-refunded <a href="https://corefork.telegram.org/api/stars">Telegram Stars</a> a user has spent on sending us messages either directly or through a channel, see <a href="https://corefork.telegram.org/api/paid-messages">here »</a> for more info on paid messages. <para>See <a href="https://corefork.telegram.org/constructor/account.paidMessagesRevenue"/></para></summary>
[TLDef(0x1E109708)] [TLDef(0x1E109708)]
public sealed partial class Account_PaidMessagesRevenue : IObject public sealed partial class Account_PaidMessagesRevenue : IObject
{ {
/// <summary>Amount in <a href="https://corefork.telegram.org/api/stars">Stars</a>.</summary>
public long stars_amount; public long stars_amount;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/type/RequirementToContact"/></para> <para>Derived classes: <see cref="RequirementToContactPremium"/>, <see cref="RequirementToContactPaidMessages"/></para></summary> /// <summary>Specifies a requirement that must be satisfied in order to contact a user. <para>See <a href="https://corefork.telegram.org/type/RequirementToContact"/></para> <para>Derived classes: <see cref="RequirementToContactPremium"/>, <see cref="RequirementToContactPaidMessages"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/requirementToContactEmpty">requirementToContactEmpty</a></remarks> /// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/requirementToContactEmpty">requirementToContactEmpty</a></remarks>
public abstract partial class RequirementToContact : IObject { } public abstract partial class RequirementToContact : IObject { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/requirementToContactPremium"/></para></summary> /// <summary>This user requires us to buy a <a href="https://corefork.telegram.org/api/premium">Premium</a> subscription in order to contact them. <para>See <a href="https://corefork.telegram.org/constructor/requirementToContactPremium"/></para></summary>
[TLDef(0xE581E4E9)] [TLDef(0xE581E4E9)]
public sealed partial class RequirementToContactPremium : RequirementToContact { } public sealed partial class RequirementToContactPremium : RequirementToContact { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/requirementToContactPaidMessages"/></para></summary> /// <summary>This user requires us to pay the specified amount of <a href="https://corefork.telegram.org/api/stars">Telegram Stars</a> to send them a message, see <a href="https://corefork.telegram.org/api/paid-messages">here »</a> for the full flow. <para>See <a href="https://corefork.telegram.org/constructor/requirementToContactPaidMessages"/></para></summary>
[TLDef(0xB4F67E93)] [TLDef(0xB4F67E93)]
public sealed partial class RequirementToContactPaidMessages : RequirementToContact public sealed partial class RequirementToContactPaidMessages : RequirementToContact
{ {
/// <summary>The required amount of <a href="https://corefork.telegram.org/api/stars">Telegram Stars</a>.</summary>
public long stars_amount; public long stars_amount;
} }
@ -20958,4 +20993,47 @@ namespace TL
{ {
public StarGiftCollection[] collections; public StarGiftCollection[] collections;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/storyAlbum"/></para></summary>
[TLDef(0x9325705A)]
public sealed partial class StoryAlbum : IObject
{
public Flags flags;
public int album_id;
public string title;
[IfFlag(0)] public PhotoBase icon_photo;
[IfFlag(1)] public DocumentBase icon_video;
[Flags] public enum Flags : uint
{
has_icon_photo = 0x1,
has_icon_video = 0x2,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stories.albums"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/stories.albumsNotModified">stories.albumsNotModified</a></remarks>
[TLDef(0xC3987A3A)]
public sealed partial class Stories_Albums : IObject
{
public long hash;
public StoryAlbum[] albums;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/searchPostsFlood"/></para></summary>
[TLDef(0x3E0B5B6A)]
public sealed partial class SearchPostsFlood : IObject
{
public Flags flags;
public int total_daily;
public int remains;
[IfFlag(1)] public int wait_till;
public long stars_amount;
[Flags] public enum Flags : uint
{
query_is_free = 0x1,
has_wait_till = 0x2,
}
}
} }

View file

@ -1446,7 +1446,7 @@ namespace TL
/// <summary>Allow a user to send us messages without paying if <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a> are enabled. <para>See <a href="https://corefork.telegram.org/method/account.toggleNoPaidMessagesException"/> [bots: ✓]</para></summary> /// <summary>Allow a user to send us messages without paying if <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a> are enabled. <para>See <a href="https://corefork.telegram.org/method/account.toggleNoPaidMessagesException"/> [bots: ✓]</para></summary>
/// <param name="refund_charged">If set and <c>require_payment</c> is not set, refunds the amounts the user has already paid us to send us messages (directly or via a monoforum).</param> /// <param name="refund_charged">If set and <c>require_payment</c> is not set, refunds the amounts the user has already paid us to send us messages (directly or via a monoforum).</param>
/// <param name="require_payment">Allow or disallow a user to send us messages without paying.</param> /// <param name="require_payment">If set, requires the user to pay in order to send us messages (can only be used by monoforums, not users, i.e. <c>parent_peer</c> must be set if this flag is set; users must instead use the <see cref="InputPrivacyKey.NoPaidMessages"/> <a href="https://corefork.telegram.org/api/privacy">privacy setting</a> to remove a previously added exemption). <br/>If not set, allows the user to send us messages without paying (can be used by both monoforums and users).</param>
/// <param name="parent_peer">If set, applies the setting within the <a href="https://corefork.telegram.org/api/forum#monoforums">monoforum aka direct messages »</a> (pass the ID of the monoforum, <strong>not</strong> the ID of the associated channel).</param> /// <param name="parent_peer">If set, applies the setting within the <a href="https://corefork.telegram.org/api/forum#monoforums">monoforum aka direct messages »</a> (pass the ID of the monoforum, <strong>not</strong> the ID of the associated channel).</param>
/// <param name="user_id">The user to exempt or unexempt.</param> /// <param name="user_id">The user to exempt or unexempt.</param>
public static Task<bool> Account_ToggleNoPaidMessagesException(this Client client, InputUserBase user_id, InputPeer parent_peer = null, bool refund_charged = false, bool require_payment = false) public static Task<bool> Account_ToggleNoPaidMessagesException(this Client client, InputUserBase user_id, InputPeer parent_peer = null, bool refund_charged = false, bool require_payment = false)
@ -1483,7 +1483,8 @@ namespace TL
errors = errors, errors = errors,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/users.getRequirementsToContact"/> [bots: ✓]</para></summary> /// <summary>Check whether we can write to the specified users, used to implement bulk checks for <a href="https://corefork.telegram.org/api/privacy#require-premium-for-new-non-contact-users">Premium-only messages »</a> and <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a>. <para>See <a href="https://corefork.telegram.org/method/users.getRequirementsToContact"/> [bots: ✓]</para></summary>
/// <param name="id">Users to check.</param>
public static Task<RequirementToContact[]> Users_GetRequirementsToContact(this Client client, params InputUserBase[] id) public static Task<RequirementToContact[]> Users_GetRequirementsToContact(this Client client, params InputUserBase[] id)
=> client.Invoke(new Users_GetRequirementsToContact => client.Invoke(new Users_GetRequirementsToContact
{ {
@ -1911,6 +1912,7 @@ namespace TL
/// <param name="send_as">Send this message as the specified peer</param> /// <param name="send_as">Send this message as the specified peer</param>
/// <param name="quick_reply_shortcut">Add the message to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param> /// <param name="quick_reply_shortcut">Add the message to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param>
/// <param name="effect">Specifies a <a href="https://corefork.telegram.org/api/effects">message effect »</a> to use for the message.</param> /// <param name="effect">Specifies a <a href="https://corefork.telegram.org/api/effects">message effect »</a> to use for the message.</param>
/// <param name="allow_paid_stars">For <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a>, specifies the amount of <a href="https://corefork.telegram.org/api/stars">Telegram Stars</a> the user has agreed to pay in order to send the message.</param>
public static Task<UpdatesBase> 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, long? allow_paid_stars = null, SuggestedPost suggested_post = 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) public static Task<UpdatesBase> 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, long? allow_paid_stars = null, SuggestedPost suggested_post = 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 => client.Invoke(new Messages_SendMessage
{ {
@ -1948,6 +1950,7 @@ namespace TL
/// <param name="send_as">Send this message as the specified peer</param> /// <param name="send_as">Send this message as the specified peer</param>
/// <param name="quick_reply_shortcut">Add the message to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param> /// <param name="quick_reply_shortcut">Add the message to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param>
/// <param name="effect">Specifies a <a href="https://corefork.telegram.org/api/effects">message effect »</a> to use for the message.</param> /// <param name="effect">Specifies a <a href="https://corefork.telegram.org/api/effects">message effect »</a> to use for the message.</param>
/// <param name="allow_paid_stars">For <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a>, specifies the amount of <a href="https://corefork.telegram.org/api/stars">Telegram Stars</a> the user has agreed to pay in order to send the message.</param>
public static Task<UpdatesBase> 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, long? allow_paid_stars = null, SuggestedPost suggested_post = 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) public static Task<UpdatesBase> 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, long? allow_paid_stars = null, SuggestedPost suggested_post = 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 => client.Invoke(new Messages_SendMedia
{ {
@ -1983,6 +1986,7 @@ namespace TL
/// <param name="schedule_date">Scheduled message date for scheduled messages</param> /// <param name="schedule_date">Scheduled message date for scheduled messages</param>
/// <param name="send_as">Forward the messages as the specified peer</param> /// <param name="send_as">Forward the messages as the specified peer</param>
/// <param name="quick_reply_shortcut">Add the messages to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param> /// <param name="quick_reply_shortcut">Add the messages to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param>
/// <param name="allow_paid_stars">For <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a>, specifies the amount of <a href="https://corefork.telegram.org/api/stars">Telegram Stars</a> the user has agreed to pay in order to send the message.</param>
public static Task<UpdatesBase> 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, int? video_timestamp = null, long? allow_paid_stars = null, InputReplyTo reply_to = null, SuggestedPost suggested_post = 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) public static Task<UpdatesBase> 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, int? video_timestamp = null, long? allow_paid_stars = null, InputReplyTo reply_to = null, SuggestedPost suggested_post = 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 => client.Invoke(new Messages_ForwardMessages
{ {
@ -2496,6 +2500,7 @@ namespace TL
/// <param name="schedule_date">Scheduled message date for scheduled messages</param> /// <param name="schedule_date">Scheduled message date for scheduled messages</param>
/// <param name="send_as">Send this message as the specified peer</param> /// <param name="send_as">Send this message as the specified peer</param>
/// <param name="quick_reply_shortcut">Add the message to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param> /// <param name="quick_reply_shortcut">Add the message to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param>
/// <param name="allow_paid_stars">For <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a>, specifies the amount of <a href="https://corefork.telegram.org/api/stars">Telegram Stars</a> the user has agreed to pay in order to send the message.</param>
public static Task<UpdatesBase> Messages_SendInlineBotResult(this Client client, InputPeer peer, long random_id, long query_id, string id, InputReplyTo reply_to = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? allow_paid_stars = null, bool silent = false, bool background = false, bool clear_draft = false, bool hide_via = false) public static Task<UpdatesBase> Messages_SendInlineBotResult(this Client client, InputPeer peer, long random_id, long query_id, string id, InputReplyTo reply_to = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? allow_paid_stars = null, bool silent = false, bool background = false, bool clear_draft = false, bool hide_via = false)
=> client.Invoke(new Messages_SendInlineBotResult => client.Invoke(new Messages_SendInlineBotResult
{ {
@ -2945,6 +2950,7 @@ namespace TL
/// <param name="send_as">Send this message as the specified peer</param> /// <param name="send_as">Send this message as the specified peer</param>
/// <param name="quick_reply_shortcut">Add the message to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param> /// <param name="quick_reply_shortcut">Add the message to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param>
/// <param name="effect">Specifies a <a href="https://corefork.telegram.org/api/effects">message effect »</a> to use for the message.</param> /// <param name="effect">Specifies a <a href="https://corefork.telegram.org/api/effects">message effect »</a> to use for the message.</param>
/// <param name="allow_paid_stars">For <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a>, specifies the amount of <a href="https://corefork.telegram.org/api/stars">Telegram Stars</a> the user has agreed to pay in order to send the message.</param>
public static Task<UpdatesBase> 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, long? allow_paid_stars = 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) public static Task<UpdatesBase> 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, long? allow_paid_stars = 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 => client.Invoke(new Messages_SendMultiMedia
{ {
@ -4513,7 +4519,8 @@ namespace TL
hash = hash, hash = hash,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.reportMessagesDelivery"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.reportMessagesDelivery#possible-errors">details</a>)</para></summary> /// <summary>Used for <a href="https://telegram.org/blog/star-messages-gateway-2-0-and-more#save-even-more-on-user-verification">Telegram Gateway verification messages »</a>: indicate to the server that one or more <see cref="Message"/>s were received by the client, if requested by the <see cref="Message"/>.<strong>report_delivery_until_date</strong> flag or the equivalent flag in <a href="https://corefork.telegram.org/api/push-updates">push notifications</a>. <para>See <a href="https://corefork.telegram.org/method/messages.reportMessagesDelivery"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.reportMessagesDelivery#possible-errors">details</a>)</para></summary>
/// <param name="push">If set,</param>
public static Task<bool> Messages_ReportMessagesDelivery(this Client client, InputPeer peer, int[] id, bool push = false) public static Task<bool> Messages_ReportMessagesDelivery(this Client client, InputPeer peer, int[] id, bool push = false)
=> client.Invoke(new Messages_ReportMessagesDelivery => client.Invoke(new Messages_ReportMessagesDelivery
{ {
@ -5644,14 +5651,17 @@ namespace TL
/// <param name="offset_peer"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param> /// <param name="offset_peer"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
/// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param> /// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
/// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param> /// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param>
public static Task<Messages_MessagesBase> Channels_SearchPosts(this Client client, string hashtag, int offset_rate = default, InputPeer offset_peer = null, int offset_id = default, int limit = int.MaxValue) public static Task<Messages_MessagesBase> Channels_SearchPosts(this Client client, int offset_rate = default, InputPeer offset_peer = null, int offset_id = default, int limit = int.MaxValue, string hashtag = null, string query = null, long? allow_paid_stars = null)
=> client.Invoke(new Channels_SearchPosts => client.Invoke(new Channels_SearchPosts
{ {
flags = (Channels_SearchPosts.Flags)((hashtag != null ? 0x1 : 0) | (query != null ? 0x2 : 0) | (allow_paid_stars != null ? 0x4 : 0)),
hashtag = hashtag, hashtag = hashtag,
query = query,
offset_rate = offset_rate, offset_rate = offset_rate,
offset_peer = offset_peer, offset_peer = offset_peer,
offset_id = offset_id, offset_id = offset_id,
limit = limit, limit = limit,
allow_paid_stars = allow_paid_stars ?? default,
}); });
/// <summary>Enable or disable <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a> in this <a href="https://corefork.telegram.org/api/channel">supergroup</a> or <a href="https://corefork.telegram.org/api/forum#monoforums">monoforum</a>. <para>See <a href="https://corefork.telegram.org/method/channels.updatePaidMessagesPrice"/> [bots: ✓]</para></summary> /// <summary>Enable or disable <a href="https://corefork.telegram.org/api/paid-messages">paid messages »</a> in this <a href="https://corefork.telegram.org/api/channel">supergroup</a> or <a href="https://corefork.telegram.org/api/forum#monoforums">monoforum</a>. <para>See <a href="https://corefork.telegram.org/method/channels.updatePaidMessagesPrice"/> [bots: ✓]</para></summary>
@ -5682,6 +5692,14 @@ namespace TL
id = id, id = id,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.checkSearchPostsFlood"/></para></summary>
public static Task<SearchPostsFlood> Channels_CheckSearchPostsFlood(this Client client, string query = null)
=> client.Invoke(new Channels_CheckSearchPostsFlood
{
flags = (Channels_CheckSearchPostsFlood.Flags)(query != null ? 0x1 : 0),
query = query,
});
/// <summary>Sends a custom request; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.sendCustomRequest"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/bots.sendCustomRequest#possible-errors">details</a>)</para></summary> /// <summary>Sends a custom request; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.sendCustomRequest"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/bots.sendCustomRequest#possible-errors">details</a>)</para></summary>
/// <param name="custom_method">The method name</param> /// <param name="custom_method">The method name</param>
/// <param name="params_">JSON-serialized method parameters</param> /// <param name="params_">JSON-serialized method parameters</param>
@ -5976,7 +5994,11 @@ namespace TL
duration_months = duration_months ?? default, duration_months = duration_months ?? default,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.setCustomVerification"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.setCustomVerification#possible-errors">details</a>)</para></summary> /// <summary>Verify a user or chat <a href="https://corefork.telegram.org/api/bots/verification">on behalf of an organization »</a>. <para>See <a href="https://corefork.telegram.org/method/bots.setCustomVerification"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.setCustomVerification#possible-errors">details</a>)</para></summary>
/// <param name="enabled">If set, adds the verification; otherwise removes verification.</param>
/// <param name="bot">Must <strong>not</strong> be set if invoked by a bot, <strong>must</strong> be set to the ID of an owned bot if invoked by a user.</param>
/// <param name="peer">The peer to verify</param>
/// <param name="custom_description">Custom description for the verification, the UTF-8 length limit for this field is contained in <a href="https://corefork.telegram.org/api/config#bot-verification-description-length-limit">bot_verification_description_length_limit »</a>. <br/>If not set, <c>Was verified by organization "organization_name"</c> will be used as description.</param>
public static Task<bool> Bots_SetCustomVerification(this Client client, InputPeer peer, InputUserBase bot = null, string custom_description = null, bool enabled = false) public static Task<bool> Bots_SetCustomVerification(this Client client, InputPeer peer, InputUserBase bot = null, string custom_description = null, bool enabled = false)
=> client.Invoke(new Bots_SetCustomVerification => client.Invoke(new Bots_SetCustomVerification
{ {
@ -5986,7 +6008,8 @@ namespace TL
custom_description = custom_description, custom_description = custom_description,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.getBotRecommendations"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.getBotRecommendations#possible-errors">details</a>)</para></summary> /// <summary>Obtain a list of similarly themed bots, selected based on similarities in their subscriber bases, see <a href="https://corefork.telegram.org/api/recommend">here »</a> for more info. <para>See <a href="https://corefork.telegram.org/method/bots.getBotRecommendations"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.getBotRecommendations#possible-errors">details</a>)</para></summary>
/// <param name="bot">The method will return bots related to the passed bot.</param>
public static Task<Users_Users> Bots_GetBotRecommendations(this Client client, InputUserBase bot) public static Task<Users_Users> Bots_GetBotRecommendations(this Client client, InputUserBase bot)
=> client.Invoke(new Bots_GetBotRecommendations => client.Invoke(new Bots_GetBotRecommendations
{ {
@ -6480,11 +6503,11 @@ namespace TL
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.updateStarGiftPrice"/> [bots: ✓]</para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/method/payments.updateStarGiftPrice"/> [bots: ✓]</para></summary>
public static Task<UpdatesBase> Payments_UpdateStarGiftPrice(this Client client, InputSavedStarGift stargift, long resell_stars) public static Task<UpdatesBase> Payments_UpdateStarGiftPrice(this Client client, InputSavedStarGift stargift, StarsAmountBase resell_amount)
=> client.Invoke(new Payments_UpdateStarGiftPrice => client.Invoke(new Payments_UpdateStarGiftPrice
{ {
stargift = stargift, stargift = stargift,
resell_stars = resell_stars, resell_amount = resell_amount,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.createStarGiftCollection"/></para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/method/payments.createStarGiftCollection"/></para></summary>
@ -7021,7 +7044,14 @@ namespace TL
file = file, file = file,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/phone.createConferenceCall"/> [bots: ✓]</para></summary> /// <summary>Create and optionally join a new conference call. <para>See <a href="https://corefork.telegram.org/method/phone.createConferenceCall"/> [bots: ✓]</para></summary>
/// <param name="muted">If set, mute our microphone when joining the call (can only be used if <c>join</c> is set).</param>
/// <param name="video_stopped">If set, our video stream is disabled (can only be used if <c>join</c> is set).</param>
/// <param name="join">If set, also join the call, otherwise just create the call link.</param>
/// <param name="random_id">Unique client message ID required to prevent creation of duplicate group calls.</param>
/// <param name="public_key">Public key (can only be used if <c>join</c> is set).</param>
/// <param name="block">Initial blockchain block (can only be used if <c>join</c> is set).</param>
/// <param name="params_">Parameters from tgcalls (can only be used if <c>join</c> is set).</param>
public static Task<UpdatesBase> Phone_CreateConferenceCall(this Client client, int random_id, Int256? public_key = null, byte[] block = null, DataJSON params_ = null, bool muted = false, bool video_stopped = false, bool join = false) public static Task<UpdatesBase> Phone_CreateConferenceCall(this Client client, int random_id, Int256? public_key = null, byte[] block = null, DataJSON params_ = null, bool muted = false, bool video_stopped = false, bool join = false)
=> client.Invoke(new Phone_CreateConferenceCall => client.Invoke(new Phone_CreateConferenceCall
{ {
@ -7349,10 +7379,10 @@ namespace TL
/// <param name="period">Period after which the story is moved to archive (and to the profile if <c>pinned</c> is set), in seconds; must be one of <c>6 * 3600</c>, <c>12 * 3600</c>, <c>86400</c>, or <c>2 * 86400</c> for Telegram Premium users, and <c>86400</c> otherwise.</param> /// <param name="period">Period after which the story is moved to archive (and to the profile if <c>pinned</c> is set), in seconds; must be one of <c>6 * 3600</c>, <c>12 * 3600</c>, <c>86400</c>, or <c>2 * 86400</c> for Telegram Premium users, and <c>86400</c> otherwise.</param>
/// <param name="fwd_from_id">If set, indicates that this story is a repost of story with ID <c>fwd_from_story</c> posted by the peer in <c>fwd_from_id</c>.</param> /// <param name="fwd_from_id">If set, indicates that this story is a repost of story with ID <c>fwd_from_story</c> posted by the peer in <c>fwd_from_id</c>.</param>
/// <param name="fwd_from_story">If set, indicates that this story is a repost of story with ID <c>fwd_from_story</c> posted by the peer in <c>fwd_from_id</c>.</param> /// <param name="fwd_from_story">If set, indicates that this story is a repost of story with ID <c>fwd_from_story</c> posted by the peer in <c>fwd_from_id</c>.</param>
public static Task<UpdatesBase> Stories_SendStory(this Client client, InputPeer peer, InputMedia media, InputPrivacyRule[] privacy_rules, long random_id, string caption = null, MessageEntity[] entities = null, int? period = null, MediaArea[] media_areas = null, InputPeer fwd_from_id = null, int? fwd_from_story = null, bool pinned = false, bool noforwards = false, bool fwd_modified = false) public static Task<UpdatesBase> Stories_SendStory(this Client client, InputPeer peer, InputMedia media, InputPrivacyRule[] privacy_rules, long random_id, string caption = null, MessageEntity[] entities = null, int? period = null, MediaArea[] media_areas = null, InputPeer fwd_from_id = null, int? fwd_from_story = null, int[] albums = null, bool pinned = false, bool noforwards = false, bool fwd_modified = false)
=> client.Invoke(new Stories_SendStory => client.Invoke(new Stories_SendStory
{ {
flags = (Stories_SendStory.Flags)((caption != null ? 0x1 : 0) | (entities != null ? 0x2 : 0) | (period != null ? 0x8 : 0) | (media_areas != null ? 0x20 : 0) | (fwd_from_id != null ? 0x40 : 0) | (fwd_from_story != null ? 0x40 : 0) | (pinned ? 0x4 : 0) | (noforwards ? 0x10 : 0) | (fwd_modified ? 0x80 : 0)), flags = (Stories_SendStory.Flags)((caption != null ? 0x1 : 0) | (entities != null ? 0x2 : 0) | (period != null ? 0x8 : 0) | (media_areas != null ? 0x20 : 0) | (fwd_from_id != null ? 0x40 : 0) | (fwd_from_story != null ? 0x40 : 0) | (albums != null ? 0x100 : 0) | (pinned ? 0x4 : 0) | (noforwards ? 0x10 : 0) | (fwd_modified ? 0x80 : 0)),
peer = peer, peer = peer,
media = media, media = media,
media_areas = media_areas, media_areas = media_areas,
@ -7363,6 +7393,7 @@ namespace TL
period = period ?? default, period = period ?? default,
fwd_from_id = fwd_from_id, fwd_from_id = fwd_from_id,
fwd_from_story = fwd_from_story ?? default, fwd_from_story = fwd_from_story ?? default,
albums = albums,
}); });
/// <summary>Edit an uploaded <a href="https://corefork.telegram.org/api/stories">story</a> <para>See <a href="https://corefork.telegram.org/method/stories.editStory"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.editStory#possible-errors">details</a>)</para></summary> /// <summary>Edit an uploaded <a href="https://corefork.telegram.org/api/stories">story</a> <para>See <a href="https://corefork.telegram.org/method/stories.editStory"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.editStory#possible-errors">details</a>)</para></summary>
@ -7641,6 +7672,63 @@ namespace TL
limit = limit, limit = limit,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.createAlbum"/></para></summary>
public static Task<StoryAlbum> Stories_CreateAlbum(this Client client, InputPeer peer, string title, params int[] stories)
=> client.Invoke(new Stories_CreateAlbum
{
peer = peer,
title = title,
stories = stories,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.updateAlbum"/></para></summary>
public static Task<StoryAlbum> Stories_UpdateAlbum(this Client client, InputPeer peer, int album_id, string title = null, int[] delete_stories = null, int[] add_stories = null, int[] order = null)
=> client.Invoke(new Stories_UpdateAlbum
{
flags = (Stories_UpdateAlbum.Flags)((title != null ? 0x1 : 0) | (delete_stories != null ? 0x2 : 0) | (add_stories != null ? 0x4 : 0) | (order != null ? 0x8 : 0)),
peer = peer,
album_id = album_id,
title = title,
delete_stories = delete_stories,
add_stories = add_stories,
order = order,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.reorderAlbums"/></para></summary>
public static Task<bool> Stories_ReorderAlbums(this Client client, InputPeer peer, params int[] order)
=> client.Invoke(new Stories_ReorderAlbums
{
peer = peer,
order = order,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.deleteAlbum"/></para></summary>
public static Task<bool> Stories_DeleteAlbum(this Client client, InputPeer peer, int album_id)
=> client.Invoke(new Stories_DeleteAlbum
{
peer = peer,
album_id = album_id,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getAlbums"/></para></summary>
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/stories.albumsNotModified">stories.albumsNotModified</a></returns>
public static Task<Stories_Albums> Stories_GetAlbums(this Client client, InputPeer peer, long hash = default)
=> client.Invoke(new Stories_GetAlbums
{
peer = peer,
hash = hash,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getAlbumStories"/></para></summary>
public static Task<Stories_Stories> Stories_GetAlbumStories(this Client client, InputPeer peer, int album_id, int offset = default, int limit = int.MaxValue)
=> client.Invoke(new Stories_GetAlbumStories
{
peer = peer,
album_id = album_id,
offset = offset,
limit = limit,
});
/// <summary>Obtains info about the boosts that were applied to a certain channel or supergroup (admins only) <para>See <a href="https://corefork.telegram.org/method/premium.getBoostsList"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/premium.getBoostsList#possible-errors">details</a>)</para></summary> /// <summary>Obtains info about the boosts that were applied to a certain channel or supergroup (admins only) <para>See <a href="https://corefork.telegram.org/method/premium.getBoostsList"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/premium.getBoostsList#possible-errors">details</a>)</para></summary>
/// <param name="gifts">Whether to return only info about boosts received from <a href="https://corefork.telegram.org/api/giveaways">gift codes and giveaways created by the channel/supergroup »</a></param> /// <param name="gifts">Whether to return only info about boosts received from <a href="https://corefork.telegram.org/api/giveaways">gift codes and giveaways created by the channel/supergroup »</a></param>
/// <param name="peer">The channel/supergroup</param> /// <param name="peer">The channel/supergroup</param>
@ -12454,14 +12542,24 @@ namespace TL.Methods
public bool restricted; public bool restricted;
} }
[TLDef(0xD19F987B)] [TLDef(0xF2C4F24D)]
public sealed partial class Channels_SearchPosts : IMethod<Messages_MessagesBase> public sealed partial class Channels_SearchPosts : IMethod<Messages_MessagesBase>
{ {
public string hashtag; public Flags flags;
[IfFlag(0)] public string hashtag;
[IfFlag(1)] public string query;
public int offset_rate; public int offset_rate;
public InputPeer offset_peer; public InputPeer offset_peer;
public int offset_id; public int offset_id;
public int limit; public int limit;
[IfFlag(2)] public long allow_paid_stars;
[Flags] public enum Flags : uint
{
has_hashtag = 0x1,
has_query = 0x2,
has_allow_paid_stars = 0x4,
}
} }
[TLDef(0x4B12327B)] [TLDef(0x4B12327B)]
@ -12491,6 +12589,18 @@ namespace TL.Methods
public int id; public int id;
} }
[TLDef(0x22567115)]
public sealed partial class Channels_CheckSearchPostsFlood : IMethod<SearchPostsFlood>
{
public Flags flags;
[IfFlag(0)] public string query;
[Flags] public enum Flags : uint
{
has_query = 0x1,
}
}
[TLDef(0xAA2769ED)] [TLDef(0xAA2769ED)]
public sealed partial class Bots_SendCustomRequest : IMethod<DataJSON> public sealed partial class Bots_SendCustomRequest : IMethod<DataJSON>
{ {
@ -13212,11 +13322,11 @@ namespace TL.Methods
} }
} }
[TLDef(0x3BAEA4E1)] [TLDef(0xEDBE6CCB)]
public sealed partial class Payments_UpdateStarGiftPrice : IMethod<UpdatesBase> public sealed partial class Payments_UpdateStarGiftPrice : IMethod<UpdatesBase>
{ {
public InputSavedStarGift stargift; public InputSavedStarGift stargift;
public long resell_stars; public StarsAmountBase resell_amount;
} }
[TLDef(0x1F4A0E87)] [TLDef(0x1F4A0E87)]
@ -13948,7 +14058,7 @@ namespace TL.Methods
public InputPeer peer; public InputPeer peer;
} }
[TLDef(0xE4E6694B)] [TLDef(0x737FC2EC)]
public sealed partial class Stories_SendStory : IMethod<UpdatesBase> public sealed partial class Stories_SendStory : IMethod<UpdatesBase>
{ {
public Flags flags; public Flags flags;
@ -13962,6 +14072,7 @@ namespace TL.Methods
[IfFlag(3)] public int period; [IfFlag(3)] public int period;
[IfFlag(6)] public InputPeer fwd_from_id; [IfFlag(6)] public InputPeer fwd_from_id;
[IfFlag(6)] public int fwd_from_story; [IfFlag(6)] public int fwd_from_story;
[IfFlag(8)] public int[] albums;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
@ -13973,6 +14084,7 @@ namespace TL.Methods
has_media_areas = 0x20, has_media_areas = 0x20,
has_fwd_from_id = 0x40, has_fwd_from_id = 0x40,
fwd_modified = 0x80, fwd_modified = 0x80,
has_albums = 0x100,
} }
} }
@ -14205,6 +14317,64 @@ namespace TL.Methods
} }
} }
[TLDef(0xA36396E5)]
public sealed partial class Stories_CreateAlbum : IMethod<StoryAlbum>
{
public InputPeer peer;
public string title;
public int[] stories;
}
[TLDef(0x5E5259B6)]
public sealed partial class Stories_UpdateAlbum : IMethod<StoryAlbum>
{
public Flags flags;
public InputPeer peer;
public int album_id;
[IfFlag(0)] public string title;
[IfFlag(1)] public int[] delete_stories;
[IfFlag(2)] public int[] add_stories;
[IfFlag(3)] public int[] order;
[Flags] public enum Flags : uint
{
has_title = 0x1,
has_delete_stories = 0x2,
has_add_stories = 0x4,
has_order = 0x8,
}
}
[TLDef(0x8535FBD9)]
public sealed partial class Stories_ReorderAlbums : IMethod<bool>
{
public InputPeer peer;
public int[] order;
}
[TLDef(0x8D3456D0)]
public sealed partial class Stories_DeleteAlbum : IMethod<bool>
{
public InputPeer peer;
public int album_id;
}
[TLDef(0x25B3EAC7)]
public sealed partial class Stories_GetAlbums : IMethod<Stories_Albums>
{
public InputPeer peer;
public long hash;
}
[TLDef(0xAC806D61)]
public sealed partial class Stories_GetAlbumStories : IMethod<Stories_Stories>
{
public InputPeer peer;
public int album_id;
public int offset;
public int limit;
}
[TLDef(0x60F67660)] [TLDef(0x60F67660)]
public sealed partial class Premium_GetBoostsList : IMethod<Premium_BoostsList> public sealed partial class Premium_GetBoostsList : IMethod<Premium_BoostsList>
{ {

View file

@ -6,7 +6,7 @@ namespace TL
{ {
public static partial class Layer public static partial class Layer
{ {
public const int Version = 210; // fetched 25/07/2025 14:54:33 public const int Version = 211; // fetched 31/07/2025 22:39:04
internal const int SecretChats = 144; internal const int SecretChats = 144;
internal const int MTProto2 = 73; internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415; internal const uint VectorCtor = 0x1CB5C415;
@ -216,7 +216,7 @@ namespace TL
[0x45D5B021] = typeof(MessageActionGiftStars), [0x45D5B021] = typeof(MessageActionGiftStars),
[0xB00C47A2] = typeof(MessageActionPrizeStars), [0xB00C47A2] = typeof(MessageActionPrizeStars),
[0x4717E8A4] = typeof(MessageActionStarGift), [0x4717E8A4] = typeof(MessageActionStarGift),
[0x2E3AE60E] = typeof(MessageActionStarGiftUnique), [0x34F762F3] = typeof(MessageActionStarGiftUnique),
[0xAC1F1FCD] = typeof(MessageActionPaidMessagesRefunded), [0xAC1F1FCD] = typeof(MessageActionPaidMessagesRefunded),
[0x84B88578] = typeof(MessageActionPaidMessagesPrice), [0x84B88578] = typeof(MessageActionPaidMessagesPrice),
[0x2FFE2F7A] = typeof(MessageActionConferenceCall), [0x2FFE2F7A] = typeof(MessageActionConferenceCall),
@ -254,7 +254,7 @@ namespace TL
[0xF47741F7] = typeof(PeerSettings), [0xF47741F7] = typeof(PeerSettings),
[0xA437C3ED] = typeof(WallPaper), [0xA437C3ED] = typeof(WallPaper),
[0xE0804116] = typeof(WallPaperNoFile), [0xE0804116] = typeof(WallPaperNoFile),
[0x29DE80BE] = typeof(UserFull), [0x7E63CE1F] = typeof(UserFull),
[0x145ADE0B] = typeof(Contact), [0x145ADE0B] = typeof(Contact),
[0xC13E3C50] = typeof(ImportedContact), [0xC13E3C50] = typeof(ImportedContact),
[0x16D9703B] = typeof(ContactStatus), [0x16D9703B] = typeof(ContactStatus),
@ -267,7 +267,7 @@ namespace TL
[0x71E094F3] = typeof(Messages_DialogsSlice), [0x71E094F3] = typeof(Messages_DialogsSlice),
[0xF0E3E596] = typeof(Messages_DialogsNotModified), [0xF0E3E596] = typeof(Messages_DialogsNotModified),
[0x8C718E87] = typeof(Messages_Messages), [0x8C718E87] = typeof(Messages_Messages),
[0x3A54685E] = typeof(Messages_MessagesSlice), [0x762B263D] = typeof(Messages_MessagesSlice),
[0xC776BA4E] = typeof(Messages_ChannelMessages), [0xC776BA4E] = typeof(Messages_ChannelMessages),
[0x74535F21] = typeof(Messages_MessagesNotModified), [0x74535F21] = typeof(Messages_MessagesNotModified),
[0x64FF9FD5] = typeof(Messages_Chats), [0x64FF9FD5] = typeof(Messages_Chats),
@ -1008,6 +1008,7 @@ namespace TL
[0x2E94C3E7] = typeof(WebPageAttributeStory), [0x2E94C3E7] = typeof(WebPageAttributeStory),
[0x50CC03D3] = typeof(WebPageAttributeStickerSet), [0x50CC03D3] = typeof(WebPageAttributeStickerSet),
[0xCF6F6DB8] = typeof(WebPageAttributeUniqueStarGift), [0xCF6F6DB8] = typeof(WebPageAttributeUniqueStarGift),
[0x31CAD303] = typeof(WebPageAttributeStarGiftCollection),
[0x4899484E] = typeof(Messages_VotesList), [0x4899484E] = typeof(Messages_VotesList),
[0xF568028A] = typeof(BankCardOpenUrl), [0xF568028A] = typeof(BankCardOpenUrl),
[0x3E24E573] = typeof(Payments_BankCardData), [0x3E24E573] = typeof(Payments_BankCardData),
@ -1128,7 +1129,7 @@ namespace TL
[0x4A5F5BD9] = typeof(InputInvoiceStarGiftTransfer), [0x4A5F5BD9] = typeof(InputInvoiceStarGiftTransfer),
[0xDABAB2EF] = typeof(InputInvoicePremiumGiftStars), [0xDABAB2EF] = typeof(InputInvoicePremiumGiftStars),
[0xF4997E42] = typeof(InputInvoiceBusinessBotTransferStars), [0xF4997E42] = typeof(InputInvoiceBusinessBotTransferStars),
[0x63CBC38C] = typeof(InputInvoiceStarGiftResale), [0xC39F5324] = typeof(InputInvoiceStarGiftResale),
[0xAED0CBD9] = typeof(Payments_ExportedInvoice), [0xAED0CBD9] = typeof(Payments_ExportedInvoice),
[0xCFB9D957] = typeof(Messages_TranscribedAudio), [0xCFB9D957] = typeof(Messages_TranscribedAudio),
[0x5334759C] = typeof(Help_PremiumPromo), [0x5334759C] = typeof(Help_PremiumPromo),
@ -1213,7 +1214,7 @@ namespace TL
[0x8D595CD6] = typeof(StoryViews), [0x8D595CD6] = typeof(StoryViews),
[0x51E6EE4F] = typeof(StoryItemDeleted), [0x51E6EE4F] = typeof(StoryItemDeleted),
[0xFFADC913] = typeof(StoryItemSkipped), [0xFFADC913] = typeof(StoryItemSkipped),
[0x79B26A24] = typeof(StoryItem), [0xEDF164F1] = typeof(StoryItem),
[0x1158FE3E] = typeof(Stories_AllStoriesNotModified), [0x1158FE3E] = typeof(Stories_AllStoriesNotModified),
[0x6EFC5E81] = typeof(Stories_AllStories), [0x6EFC5E81] = typeof(Stories_AllStories),
[0x63C3DD0A] = typeof(Stories_Stories), [0x63C3DD0A] = typeof(Stories_Stories),
@ -1362,7 +1363,7 @@ namespace TL
[0x94CE852A] = typeof(StarsGiveawayOption), [0x94CE852A] = typeof(StarsGiveawayOption),
[0x54236209] = typeof(StarsGiveawayWinnersOption), [0x54236209] = typeof(StarsGiveawayWinnersOption),
[0x00BCFF5B] = typeof(StarGift), [0x00BCFF5B] = typeof(StarGift),
[0xF63778AE] = typeof(StarGiftUnique), [0x3A274D50] = typeof(StarGiftUnique),
[0xA388A368] = null,//Payments_StarGiftsNotModified [0xA388A368] = null,//Payments_StarGiftsNotModified
[0x2ED82995] = typeof(Payments_StarGifts), [0x2ED82995] = typeof(Payments_StarGifts),
[0x7903E3D9] = typeof(MessageReportOption), [0x7903E3D9] = typeof(MessageReportOption),
@ -1424,6 +1425,10 @@ namespace TL
[0x9D6B13B0] = typeof(StarGiftCollection), [0x9D6B13B0] = typeof(StarGiftCollection),
[0xA0BA4F17] = null,//Payments_StarGiftCollectionsNotModified [0xA0BA4F17] = null,//Payments_StarGiftCollectionsNotModified
[0x8A2932F3] = typeof(Payments_StarGiftCollections), [0x8A2932F3] = typeof(Payments_StarGiftCollections),
[0x9325705A] = typeof(StoryAlbum),
[0x564EDAEB] = null,//Stories_AlbumsNotModified
[0xC3987A3A] = typeof(Stories_Albums),
[0x3E0B5B6A] = typeof(SearchPostsFlood),
// from TL.Secret: // from TL.Secret:
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument), [0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
[0x020DF5D0] = typeof(Layer101.MessageEntityBlockquote), [0x020DF5D0] = typeof(Layer101.MessageEntityBlockquote),
@ -1558,6 +1563,7 @@ namespace TL
[typeof(RequirementToContact)] = 0x050A9839, //requirementToContactEmpty [typeof(RequirementToContact)] = 0x050A9839, //requirementToContactEmpty
[typeof(Contacts_SponsoredPeers)] = 0xEA32B4B1, //contacts.sponsoredPeersEmpty [typeof(Contacts_SponsoredPeers)] = 0xEA32B4B1, //contacts.sponsoredPeersEmpty
[typeof(Payments_StarGiftCollections)] = 0xA0BA4F17, //payments.starGiftCollectionsNotModified [typeof(Payments_StarGiftCollections)] = 0xA0BA4F17, //payments.starGiftCollectionsNotModified
[typeof(Stories_Albums)] = 0x564EDAEB, //stories.albumsNotModified
[typeof(DecryptedMessageMedia)] = 0x089F5C4A, //decryptedMessageMediaEmpty [typeof(DecryptedMessageMedia)] = 0x089F5C4A, //decryptedMessageMediaEmpty
}; };
} }

View file

@ -13,8 +13,8 @@
<PackageId>WTelegramClient</PackageId> <PackageId>WTelegramClient</PackageId>
<Authors>Wizou</Authors> <Authors>Wizou</Authors>
<VersionPrefix>0.0.0</VersionPrefix> <VersionPrefix>0.0.0</VersionPrefix>
<VersionSuffix>layer.210</VersionSuffix> <VersionSuffix>layer.211</VersionSuffix>
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 210 <Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 211
Release Notes: Release Notes:
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description> $(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>