API Layer 200: Paid messages, details on chat partner, ...

This commit is contained in:
Wizou 2025-03-08 00:21:50 +01:00
parent e67a688baa
commit 1ecd7047ef
5 changed files with 201 additions and 69 deletions

View file

@ -1,4 +1,4 @@
[![API Layer](https://img.shields.io/badge/API_Layer-199-blueviolet)](https://corefork.telegram.org/methods)
[![API Layer](https://img.shields.io/badge/API_Layer-200-blueviolet)](https://corefork.telegram.org/methods)
[![NuGet version](https://img.shields.io/nuget/v/WTelegramClient?color=00508F)](https://www.nuget.org/packages/WTelegramClient/)
[![NuGet prerelease](https://img.shields.io/nuget/vpre/WTelegramClient?color=C09030&label=dev+nuget)](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
[![Donate](https://img.shields.io/badge/Help_this_project:-Donate-ff4444)](https://buymeacoffee.com/wizou)

View file

@ -768,7 +768,7 @@ namespace TL
public long id;
}
/// <summary>Indicates info about a certain user. <para>See <a href="https://corefork.telegram.org/constructor/user"/></para></summary>
[TLDef(0x4B46C37E)]
[TLDef(0x020B1422)]
public sealed partial class User : UserBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -812,6 +812,7 @@ namespace TL
/// <summary>Monthly Active Users (MAU) of this bot (may be absent for small bots).</summary>
[IfFlag(44)] public int bot_active_users;
[IfFlag(46)] public long bot_verification_icon;
[IfFlag(47)] public long send_paid_messages_stars;
[Flags] public enum Flags : uint
{
@ -901,6 +902,8 @@ namespace TL
bot_has_main_app = 0x2000,
/// <summary>Field <see cref="bot_verification_icon"/> has a value</summary>
has_bot_verification_icon = 0x4000,
/// <summary>Field <see cref="send_paid_messages_stars"/> has a value</summary>
has_send_paid_messages_stars = 0x8000,
}
}
@ -1071,7 +1074,7 @@ namespace TL
public override string Title => title;
}
/// <summary>Channel/supergroup info <para>See <a href="https://corefork.telegram.org/constructor/channel"/></para></summary>
[TLDef(0xE00998B7)]
[TLDef(0x7482147E)]
public sealed partial class Channel : ChatBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -1115,6 +1118,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>
[IfFlag(43)] public DateTime subscription_until_date;
[IfFlag(45)] public long bot_verification_icon;
[IfFlag(46)] public long send_paid_messages_stars;
[Flags] public enum Flags : uint
{
@ -1198,6 +1202,8 @@ namespace TL
signature_profiles = 0x1000,
/// <summary>Field <see cref="bot_verification_icon"/> has a value</summary>
has_bot_verification_icon = 0x2000,
/// <summary>Field <see cref="send_paid_messages_stars"/> has a value</summary>
has_send_paid_messages_stars = 0x4000,
}
/// <summary>ID of the channel, see <a href="https://corefork.telegram.org/api/peers#peer-id">here »</a> for more info</summary>
@ -1580,6 +1586,7 @@ namespace TL
/// <summary>Field <see cref="stargifts_count"/> has a value</summary>
has_stargifts_count = 0x40000,
stargifts_available = 0x80000,
paid_messages_available = 0x100000,
}
/// <summary>ID of the channel</summary>
@ -1757,7 +1764,7 @@ namespace TL
public override Peer Peer => peer_id;
}
/// <summary>A message <para>See <a href="https://corefork.telegram.org/constructor/message"/></para></summary>
[TLDef(0x96FDBBE9)]
[TLDef(0xEABCDD4D)]
public sealed partial class Message : MessageBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -1817,6 +1824,7 @@ namespace TL
/// <summary>Represents a <a href="https://corefork.telegram.org/api/factcheck">fact-check »</a>.</summary>
[IfFlag(35)] public FactCheck factcheck;
[IfFlag(37)] public DateTime report_delivery_until_date;
[IfFlag(38)] public long paid_message_stars;
[Flags] public enum Flags : uint
{
@ -1894,6 +1902,8 @@ namespace TL
video_processing_pending = 0x10,
/// <summary>Field <see cref="report_delivery_until_date"/> has a value</summary>
has_report_delivery_until_date = 0x20,
/// <summary>Field <see cref="paid_message_stars"/> has a value</summary>
has_paid_message_stars = 0x40,
}
/// <summary>ID of the message</summary>
@ -2742,12 +2752,14 @@ namespace TL
via_giveaway = 0x1,
/// <summary>Field <see cref="boost_peer"/> has a value</summary>
has_boost_peer = 0x2,
/// <summary>If set, the link was not <a href="https://corefork.telegram.org/api/links#premium-giftcode-links">redeemed</a> yet.</summary>
unclaimed = 0x4,
/// <summary>Fields <see cref="currency"/> and <see cref="amount"/> have a value</summary>
has_currency = 0x4,
/// <summary>Fields <see cref="crypto_currency"/> and <see cref="crypto_amount"/> have a value</summary>
has_crypto_currency = 0x8,
/// <summary>Field <see cref="message"/> has a value</summary>
has_message = 0x10,
/// <summary>If set, the link was not <a href="https://corefork.telegram.org/api/links#premium-giftcode-links">redeemed</a> yet.</summary>
unclaimed = 0x20,
}
}
/// <summary>A <a href="https://corefork.telegram.org/api/giveaways">giveaway</a> was started. <para>See <a href="https://corefork.telegram.org/constructor/messageActionGiveawayLaunch"/></para></summary>
@ -3392,7 +3404,7 @@ namespace TL
}
/// <summary>List of actions that are possible when interacting with this user, to be shown as suggested actions in the <a href="https://corefork.telegram.org/api/action-bar">chat action bar »</a>, see <a href="https://corefork.telegram.org/api/action-bar">here »</a> for more info. <para>See <a href="https://corefork.telegram.org/constructor/peerSettings"/></para></summary>
[TLDef(0xACD66C5E)]
[TLDef(0xF47741F7)]
public sealed partial class PeerSettings : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -3407,6 +3419,11 @@ namespace TL
[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>
[IfFlag(13)] public string business_bot_manage_url;
[IfFlag(14)] public long charge_paid_message_stars;
[IfFlag(15)] public string registration_month;
[IfFlag(16)] public string phone_country;
[IfFlag(17)] public DateTime name_change_date;
[IfFlag(18)] public DateTime photo_change_date;
[Flags] public enum Flags : uint
{
@ -3438,6 +3455,16 @@ namespace TL
business_bot_can_reply = 0x1000,
/// <summary>Fields <see cref="business_bot_id"/> and <see cref="business_bot_manage_url"/> have a value</summary>
has_business_bot_id = 0x2000,
/// <summary>Field <see cref="charge_paid_message_stars"/> has a value</summary>
has_charge_paid_message_stars = 0x4000,
/// <summary>Field <see cref="registration_month"/> has a value</summary>
has_registration_month = 0x8000,
/// <summary>Field <see cref="phone_country"/> has a value</summary>
has_phone_country = 0x10000,
/// <summary>Field <see cref="name_change_date"/> has a value</summary>
has_name_change_date = 0x20000,
/// <summary>Field <see cref="photo_change_date"/> has a value</summary>
has_photo_change_date = 0x40000,
}
}
@ -3538,7 +3565,7 @@ namespace TL
}
/// <summary>Extended user info <para>See <a href="https://corefork.telegram.org/constructor/userFull"/></para></summary>
[TLDef(0x4D975BBC)]
[TLDef(0xD2234EA0)]
public sealed partial class UserFull : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -3577,8 +3604,6 @@ namespace TL
[IfFlag(17)] public ChatAdminRights bot_group_admin_rights;
/// <summary>A <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">suggested set of administrator rights</a> for the bot, to be shown when adding the bot as admin to a channel, see <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">here for more info on how to handle them »</a>.</summary>
[IfFlag(18)] public ChatAdminRights bot_broadcast_admin_rights;
/// <summary>Telegram Premium subscriptions gift options</summary>
[IfFlag(19)] public PremiumGiftOption[] premium_gifts;
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> to use in the private chat with the user.</summary>
[IfFlag(24)] public WallPaperBase wallpaper;
/// <summary>Active <a href="https://corefork.telegram.org/api/stories">stories »</a></summary>
@ -3604,6 +3629,7 @@ namespace TL
/// <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(44)] public BotVerification bot_verification;
[IfFlag(46)] public long send_paid_messages_stars;
[Flags] public enum Flags : uint
{
@ -3639,8 +3665,6 @@ namespace TL
has_bot_group_admin_rights = 0x20000,
/// <summary>Field <see cref="bot_broadcast_admin_rights"/> has a value</summary>
has_bot_broadcast_admin_rights = 0x40000,
/// <summary>Field <see cref="premium_gifts"/> has a value</summary>
has_premium_gifts = 0x80000,
/// <summary>Whether this user doesn't allow sending voice messages in a private chat with them</summary>
voice_messages_forbidden = 0x100000,
/// <summary>Field <see cref="personal_photo"/> has a value</summary>
@ -3693,6 +3717,8 @@ namespace TL
has_starref_program = 0x800,
/// <summary>Field <see cref="bot_verification"/> has a value</summary>
has_bot_verification = 0x1000,
/// <summary>Field <see cref="send_paid_messages_stars"/> has a value</summary>
has_send_paid_messages_stars = 0x4000,
}
}
@ -6904,6 +6930,8 @@ namespace TL
Birthday = 0xD65A11CC,
///<summary>Whether received <a href="https://corefork.telegram.org/api/gifts">gifts</a> will be automatically displayed on our profile</summary>
StarGiftsAutoSave = 0xE1732341,
///<summary>See <a href="https://corefork.telegram.org/constructor/inputPrivacyKeyNoPaidMessages"/></summary>
NoPaidMessages = 0xBDC597B4,
}
/// <summary>Privacy <strong>keys</strong> together with <a href="https://corefork.telegram.org/api/privacy#privacy-rules">privacy rules »</a> indicate <em>what</em> can or can't someone do and are specified by a <see cref="PrivacyKey"/> constructor, and its input counterpart <see cref="InputPrivacyKey"/>. <para>See <a href="https://corefork.telegram.org/type/PrivacyKey"/></para></summary>
@ -6933,6 +6961,8 @@ namespace TL
Birthday = 0x2000A518,
///<summary>Whether received <a href="https://corefork.telegram.org/api/gifts">gifts</a> will be automatically displayed on our profile</summary>
StarGiftsAutoSave = 0x2CA4FDF8,
///<summary>See <a href="https://corefork.telegram.org/constructor/privacyKeyNoPaidMessages"/></summary>
NoPaidMessages = 0x17D348D2,
}
/// <summary>Privacy <strong>rules</strong> indicate <em>who</em> can or can't do something and are specified by a <see cref="PrivacyRule"/>, and its input counterpart <see cref="InputPrivacyRule"/>. <para>See <a href="https://corefork.telegram.org/type/InputPrivacyRule"/></para> <para>Derived classes: <see cref="InputPrivacyValueAllowContacts"/>, <see cref="InputPrivacyValueAllowAll"/>, <see cref="InputPrivacyValueAllowUsers"/>, <see cref="InputPrivacyValueDisallowContacts"/>, <see cref="InputPrivacyValueDisallowAll"/>, <see cref="InputPrivacyValueDisallowUsers"/>, <see cref="InputPrivacyValueAllowChatParticipants"/>, <see cref="InputPrivacyValueDisallowChatParticipants"/>, <see cref="InputPrivacyValueAllowCloseFriends"/>, <see cref="InputPrivacyValueAllowPremium"/>, <see cref="InputPrivacyValueAllowBots"/>, <see cref="InputPrivacyValueDisallowBots"/></para></summary>
@ -14454,11 +14484,12 @@ namespace TL
}
/// <summary>Global privacy settings <para>See <a href="https://corefork.telegram.org/constructor/globalPrivacySettings"/></para></summary>
[TLDef(0x734C4CCB)]
[TLDef(0xC9D8DF1C)]
public sealed partial class GlobalPrivacySettings : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
[IfFlag(5)] public long noncontact_peers_paid_stars;
[Flags] public enum Flags : uint
{
@ -14472,6 +14503,8 @@ namespace TL
hide_read_marks = 0x8,
/// <summary>If set, only users that have a premium account, are in our contact list, or already have a private chat with us can write to us; a <c>403 PRIVACY_PREMIUM_REQUIRED</c> error will be emitted otherwise. <br/>The <see cref="UserFull"/>.<c>contact_require_premium</c> flag will be set for users that have this flag enabled. <br/>To check whether we can write to a user with this flag enabled, if we haven't yet cached all the required information (for example we don't have the <see cref="UserFull"/> or history of all users while displaying the chat list in the sharing UI) the <see cref="SchemaExtensions.Users_GetIsPremiumRequiredToContact">Users_GetIsPremiumRequiredToContact</see> method may be invoked, passing the list of users currently visible in the UI, returning a list of booleans that directly specify whether we can or cannot write to each user. <br/>This option may be enabled by both non-<a href="https://corefork.telegram.org/api/premium">Premium</a> and <a href="https://corefork.telegram.org/api/premium">Premium</a> users only if the <a href="https://corefork.telegram.org/api/config#new-noncontact-peers-require-premium-without-ownpremium">new_noncontact_peers_require_premium_without_ownpremium client configuration flag »</a> is equal to true, otherwise it may be enabled only by <a href="https://corefork.telegram.org/api/premium">Premium</a> users and non-Premium users will receive a <c>PREMIUM_ACCOUNT_REQUIRED</c> error when trying to enable this flag.</summary>
new_noncontact_peers_require_premium = 0x10,
/// <summary>Field <see cref="noncontact_peers_paid_stars"/> has a value</summary>
has_noncontact_peers_paid_stars = 0x20,
}
}
@ -15865,6 +15898,20 @@ namespace TL
public InputSavedStarGift stargift;
public InputPeer to_id;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputInvoicePremiumGiftStars"/></para></summary>
[TLDef(0xDABAB2EF)]
public sealed partial class InputInvoicePremiumGiftStars : InputInvoice
{
public Flags flags;
public InputUserBase user_id;
public int months;
[IfFlag(0)] public TextWithEntities message;
[Flags] public enum Flags : uint
{
has_message = 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>
[TLDef(0xAED0CBD9)]
@ -16072,30 +16119,6 @@ namespace TL
}
}
/// <summary>Telegram Premium gift option <para>See <a href="https://corefork.telegram.org/constructor/premiumGiftOption"/></para></summary>
[TLDef(0x74C34319)]
public sealed partial class PremiumGiftOption : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
/// <summary>Duration of gifted Telegram Premium subscription</summary>
public int months;
/// <summary>Three-letter ISO 4217 <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a> code</summary>
public string currency;
/// <summary>Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
public long amount;
/// <summary>An <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link »</a> to an invoice for in-app payment, using the official Premium bot; may be empty if direct payment isn't available.</summary>
public string bot_url;
/// <summary>An identifier for the App Store/Play Store product associated with the Premium gift.</summary>
[IfFlag(0)] public string store_product;
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="store_product"/> has a value</summary>
has_store_product = 0x1,
}
}
/// <summary>Represents an additional payment method <para>See <a href="https://corefork.telegram.org/constructor/paymentFormMethod"/></para></summary>
[TLDef(0x88F8F21B)]
public sealed partial class PaymentFormMethod : IObject
@ -19349,7 +19372,7 @@ namespace TL
}
/// <summary>Represents a <a href="https://corefork.telegram.org/api/stars">Telegram Stars transaction »</a>. <para>See <a href="https://corefork.telegram.org/constructor/starsTransaction"/></para></summary>
[TLDef(0x64DFC926)]
[TLDef(0xA39FD94A)]
public sealed partial class StarsTransaction : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -19392,6 +19415,8 @@ namespace TL
[IfFlag(17)] public Peer starref_peer;
/// <summary>For transactions made by <a href="https://corefork.telegram.org/api/bots/referrals">referred users</a>, the amount of Telegram Stars received by the affiliate, can be negative for refunds.</summary>
[IfFlag(17)] public StarsAmount starref_amount;
[IfFlag(19)] public int paid_messages;
[IfFlag(20)] public int premium_gift_months;
[Flags] public enum Flags : uint
{
@ -19432,6 +19457,10 @@ namespace TL
/// <summary>Fields <see cref="starref_peer"/> and <see cref="starref_amount"/> have a value</summary>
has_starref_peer = 0x20000,
stargift_upgrade = 0x40000,
/// <summary>Field <see cref="paid_messages"/> has a value</summary>
has_paid_messages = 0x80000,
/// <summary>Field <see cref="premium_gift_months"/> has a value</summary>
has_premium_gift_months = 0x100000,
}
}
@ -20256,6 +20285,7 @@ namespace TL
refunded = 0x200,
can_upgrade = 0x400,
has_saved_id = 0x800,
pinned_to_top = 0x1000,
}
}
@ -20315,4 +20345,24 @@ namespace TL
{
public InputPeer peer;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/account.paidMessagesRevenue"/></para></summary>
[TLDef(0x1E109708)]
public sealed partial class Account_PaidMessagesRevenue : IObject
{
public long stars_amount;
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/RequirementToContact"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/requirementToContactEmpty">requirementToContactEmpty</a></remarks>
public abstract partial class RequirementToContact : IObject { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/requirementToContactPremium"/></para></summary>
[TLDef(0xE581E4E9)]
public sealed partial class RequirementToContactPremium : RequirementToContact { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/requirementToContactPaidMessages"/></para></summary>
[TLDef(0xB4F67E93)]
public sealed partial class RequirementToContactPaidMessages : RequirementToContact
{
public long stars_amount;
}
}

View file

@ -1433,6 +1433,21 @@ namespace TL
hash = hash,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.addNoPaidMessagesException"/></para></summary>
public static Task<bool> Account_AddNoPaidMessagesException(this Client client, InputUserBase user_id, bool refund_charged = false)
=> client.Invoke(new Account_AddNoPaidMessagesException
{
flags = (Account_AddNoPaidMessagesException.Flags)(refund_charged ? 0x1 : 0),
user_id = user_id,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.getPaidMessagesRevenue"/></para></summary>
public static Task<Account_PaidMessagesRevenue> Account_GetPaidMessagesRevenue(this Client client, InputUserBase user_id)
=> client.Invoke(new Account_GetPaidMessagesRevenue
{
user_id = user_id,
});
/// <summary>Returns basic user info according to their identifiers. <para>See <a href="https://corefork.telegram.org/method/users.getUsers"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/users.getUsers#possible-errors">details</a>)</para></summary>
/// <param name="id">List of user identifiers</param>
public static Task<UserBase[]> Users_GetUsers(this Client client, params InputUserBase[] id)
@ -1459,10 +1474,9 @@ namespace TL
errors = errors,
});
/// <summary>Check whether we can write to the specified user (this method can only be called by non-<a href="https://corefork.telegram.org/api/premium">Premium</a> users), see <a href="https://corefork.telegram.org/api/privacy#require-premium-for-new-non-contact-users">here »</a> for more info on the full flow. <para>See <a href="https://corefork.telegram.org/method/users.getIsPremiumRequiredToContact"/></para></summary>
/// <param name="id">Users to fetch info about.</param>
public static Task<bool[]> Users_GetIsPremiumRequiredToContact(this Client client, params InputUserBase[] id)
=> client.Invoke(new Users_GetIsPremiumRequiredToContact
/// <summary><para>See <a href="https://corefork.telegram.org/method/users.getRequirementsToContact"/></para></summary>
public static Task<RequirementToContact[]> Users_GetRequirementsToContact(this Client client, params InputUserBase[] id)
=> client.Invoke(new Users_GetRequirementsToContact
{
id = id,
});
@ -1880,10 +1894,10 @@ namespace TL
/// <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="effect">Specifies a <a href="https://corefork.telegram.org/api/effects">message effect »</a> to use for 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, 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, 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) | (allow_paid_floodskip ? 0x80000 : 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) | (allow_paid_stars != null ? 0x200000 : 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,6 +1908,7 @@ namespace TL
send_as = send_as,
quick_reply_shortcut = quick_reply_shortcut,
effect = effect ?? default,
allow_paid_stars = allow_paid_stars ?? default,
});
/// <summary>Send a media <para>See <a href="https://corefork.telegram.org/method/messages.sendMedia"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403,406,420,500 (<a href="https://corefork.telegram.org/method/messages.sendMedia#possible-errors">details</a>)</para></summary>
@ -1915,10 +1930,10 @@ namespace TL
/// <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="effect">Specifies a <a href="https://corefork.telegram.org/api/effects">message effect »</a> to use for 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, 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, 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) | (allow_paid_floodskip ? 0x80000 : 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) | (allow_paid_stars != null ? 0x200000 : 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,
@ -1930,6 +1945,7 @@ namespace TL
send_as = send_as,
quick_reply_shortcut = quick_reply_shortcut,
effect = effect ?? default,
allow_paid_stars = allow_paid_stars ?? default,
});
/// <summary>Forwards messages by their IDs. <para>See <a href="https://corefork.telegram.org/method/messages.forwardMessages"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403,406,420,500 (<a href="https://corefork.telegram.org/method/messages.forwardMessages#possible-errors">details</a>)</para></summary>
@ -1948,10 +1964,10 @@ namespace TL
/// <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="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>
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, 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, 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) | (video_timestamp != null ? 0x100000 : 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)),
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) | (video_timestamp != null ? 0x100000 : 0) | (allow_paid_stars != null ? 0x200000 : 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,
@ -1961,6 +1977,7 @@ namespace TL
send_as = send_as,
quick_reply_shortcut = quick_reply_shortcut,
video_timestamp = video_timestamp ?? default,
allow_paid_stars = allow_paid_stars ?? default,
});
/// <summary>Report a new incoming chat for spam, if the <see cref="PeerSettings"/> of the chat allow us to do that <para>See <a href="https://corefork.telegram.org/method/messages.reportSpam"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.reportSpam#possible-errors">details</a>)</para></summary>
@ -2458,10 +2475,10 @@ namespace TL
/// <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="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>
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, 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
{
flags = (Messages_SendInlineBotResult.Flags)((reply_to != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (hide_via ? 0x800 : 0)),
flags = (Messages_SendInlineBotResult.Flags)((reply_to != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (allow_paid_stars != null ? 0x200000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (hide_via ? 0x800 : 0)),
peer = peer,
reply_to = reply_to,
random_id = random_id,
@ -2470,6 +2487,7 @@ namespace TL
schedule_date = schedule_date ?? default,
send_as = send_as,
quick_reply_shortcut = quick_reply_shortcut,
allow_paid_stars = allow_paid_stars ?? default,
});
/// <summary>Find out if a media message's caption can be edited <para>See <a href="https://corefork.telegram.org/method/messages.getMessageEditData"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.getMessageEditData#possible-errors">details</a>)</para></summary>
@ -2905,10 +2923,10 @@ namespace TL
/// <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="effect">Specifies a <a href="https://corefork.telegram.org/api/effects">message effect »</a> to use for 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, 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
{
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)),
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) | (allow_paid_stars != null ? 0x200000 : 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,
@ -2916,6 +2934,7 @@ namespace TL
send_as = send_as,
quick_reply_shortcut = quick_reply_shortcut,
effect = effect ?? default,
allow_paid_stars = allow_paid_stars ?? default,
});
/// <summary>Upload encrypted file and associate it to a secret chat <para>See <a href="https://corefork.telegram.org/method/messages.uploadEncryptedFile"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.uploadEncryptedFile#possible-errors">details</a>)</para></summary>
@ -5558,6 +5577,14 @@ namespace TL
limit = limit,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.updatePaidMessagesPrice"/></para></summary>
public static Task<UpdatesBase> Channels_UpdatePaidMessagesPrice(this Client client, InputChannelBase channel, long send_paid_messages_stars)
=> client.Invoke(new Channels_UpdatePaidMessagesPrice
{
channel = channel,
send_paid_messages_stars = send_paid_messages_stars,
});
/// <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="params_">JSON-serialized method parameters</param>
@ -6331,6 +6358,14 @@ namespace TL
peer = peer,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.toggleStarGiftsPinnedToTop"/></para></summary>
public static Task<bool> Payments_ToggleStarGiftsPinnedToTop(this Client client, InputPeer peer, params InputSavedStarGift[] stargift)
=> client.Invoke(new Payments_ToggleStarGiftsPinnedToTop
{
peer = peer,
stargift = stargift,
});
/// <summary>Create a stickerset. <para>See <a href="https://corefork.telegram.org/method/stickers.createStickerSet"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.createStickerSet#possible-errors">details</a>)</para></summary>
/// <param name="masks">Whether this is a mask stickerset</param>
/// <param name="emojis">Whether this is a <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji</a> stickerset.</param>
@ -8663,6 +8698,24 @@ namespace TL.Methods
public long hash;
}
[TLDef(0x6F688AA7)]
public sealed partial class Account_AddNoPaidMessagesException : IMethod<bool>
{
public Flags flags;
public InputUserBase user_id;
[Flags] public enum Flags : uint
{
refund_charged = 0x1,
}
}
[TLDef(0xF1266F38)]
public sealed partial class Account_GetPaidMessagesRevenue : IMethod<Account_PaidMessagesRevenue>
{
public InputUserBase user_id;
}
[TLDef(0x0D91A548)]
public sealed partial class Users_GetUsers : IMethod<UserBase[]>
{
@ -8682,8 +8735,8 @@ namespace TL.Methods
public SecureValueErrorBase[] errors;
}
[TLDef(0xA622AA10)]
public sealed partial class Users_GetIsPremiumRequiredToContact : IMethod<bool[]>
[TLDef(0xD89A83A3)]
public sealed partial class Users_GetRequirementsToContact : IMethod<RequirementToContact[]>
{
public InputUserBase[] id;
}
@ -9028,7 +9081,7 @@ namespace TL.Methods
}
}
[TLDef(0x983F9745)]
[TLDef(0xFBF2340A)]
public sealed partial class Messages_SendMessage : IMethod<UpdatesBase>
{
public Flags flags;
@ -9042,6 +9095,7 @@ namespace TL.Methods
[IfFlag(13)] public InputPeer send_as;
[IfFlag(17)] public InputQuickReplyShortcutBase quick_reply_shortcut;
[IfFlag(18)] public long effect;
[IfFlag(21)] public long allow_paid_stars;
[Flags] public enum Flags : uint
{
@ -9060,10 +9114,11 @@ namespace TL.Methods
has_quick_reply_shortcut = 0x20000,
has_effect = 0x40000,
allow_paid_floodskip = 0x80000,
has_allow_paid_stars = 0x200000,
}
}
[TLDef(0x7852834E)]
[TLDef(0xA550CD78)]
public sealed partial class Messages_SendMedia : IMethod<UpdatesBase>
{
public Flags flags;
@ -9078,6 +9133,7 @@ namespace TL.Methods
[IfFlag(13)] public InputPeer send_as;
[IfFlag(17)] public InputQuickReplyShortcutBase quick_reply_shortcut;
[IfFlag(18)] public long effect;
[IfFlag(21)] public long allow_paid_stars;
[Flags] public enum Flags : uint
{
@ -9095,10 +9151,11 @@ namespace TL.Methods
has_quick_reply_shortcut = 0x20000,
has_effect = 0x40000,
allow_paid_floodskip = 0x80000,
has_allow_paid_stars = 0x200000,
}
}
[TLDef(0x6D74DA08)]
[TLDef(0xBB9FA475)]
public sealed partial class Messages_ForwardMessages : IMethod<UpdatesBase>
{
public Flags flags;
@ -9111,6 +9168,7 @@ namespace TL.Methods
[IfFlag(13)] public InputPeer send_as;
[IfFlag(17)] public InputQuickReplyShortcutBase quick_reply_shortcut;
[IfFlag(20)] public int video_timestamp;
[IfFlag(21)] public long allow_paid_stars;
[Flags] public enum Flags : uint
{
@ -9126,6 +9184,7 @@ namespace TL.Methods
has_quick_reply_shortcut = 0x20000,
allow_paid_floodskip = 0x80000,
has_video_timestamp = 0x100000,
has_allow_paid_stars = 0x200000,
}
}
@ -9519,7 +9578,7 @@ namespace TL.Methods
}
}
[TLDef(0x3EBEE86A)]
[TLDef(0xC0CF7646)]
public sealed partial class Messages_SendInlineBotResult : IMethod<UpdatesBase>
{
public Flags flags;
@ -9531,6 +9590,7 @@ namespace TL.Methods
[IfFlag(10)] public DateTime schedule_date;
[IfFlag(13)] public InputPeer send_as;
[IfFlag(17)] public InputQuickReplyShortcutBase quick_reply_shortcut;
[IfFlag(21)] public long allow_paid_stars;
[Flags] public enum Flags : uint
{
@ -9542,6 +9602,7 @@ namespace TL.Methods
hide_via = 0x800,
has_send_as = 0x2000,
has_quick_reply_shortcut = 0x20000,
has_allow_paid_stars = 0x200000,
}
}
@ -9933,7 +9994,7 @@ namespace TL.Methods
public long hash;
}
[TLDef(0x37B74355)]
[TLDef(0x1BF89D74)]
public sealed partial class Messages_SendMultiMedia : IMethod<UpdatesBase>
{
public Flags flags;
@ -9944,6 +10005,7 @@ namespace TL.Methods
[IfFlag(13)] public InputPeer send_as;
[IfFlag(17)] public InputQuickReplyShortcutBase quick_reply_shortcut;
[IfFlag(18)] public long effect;
[IfFlag(21)] public long allow_paid_stars;
[Flags] public enum Flags : uint
{
@ -9959,6 +10021,7 @@ namespace TL.Methods
has_quick_reply_shortcut = 0x20000,
has_effect = 0x40000,
allow_paid_floodskip = 0x80000,
has_allow_paid_stars = 0x200000,
}
}
@ -12102,6 +12165,13 @@ namespace TL.Methods
public int limit;
}
[TLDef(0xFC84653F)]
public sealed partial class Channels_UpdatePaidMessagesPrice : IMethod<UpdatesBase>
{
public InputChannelBase channel;
public long send_paid_messages_stars;
}
[TLDef(0xAA2769ED)]
public sealed partial class Bots_SendCustomRequest : IMethod<DataJSON>
{
@ -12774,6 +12844,13 @@ namespace TL.Methods
}
}
[TLDef(0x1513E7B0)]
public sealed partial class Payments_ToggleStarGiftsPinnedToTop : IMethod<bool>
{
public InputPeer peer;
public InputSavedStarGift[] stargift;
}
[TLDef(0x9021AB67)]
public sealed partial class Stickers_CreateStickerSet : IMethod<Messages_StickerSet>
{

View file

@ -6,7 +6,7 @@ namespace TL
{
public static partial class Layer
{
public const int Version = 199; // fetched 13/02/2025 13:06:03
public const int Version = 200; // fetched 07/03/2025 23:09:37
internal const int SecretChats = 144;
internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415;
@ -124,7 +124,7 @@ namespace TL
[0x36C6019A] = typeof(PeerChat),
[0xA2A5371E] = typeof(PeerChannel),
[0xD3BC4B7A] = typeof(UserEmpty),
[0x4B46C37E] = typeof(User),
[0x020B1422] = typeof(User),
[0x4F11BAE1] = null,//UserProfilePhotoEmpty
[0x82D1F706] = typeof(UserProfilePhoto),
[0x09D05049] = null,//UserStatusEmpty
@ -136,7 +136,7 @@ namespace TL
[0x29562865] = typeof(ChatEmpty),
[0x41CBF256] = typeof(Chat),
[0x6592A1A7] = typeof(ChatForbidden),
[0xE00998B7] = typeof(Channel),
[0x7482147E] = typeof(Channel),
[0x17D493D5] = typeof(ChannelForbidden),
[0x2633421B] = typeof(ChatFull),
[0x52D6806B] = typeof(ChannelFull),
@ -148,7 +148,7 @@ namespace TL
[0x37C1011C] = null,//ChatPhotoEmpty
[0x1C6E1C11] = typeof(ChatPhoto),
[0x90A6CA84] = typeof(MessageEmpty),
[0x96FDBBE9] = typeof(Message),
[0xEABCDD4D] = typeof(Message),
[0xD3D28540] = typeof(MessageService),
[0x3DED6320] = null,//MessageMediaEmpty
[0x695150D7] = typeof(MessageMediaPhoto),
@ -239,10 +239,10 @@ namespace TL
[0x5C467992] = typeof(InputNotifyForumTopic),
[0xCACB6AE2] = typeof(InputPeerNotifySettings),
[0x99622C0C] = typeof(PeerNotifySettings),
[0xACD66C5E] = typeof(PeerSettings),
[0xF47741F7] = typeof(PeerSettings),
[0xA437C3ED] = typeof(WallPaper),
[0xE0804116] = typeof(WallPaperNoFile),
[0x4D975BBC] = typeof(UserFull),
[0xD2234EA0] = typeof(UserFull),
[0x145ADE0B] = typeof(Contact),
[0xC13E3C50] = typeof(ImportedContact),
[0x16D9703B] = typeof(ContactStatus),
@ -1013,7 +1013,7 @@ namespace TL
[0xD7584C87] = typeof(StatsGroupTopAdmin),
[0x535F779D] = typeof(StatsGroupTopInviter),
[0xEF7FF916] = typeof(Stats_MegagroupStats),
[0x734C4CCB] = typeof(GlobalPrivacySettings),
[0xC9D8DF1C] = typeof(GlobalPrivacySettings),
[0x4203C5EF] = typeof(Help_CountryCode),
[0xC3878E23] = typeof(Help_Country),
[0x93CC1F32] = null,//Help_CountriesListNotModified
@ -1106,6 +1106,7 @@ namespace TL
[0xE8625E92] = typeof(InputInvoiceStarGift),
[0x4D818D5D] = typeof(InputInvoiceStarGiftUpgrade),
[0x4A5F5BD9] = typeof(InputInvoiceStarGiftTransfer),
[0xDABAB2EF] = typeof(InputInvoicePremiumGiftStars),
[0xAED0CBD9] = typeof(Payments_ExportedInvoice),
[0xCFB9D957] = typeof(Messages_TranscribedAudio),
[0x5334759C] = typeof(Help_PremiumPromo),
@ -1116,7 +1117,6 @@ namespace TL
[0xDDDD0F56] = typeof(InputStorePaymentStarsTopup),
[0x1D741EF7] = typeof(InputStorePaymentStarsGift),
[0x751F08FA] = typeof(InputStorePaymentStarsGiveaway),
[0x74C34319] = typeof(PremiumGiftOption),
[0x88F8F21B] = typeof(PaymentFormMethod),
[0x2DE11AAE] = null,//EmojiStatusEmpty
[0xE7FF068A] = typeof(EmojiStatus),
@ -1324,7 +1324,7 @@ namespace TL
[0x60682812] = typeof(StarsTransactionPeerAds),
[0xF9677AAD] = typeof(StarsTransactionPeerAPI),
[0x0BD915C0] = typeof(StarsTopupOption),
[0x64DFC926] = typeof(StarsTransaction),
[0xA39FD94A] = typeof(StarsTransaction),
[0x6C9CE8ED] = typeof(Payments_StarsStatus),
[0xE87ACBC0] = typeof(FoundStory),
[0xE2DE7737] = typeof(Stories_FoundStories),
@ -1380,6 +1380,10 @@ namespace TL
[0x206AD49E] = null,//PaidReactionPrivacyDefault
[0x1F0C1AD9] = typeof(PaidReactionPrivacyAnonymous),
[0xDC6CFCF0] = typeof(PaidReactionPrivacyPeer),
[0x1E109708] = typeof(Account_PaidMessagesRevenue),
[0x050A9839] = null,//RequirementToContactEmpty
[0xE581E4E9] = typeof(RequirementToContactPremium),
[0xB4F67E93] = typeof(RequirementToContactPaidMessages),
// from TL.Secret:
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
[0x020DF5D0] = typeof(Layer101.MessageEntityBlockquote),
@ -1511,6 +1515,7 @@ namespace TL
[typeof(Messages_AvailableEffects)] = 0xD1ED9A5B, //messages.availableEffectsNotModified
[typeof(Payments_StarGifts)] = 0xA388A368, //payments.starGiftsNotModified
[typeof(PaidReactionPrivacy)] = 0x206AD49E, //paidReactionPrivacyDefault
[typeof(RequirementToContact)] = 0x050A9839, //requirementToContactEmpty
[typeof(DecryptedMessageMedia)] = 0x089F5C4A, //decryptedMessageMediaEmpty
};
}

View file

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