mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
API Layer 186: star subscriptions, Super Channels, paid reactions, ...
This commit is contained in:
parent
dea7691075
commit
aef4fb795a
|
|
@ -1,4 +1,4 @@
|
|||
[](https://corefork.telegram.org/methods)
|
||||
[](https://corefork.telegram.org/methods)
|
||||
[](https://www.nuget.org/packages/WTelegramClient/)
|
||||
[](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
|
||||
[](https://www.buymeacoffee.com/wizou)
|
||||
|
|
|
|||
165
src/TL.Schema.cs
165
src/TL.Schema.cs
|
|
@ -130,15 +130,7 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>Defines a file uploaded by the client. <para>See <a href="https://corefork.telegram.org/type/InputFile"/></para> <para>Derived classes: <see cref="InputFile"/>, <see cref="InputFileBig"/>, <see cref="InputFileStoryDocument"/></para></summary>
|
||||
public abstract partial class InputFileBase : IObject
|
||||
{
|
||||
/// <summary>Random file identifier created by the client</summary>
|
||||
public abstract long ID { get; set; }
|
||||
/// <summary>Number of parts saved</summary>
|
||||
public abstract int Parts { get; set; }
|
||||
/// <summary>Full name of the file</summary>
|
||||
public abstract string Name { get; set; }
|
||||
}
|
||||
public abstract partial class InputFileBase : IObject { }
|
||||
/// <summary>Defines a file saved in parts using the method <see cref="SchemaExtensions.Upload_SaveFilePart">Upload_SaveFilePart</see>. <para>See <a href="https://corefork.telegram.org/constructor/inputFile"/></para></summary>
|
||||
[TLDef(0xF52FF27F)]
|
||||
public sealed partial class InputFile : InputFileBase
|
||||
|
|
@ -151,13 +143,6 @@ namespace TL
|
|||
public string name;
|
||||
/// <summary>In case the file's <a href="https://en.wikipedia.org/wiki/MD5#MD5_hashes">md5-hash</a> was passed, contents of the file will be checked prior to use</summary>
|
||||
public string md5_checksum;
|
||||
|
||||
/// <summary>Random file identifier created by the client</summary>
|
||||
public override long ID { get => id; set => id = value; }
|
||||
/// <summary>Number of parts saved</summary>
|
||||
public override int Parts { get => parts; set => parts = value; }
|
||||
/// <summary>Full name of the file</summary>
|
||||
public override string Name { get => name; set => name = value; }
|
||||
}
|
||||
/// <summary>Assigns a big file (over 10 MB in size), saved in part using the method <see cref="SchemaExtensions.Upload_SaveBigFilePart">Upload_SaveBigFilePart</see>. <para>See <a href="https://corefork.telegram.org/constructor/inputFileBig"/></para></summary>
|
||||
[TLDef(0xFA4F0BB5)]
|
||||
|
|
@ -169,13 +154,13 @@ namespace TL
|
|||
public int parts;
|
||||
/// <summary>Full file name</summary>
|
||||
public string name;
|
||||
|
||||
/// <summary>Random file id, created by the client</summary>
|
||||
public override long ID { get => id; set => id = value; }
|
||||
/// <summary>Number of parts saved</summary>
|
||||
public override int Parts { get => parts; set => parts = value; }
|
||||
/// <summary>Full file name</summary>
|
||||
public override string Name { get => name; set => name = value; }
|
||||
}
|
||||
/// <summary>Used to <a href="https://corefork.telegram.org/api/stories#editing-stories">edit the thumbnail/static preview of a story, see here »</a> for more info on the full flow. <para>See <a href="https://corefork.telegram.org/constructor/inputFileStoryDocument"/></para></summary>
|
||||
[TLDef(0x62DC8B48)]
|
||||
public sealed partial class InputFileStoryDocument : InputFileBase
|
||||
{
|
||||
/// <summary>The old story video.</summary>
|
||||
public InputDocument id;
|
||||
}
|
||||
|
||||
/// <summary>Defines media content of a message. <para>See <a href="https://corefork.telegram.org/type/InputMedia"/></para> <para>Derived classes: <see cref="InputMediaUploadedPhoto"/>, <see cref="InputMediaPhoto"/>, <see cref="InputMediaGeoPoint"/>, <see cref="InputMediaContact"/>, <see cref="InputMediaUploadedDocument"/>, <see cref="InputMediaDocument"/>, <see cref="InputMediaVenue"/>, <see cref="InputMediaPhotoExternal"/>, <see cref="InputMediaDocumentExternal"/>, <see cref="InputMediaGame"/>, <see cref="InputMediaInvoice"/>, <see cref="InputMediaGeoLive"/>, <see cref="InputMediaPoll"/>, <see cref="InputMediaDice"/>, <see cref="InputMediaStory"/>, <see cref="InputMediaWebPage"/>, <see cref="InputMediaPaidMedia"/></para></summary>
|
||||
|
|
@ -1055,7 +1040,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(0x0AADFC8F)]
|
||||
[TLDef(0xFE4478BD)]
|
||||
public sealed partial class Channel : ChatBase
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -1096,6 +1081,7 @@ namespace TL
|
|||
[IfFlag(41)] public EmojiStatus emoji_status;
|
||||
/// <summary><a href="https://corefork.telegram.org/api/boost">Boost level</a>. <br/>Changes to this flag should invalidate the local <see cref="ChannelFull"/> cache for this channel/supergroup ID, see <a href="https://corefork.telegram.org/api/peers#full-info-database">here »</a> for more info.</summary>
|
||||
[IfFlag(42)] public int level;
|
||||
[IfFlag(43)] public DateTime subscription_until_date;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -1173,6 +1159,9 @@ namespace TL
|
|||
has_emoji_status = 0x200,
|
||||
/// <summary>Field <see cref="level"/> has a value</summary>
|
||||
has_level = 0x400,
|
||||
/// <summary>Field <see cref="subscription_until_date"/> has a value</summary>
|
||||
has_subscription_until_date = 0x800,
|
||||
signature_profiles = 0x1000,
|
||||
}
|
||||
|
||||
/// <summary>ID of the channel, see <a href="https://corefork.telegram.org/api/peers#peer-id">here »</a> for more info</summary>
|
||||
|
|
@ -1546,6 +1535,7 @@ namespace TL
|
|||
paid_media_allowed = 0x4000,
|
||||
/// <summary>If set, this user can view <a href="https://corefork.telegram.org/api/stars#revenue-statistics">Telegram Star revenue statistics »</a> for this channel.</summary>
|
||||
can_view_stars_revenue = 0x8000,
|
||||
paid_reactions_available = 0x10000,
|
||||
}
|
||||
|
||||
/// <summary>ID of the channel</summary>
|
||||
|
|
@ -7297,7 +7287,7 @@ namespace TL
|
|||
/// <summary>Exported chat invite <para>See <a href="https://corefork.telegram.org/type/ExportedChatInvite"/></para> <para>Derived classes: <see cref="ChatInviteExported"/>, <see cref="ChatInvitePublicJoinRequests"/></para></summary>
|
||||
public abstract partial class ExportedChatInvite : IObject { }
|
||||
/// <summary>Exported chat invite <para>See <a href="https://corefork.telegram.org/constructor/chatInviteExported"/></para></summary>
|
||||
[TLDef(0x0AB4A819)]
|
||||
[TLDef(0xA22CBD96)]
|
||||
public sealed partial class ChatInviteExported : ExportedChatInvite
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -7318,8 +7308,10 @@ namespace TL
|
|||
[IfFlag(3)] public int usage;
|
||||
/// <summary>Number of users that have already used this link to join</summary>
|
||||
[IfFlag(7)] public int requested;
|
||||
[IfFlag(10)] public int subscription_expired;
|
||||
/// <summary>Custom description for the invite link, visible only to admins</summary>
|
||||
[IfFlag(8)] public string title;
|
||||
[IfFlag(9)] public StarsSubscriptionPricing subscription_pricing;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -7341,6 +7333,10 @@ namespace TL
|
|||
has_requested = 0x80,
|
||||
/// <summary>Field <see cref="title"/> has a value</summary>
|
||||
has_title = 0x100,
|
||||
/// <summary>Field <see cref="subscription_pricing"/> has a value</summary>
|
||||
has_subscription_pricing = 0x200,
|
||||
/// <summary>Field <see cref="subscription_expired"/> has a value</summary>
|
||||
has_subscription_expired = 0x400,
|
||||
}
|
||||
}
|
||||
/// <summary>Used in updates and in the channel log to indicate when a user is requesting to join or has joined a <a href="https://corefork.telegram.org/api/discussion#requiring-users-to-join-the-group">discussion group</a> <para>See <a href="https://corefork.telegram.org/constructor/chatInvitePublicJoinRequests"/></para></summary>
|
||||
|
|
@ -7357,7 +7353,7 @@ namespace TL
|
|||
public ChatBase chat;
|
||||
}
|
||||
/// <summary>Chat invite info <para>See <a href="https://corefork.telegram.org/constructor/chatInvite"/></para></summary>
|
||||
[TLDef(0xCDE0EC40)]
|
||||
[TLDef(0xFE65389D)]
|
||||
public sealed partial class ChatInvite : ChatInviteBase
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -7374,6 +7370,8 @@ namespace TL
|
|||
[IfFlag(4)] public UserBase[] participants;
|
||||
/// <summary><a href="https://corefork.telegram.org/api/colors">Profile color palette ID</a></summary>
|
||||
public int color;
|
||||
[IfFlag(10)] public StarsSubscriptionPricing subscription_pricing;
|
||||
[IfFlag(12)] public long subscription_form_id;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -7397,6 +7395,11 @@ namespace TL
|
|||
scam = 0x100,
|
||||
/// <summary>If set, this chat was reported by many users as a fake or scam: be careful when interacting with it.</summary>
|
||||
fake = 0x200,
|
||||
/// <summary>Field <see cref="subscription_pricing"/> has a value</summary>
|
||||
has_subscription_pricing = 0x400,
|
||||
can_refulfill_subscription = 0x800,
|
||||
/// <summary>Field <see cref="subscription_form_id"/> has a value</summary>
|
||||
has_subscription_form_id = 0x1000,
|
||||
}
|
||||
}
|
||||
/// <summary>A chat invitation that also allows peeking into the group to read messages without joining it. <para>See <a href="https://corefork.telegram.org/constructor/chatInvitePeek"/></para></summary>
|
||||
|
|
@ -7537,7 +7540,7 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>Info about bots (available bot commands, etc) <para>See <a href="https://corefork.telegram.org/constructor/botInfo"/></para></summary>
|
||||
[TLDef(0x8F300B57)]
|
||||
[TLDef(0x82437E74)]
|
||||
public sealed partial class BotInfo : IObject
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -7554,6 +7557,7 @@ namespace TL
|
|||
[IfFlag(2)] public BotCommand[] commands;
|
||||
/// <summary>Indicates the action to execute when pressing the in-UI menu button for bots</summary>
|
||||
[IfFlag(3)] public BotMenuButtonBase menu_button;
|
||||
[IfFlag(7)] public string privacy_policy_url;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -7571,6 +7575,8 @@ namespace TL
|
|||
has_description_document = 0x20,
|
||||
/// <summary>If set, the bot has some <a href="https://corefork.telegram.org/api/bots/webapps#main-mini-app-previews">preview medias for the configured Main Mini App, see here »</a> for more info on Main Mini App preview medias.</summary>
|
||||
has_preview_medias = 0x40,
|
||||
/// <summary>Field <see cref="privacy_policy_url"/> has a value</summary>
|
||||
has_privacy_policy_url = 0x80,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -8136,16 +8142,24 @@ namespace TL
|
|||
/// <summary>Channel participant <para>See <a href="https://corefork.telegram.org/type/ChannelParticipant"/></para> <para>Derived classes: <see cref="ChannelParticipant"/>, <see cref="ChannelParticipantSelf"/>, <see cref="ChannelParticipantCreator"/>, <see cref="ChannelParticipantAdmin"/>, <see cref="ChannelParticipantBanned"/>, <see cref="ChannelParticipantLeft"/></para></summary>
|
||||
public abstract partial class ChannelParticipantBase : IObject { }
|
||||
/// <summary>Channel/supergroup participant <para>See <a href="https://corefork.telegram.org/constructor/channelParticipant"/></para></summary>
|
||||
[TLDef(0xC00C07C0)]
|
||||
[TLDef(0xCB397619)]
|
||||
public sealed partial class ChannelParticipant : ChannelParticipantBase
|
||||
{
|
||||
public Flags flags;
|
||||
/// <summary>Participant user ID</summary>
|
||||
public long user_id;
|
||||
/// <summary>Date joined</summary>
|
||||
public DateTime date;
|
||||
[IfFlag(0)] public DateTime subscription_until_date;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Field <see cref="subscription_until_date"/> has a value</summary>
|
||||
has_subscription_until_date = 0x1,
|
||||
}
|
||||
}
|
||||
/// <summary>Myself <para>See <a href="https://corefork.telegram.org/constructor/channelParticipantSelf"/></para></summary>
|
||||
[TLDef(0x35A8BFA7)]
|
||||
[TLDef(0x4F607BEF)]
|
||||
public sealed partial class ChannelParticipantSelf : ChannelParticipantBase
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -8156,11 +8170,14 @@ namespace TL
|
|||
public long inviter_id;
|
||||
/// <summary>When did I join the channel/supergroup</summary>
|
||||
public DateTime date;
|
||||
[IfFlag(1)] public DateTime subscription_until_date;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Whether I joined upon specific approval of an admin</summary>
|
||||
via_request = 0x1,
|
||||
/// <summary>Field <see cref="subscription_until_date"/> has a value</summary>
|
||||
has_subscription_until_date = 0x2,
|
||||
}
|
||||
}
|
||||
/// <summary>Channel/supergroup creator <para>See <a href="https://corefork.telegram.org/constructor/channelParticipantCreator"/></para></summary>
|
||||
|
|
@ -11390,7 +11407,7 @@ namespace TL
|
|||
}
|
||||
/// <summary>Channel signatures were enabled/disabled <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionToggleSignatures"/></para></summary>
|
||||
[TLDef(0x26AE0971)]
|
||||
public sealed partial class ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventAction
|
||||
public partial class ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventAction
|
||||
{
|
||||
/// <summary>New value</summary>
|
||||
public bool new_value;
|
||||
|
|
@ -11727,6 +11744,9 @@ namespace TL
|
|||
/// <summary>The supergroup's <a href="https://corefork.telegram.org/api/boost#setting-a-custom-emoji-stickerset-for-supergroups">custom emoji stickerset</a> was changed. <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeEmojiStickerSet"/></para></summary>
|
||||
[TLDef(0x46D840AB)]
|
||||
public sealed partial class ChannelAdminLogEventActionChangeEmojiStickerSet : ChannelAdminLogEventActionChangeStickerSet { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionToggleSignatureProfiles"/></para></summary>
|
||||
[TLDef(0x60A79C79)]
|
||||
public sealed partial class ChannelAdminLogEventActionToggleSignatureProfiles : ChannelAdminLogEventActionToggleSignatures { }
|
||||
|
||||
/// <summary>Admin log event <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEvent"/></para></summary>
|
||||
[TLDef(0x1FAD68CD)]
|
||||
|
|
@ -14848,7 +14868,7 @@ namespace TL
|
|||
public sealed partial class Account_ResetPasswordOk : Account_ResetPasswordResult { }
|
||||
|
||||
/// <summary>A <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored message</a>. <para>See <a href="https://corefork.telegram.org/constructor/sponsoredMessage"/></para></summary>
|
||||
[TLDef(0xBDEDF566)]
|
||||
[TLDef(0x4D93A990)]
|
||||
public sealed partial class SponsoredMessage : IObject
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -14865,6 +14885,7 @@ namespace TL
|
|||
[IfFlag(1)] public MessageEntity[] entities;
|
||||
/// <summary>If set, contains a custom profile photo bubble that should be displayed for the sponsored message, like for messages sent in groups.</summary>
|
||||
[IfFlag(6)] public PhotoBase photo;
|
||||
[IfFlag(14)] public MessageMedia media;
|
||||
/// <summary>If set, the sponsored message should use the <a href="https://corefork.telegram.org/api/colors">message accent color »</a> specified in <c>color</c>.</summary>
|
||||
[IfFlag(13)] public PeerColor color;
|
||||
/// <summary>Label of the sponsored message button.</summary>
|
||||
|
|
@ -14890,6 +14911,8 @@ namespace TL
|
|||
can_report = 0x1000,
|
||||
/// <summary>Field <see cref="color"/> has a value</summary>
|
||||
has_color = 0x2000,
|
||||
/// <summary>Field <see cref="media"/> has a value</summary>
|
||||
has_media = 0x4000,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -15069,7 +15092,7 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary><a href="https://corefork.telegram.org/api/reactions">Message reactions »</a> <para>See <a href="https://corefork.telegram.org/constructor/messageReactions"/></para></summary>
|
||||
[TLDef(0x4F2B9479)]
|
||||
[TLDef(0x0A339F0B)]
|
||||
public sealed partial class MessageReactions : IObject
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -15078,6 +15101,7 @@ namespace TL
|
|||
public ReactionCount[] results;
|
||||
/// <summary>List of recent peers and their reactions</summary>
|
||||
[IfFlag(1)] public MessagePeerReaction[] recent_reactions;
|
||||
[IfFlag(4)] public MessageReactor[] top_reactors;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -15089,6 +15113,8 @@ namespace TL
|
|||
can_see_list = 0x4,
|
||||
/// <summary>If set or if there are no reactions, all present and future reactions should be treated as <a href="https://corefork.telegram.org/api/saved-messages#tags">message tags, see here » for more info</a>.</summary>
|
||||
reactions_as_tags = 0x8,
|
||||
/// <summary>Field <see cref="top_reactors"/> has a value</summary>
|
||||
has_top_reactors = 0x10,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -15452,6 +15478,12 @@ namespace TL
|
|||
/// <summary>Either an <see cref="InputStorePaymentStarsTopup"/> or an <see cref="InputStorePaymentStarsGift"/>.</summary>
|
||||
public InputStorePaymentPurpose purpose;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceChatInviteSubscription"/></para></summary>
|
||||
[TLDef(0x34E793F1)]
|
||||
public sealed partial class InputInvoiceChatInviteSubscription : InputInvoice
|
||||
{
|
||||
public string hash;
|
||||
}
|
||||
|
||||
/// <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)]
|
||||
|
|
@ -15692,6 +15724,9 @@ namespace TL
|
|||
/// <summary><a href="https://corefork.telegram.org/api/custom-emoji">Custom emoji document ID</a></summary>
|
||||
public long document_id;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/reactionPaid"/></para></summary>
|
||||
[TLDef(0x523DA4EB)]
|
||||
public sealed partial class ReactionPaid : Reaction { }
|
||||
|
||||
/// <summary>Available chat reactions <para>See <a href="https://corefork.telegram.org/type/ChatReactions"/></para> <para>Derived classes: <see cref="ChatReactionsAll"/>, <see cref="ChatReactionsSome"/></para></summary>
|
||||
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/chatReactionsNone">chatReactionsNone</a></remarks>
|
||||
|
|
@ -18772,7 +18807,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(0x2DB5418F)]
|
||||
[TLDef(0x433AEB2B)]
|
||||
public sealed partial class StarsTransaction : IObject
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -18801,6 +18836,7 @@ namespace TL
|
|||
[IfFlag(8)] public int msg_id;
|
||||
/// <summary>The purchased <a href="https://corefork.telegram.org/api/paid-media">paid media »</a>.</summary>
|
||||
[IfFlag(9)] public MessageMedia[] extended_media;
|
||||
[IfFlag(12)] public int subscription_period;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -18826,19 +18862,25 @@ namespace TL
|
|||
has_extended_media = 0x200,
|
||||
/// <summary>This transaction was a gift from the user in <c>peer.peer</c>.</summary>
|
||||
gift = 0x400,
|
||||
reaction = 0x800,
|
||||
/// <summary>Field <see cref="subscription_period"/> has a value</summary>
|
||||
has_subscription_period = 0x1000,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Info about the current <a href="https://corefork.telegram.org/api/stars#balance-and-transaction-history">Telegram Star balance and transaction history »</a>. <para>See <a href="https://corefork.telegram.org/constructor/payments.starsStatus"/></para></summary>
|
||||
[TLDef(0x8CF4EE60)]
|
||||
[TLDef(0xBBFA316C)]
|
||||
public sealed partial class Payments_StarsStatus : IObject, IPeerResolver
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
public Flags flags;
|
||||
/// <summary>Current Telegram Star balance.</summary>
|
||||
public long balance;
|
||||
[IfFlag(1)] public StarsSubscription[] subscriptions;
|
||||
[IfFlag(2)] public string subscriptions_next_offset;
|
||||
[IfFlag(4)] public long subscriptions_missing_balance;
|
||||
/// <summary>List of Telegram Star transactions (partial if <c>next_offset</c> is set).</summary>
|
||||
public StarsTransaction[] history;
|
||||
[IfFlag(3)] public StarsTransaction[] history;
|
||||
/// <summary>Offset to use to fetch more transactions from the transaction history using <see cref="SchemaExtensions.Payments_GetStarsTransactions">Payments_GetStarsTransactions</see>.</summary>
|
||||
[IfFlag(0)] public string next_offset;
|
||||
/// <summary>Chats mentioned in <c>history</c>.</summary>
|
||||
|
|
@ -18850,6 +18892,14 @@ namespace TL
|
|||
{
|
||||
/// <summary>Field <see cref="next_offset"/> has a value</summary>
|
||||
has_next_offset = 0x1,
|
||||
/// <summary>Field <see cref="subscriptions"/> has a value</summary>
|
||||
has_subscriptions = 0x2,
|
||||
/// <summary>Field <see cref="subscriptions_next_offset"/> has a value</summary>
|
||||
has_subscriptions_next_offset = 0x4,
|
||||
/// <summary>Field <see cref="history"/> has a value</summary>
|
||||
has_history = 0x8,
|
||||
/// <summary>Field <see cref="subscriptions_missing_balance"/> has a value</summary>
|
||||
has_subscriptions_missing_balance = 0x10,
|
||||
}
|
||||
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
|
||||
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
||||
|
|
@ -19046,4 +19096,49 @@ namespace TL
|
|||
/// <summary>All available language codes for which preview medias were uploaded (regardless of the language code passed to <see cref="SchemaExtensions.Bots_GetPreviewInfo">Bots_GetPreviewInfo</see>).</summary>
|
||||
public string[] lang_codes;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/starsSubscriptionPricing"/></para></summary>
|
||||
[TLDef(0x05416D58)]
|
||||
public sealed partial class StarsSubscriptionPricing : IObject
|
||||
{
|
||||
public int period;
|
||||
public long amount;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/starsSubscription"/></para></summary>
|
||||
[TLDef(0x538ECF18)]
|
||||
public sealed partial class StarsSubscription : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public string id;
|
||||
public Peer peer;
|
||||
public DateTime until_date;
|
||||
public StarsSubscriptionPricing pricing;
|
||||
[IfFlag(3)] public string chat_invite_hash;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
canceled = 0x1,
|
||||
can_refulfill = 0x2,
|
||||
missing_balance = 0x4,
|
||||
has_chat_invite_hash = 0x8,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageReactor"/></para></summary>
|
||||
[TLDef(0x4BA3A95A)]
|
||||
public sealed partial class MessageReactor : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
[IfFlag(3)] public Peer peer_id;
|
||||
public int count;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
top = 0x1,
|
||||
my = 0x2,
|
||||
anonymous = 0x4,
|
||||
has_peer_id = 0x8,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2212,14 +2212,15 @@ namespace TL
|
|||
/// <param name="expire_date">Expiration date</param>
|
||||
/// <param name="usage_limit">Maximum number of users that can join using this link</param>
|
||||
/// <param name="title">Description of the invite link, visible only to administrators</param>
|
||||
public static Task<ExportedChatInvite> Messages_ExportChatInvite(this Client client, InputPeer peer, DateTime? expire_date = null, int? usage_limit = null, string title = null, bool legacy_revoke_permanent = false, bool request_needed = false)
|
||||
public static Task<ExportedChatInvite> Messages_ExportChatInvite(this Client client, InputPeer peer, DateTime? expire_date = null, int? usage_limit = null, string title = null, StarsSubscriptionPricing subscription_pricing = null, bool legacy_revoke_permanent = false, bool request_needed = false)
|
||||
=> client.Invoke(new Messages_ExportChatInvite
|
||||
{
|
||||
flags = (Messages_ExportChatInvite.Flags)((expire_date != null ? 0x1 : 0) | (usage_limit != null ? 0x2 : 0) | (title != null ? 0x10 : 0) | (legacy_revoke_permanent ? 0x4 : 0) | (request_needed ? 0x8 : 0)),
|
||||
flags = (Messages_ExportChatInvite.Flags)((expire_date != null ? 0x1 : 0) | (usage_limit != null ? 0x2 : 0) | (title != null ? 0x10 : 0) | (subscription_pricing != null ? 0x20 : 0) | (legacy_revoke_permanent ? 0x4 : 0) | (request_needed ? 0x8 : 0)),
|
||||
peer = peer,
|
||||
expire_date = expire_date.GetValueOrDefault(),
|
||||
usage_limit = usage_limit.GetValueOrDefault(),
|
||||
title = title,
|
||||
subscription_pricing = subscription_pricing,
|
||||
});
|
||||
|
||||
/// <summary>Check the validity of a chat invite link and get basic info about it <para>See <a href="https://corefork.telegram.org/method/messages.checkChatInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400,406 (<a href="https://corefork.telegram.org/method/messages.checkChatInvite#possible-errors">details</a>)</para></summary>
|
||||
|
|
@ -3411,10 +3412,10 @@ namespace TL
|
|||
/// <param name="offset_date"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
/// <param name="offset_user">User ID for <a href="https://corefork.telegram.org/api/offsets">pagination</a>: if set, <c>offset_date</c> must also be set.</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_ChatInviteImporters> Messages_GetChatInviteImporters(this Client client, InputPeer peer, DateTime offset_date = default, InputUserBase offset_user = null, int limit = int.MaxValue, string link = null, string q = null, bool requested = false)
|
||||
public static Task<Messages_ChatInviteImporters> Messages_GetChatInviteImporters(this Client client, InputPeer peer, DateTime offset_date = default, InputUserBase offset_user = null, int limit = int.MaxValue, string link = null, string q = null, bool requested = false, bool subscription_expired = false)
|
||||
=> client.Invoke(new Messages_GetChatInviteImporters
|
||||
{
|
||||
flags = (Messages_GetChatInviteImporters.Flags)((link != null ? 0x2 : 0) | (q != null ? 0x4 : 0) | (requested ? 0x1 : 0)),
|
||||
flags = (Messages_GetChatInviteImporters.Flags)((link != null ? 0x2 : 0) | (q != null ? 0x4 : 0) | (requested ? 0x1 : 0) | (subscription_expired ? 0x8 : 0)),
|
||||
peer = peer,
|
||||
link = link,
|
||||
q = q,
|
||||
|
|
@ -3585,13 +3586,14 @@ namespace TL
|
|||
/// <param name="peer">Group where to apply changes</param>
|
||||
/// <param name="available_reactions">Allowed reaction emojis</param>
|
||||
/// <param name="reactions_limit">This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of <a href="https://corefork.telegram.org/api/config#reactions-uniq-max">appConfig.reactions_uniq_max</a>); this field and the other info set by the method will then be available to users in <see cref="ChannelFull"/> and <see cref="ChatFull"/>.</param>
|
||||
public static Task<UpdatesBase> Messages_SetChatAvailableReactions(this Client client, InputPeer peer, ChatReactions available_reactions, int? reactions_limit = null)
|
||||
public static Task<UpdatesBase> Messages_SetChatAvailableReactions(this Client client, InputPeer peer, ChatReactions available_reactions, int? reactions_limit = null, bool? paid_enabled = default)
|
||||
=> client.Invoke(new Messages_SetChatAvailableReactions
|
||||
{
|
||||
flags = (Messages_SetChatAvailableReactions.Flags)(reactions_limit != null ? 0x1 : 0),
|
||||
flags = (Messages_SetChatAvailableReactions.Flags)((reactions_limit != null ? 0x1 : 0) | (paid_enabled != default ? 0x2 : 0)),
|
||||
peer = peer,
|
||||
available_reactions = available_reactions,
|
||||
reactions_limit = reactions_limit.GetValueOrDefault(),
|
||||
paid_enabled = paid_enabled.GetValueOrDefault(),
|
||||
});
|
||||
|
||||
/// <summary>Obtain available <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> <para>See <a href="https://corefork.telegram.org/method/messages.getAvailableReactions"/></para></summary>
|
||||
|
|
@ -4310,6 +4312,26 @@ namespace TL
|
|||
platform = platform,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.sendPaidReaction"/></para></summary>
|
||||
public static Task<UpdatesBase> Messages_SendPaidReaction(this Client client, InputPeer peer, int msg_id, int count, long random_id, bool private_ = false)
|
||||
=> client.Invoke(new Messages_SendPaidReaction
|
||||
{
|
||||
flags = (Messages_SendPaidReaction.Flags)(private_ ? 0x1 : 0),
|
||||
peer = peer,
|
||||
msg_id = msg_id,
|
||||
count = count,
|
||||
random_id = random_id,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.togglePaidReactionPrivacy"/></para></summary>
|
||||
public static Task<bool> Messages_TogglePaidReactionPrivacy(this Client client, InputPeer peer, int msg_id, bool private_)
|
||||
=> client.Invoke(new Messages_TogglePaidReactionPrivacy
|
||||
{
|
||||
peer = peer,
|
||||
msg_id = msg_id,
|
||||
private_ = private_,
|
||||
});
|
||||
|
||||
/// <summary>Returns a current state of updates. <para>See <a href="https://corefork.telegram.org/method/updates.getState"/> [bots: ✓]</para></summary>
|
||||
public static Task<Updates_State> Updates_GetState(this Client client)
|
||||
=> client.Invoke(new Updates_GetState
|
||||
|
|
@ -4928,12 +4950,11 @@ namespace TL
|
|||
|
||||
/// <summary>Enable/disable message signatures in channels <para>See <a href="https://corefork.telegram.org/method/channels.toggleSignatures"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.toggleSignatures#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">Channel</param>
|
||||
/// <param name="enabled">Value</param>
|
||||
public static Task<UpdatesBase> Channels_ToggleSignatures(this Client client, InputChannelBase channel, bool enabled)
|
||||
public static Task<UpdatesBase> Channels_ToggleSignatures(this Client client, InputChannelBase channel, bool signatures_enabled = false, bool profiles_enabled = false)
|
||||
=> client.Invoke(new Channels_ToggleSignatures
|
||||
{
|
||||
flags = (Channels_ToggleSignatures.Flags)((signatures_enabled ? 0x1 : 0) | (profiles_enabled ? 0x2 : 0)),
|
||||
channel = channel,
|
||||
enabled = enabled,
|
||||
});
|
||||
|
||||
/// <summary>Get <a href="https://corefork.telegram.org/api/channel">channels/supergroups/geogroups</a> we're admin in. Usually called when the user exceeds the <see cref="Config">limit</see> for owned public <a href="https://corefork.telegram.org/api/channel">channels/supergroups/geogroups</a>, and the user is given the choice to remove one of his channels/supergroups/geogroups. <para>See <a href="https://corefork.telegram.org/method/channels.getAdminedPublicChannels"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getAdminedPublicChannels#possible-errors">details</a>)</para></summary>
|
||||
|
|
@ -5854,10 +5875,11 @@ namespace TL
|
|||
/// <param name="peer">Fetch the transaction history of the peer (<see cref="InputPeerSelf"/> or a bot we own).</param>
|
||||
/// <param name="offset"><a href="https://corefork.telegram.org/api/offsets">Offset for pagination, obtained from the returned <c>next_offset</c>, initially an empty string »</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<Payments_StarsStatus> Payments_GetStarsTransactions(this Client client, InputPeer peer, string offset, int limit = int.MaxValue, bool inbound = false, bool outbound = false, bool ascending = false)
|
||||
public static Task<Payments_StarsStatus> Payments_GetStarsTransactions(this Client client, InputPeer peer, string offset, int limit = int.MaxValue, string subscription_id = null, bool inbound = false, bool outbound = false, bool ascending = false)
|
||||
=> client.Invoke(new Payments_GetStarsTransactions
|
||||
{
|
||||
flags = (Payments_GetStarsTransactions.Flags)((inbound ? 0x1 : 0) | (outbound ? 0x2 : 0) | (ascending ? 0x4 : 0)),
|
||||
flags = (Payments_GetStarsTransactions.Flags)((subscription_id != null ? 0x8 : 0) | (inbound ? 0x1 : 0) | (outbound ? 0x2 : 0) | (ascending ? 0x4 : 0)),
|
||||
subscription_id = subscription_id,
|
||||
peer = peer,
|
||||
offset = offset,
|
||||
limit = limit,
|
||||
|
|
@ -5933,6 +5955,33 @@ namespace TL
|
|||
user_id = user_id,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.getStarsSubscriptions"/></para></summary>
|
||||
public static Task<Payments_StarsStatus> Payments_GetStarsSubscriptions(this Client client, InputPeer peer, string offset, bool missing_balance = false)
|
||||
=> client.Invoke(new Payments_GetStarsSubscriptions
|
||||
{
|
||||
flags = (Payments_GetStarsSubscriptions.Flags)(missing_balance ? 0x1 : 0),
|
||||
peer = peer,
|
||||
offset = offset,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.changeStarsSubscription"/></para></summary>
|
||||
public static Task<bool> Payments_ChangeStarsSubscription(this Client client, InputPeer peer, string subscription_id, bool? canceled = default)
|
||||
=> client.Invoke(new Payments_ChangeStarsSubscription
|
||||
{
|
||||
flags = (Payments_ChangeStarsSubscription.Flags)(canceled != default ? 0x1 : 0),
|
||||
peer = peer,
|
||||
subscription_id = subscription_id,
|
||||
canceled = canceled.GetValueOrDefault(),
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.fulfillStarsSubscription"/></para></summary>
|
||||
public static Task<bool> Payments_FulfillStarsSubscription(this Client client, InputPeer peer, string subscription_id)
|
||||
=> client.Invoke(new Payments_FulfillStarsSubscription
|
||||
{
|
||||
peer = peer,
|
||||
subscription_id = subscription_id,
|
||||
});
|
||||
|
||||
/// <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>
|
||||
|
|
@ -8906,7 +8955,7 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0xA02CE5D5)]
|
||||
[TLDef(0xA455DE90)]
|
||||
public sealed partial class Messages_ExportChatInvite : IMethod<ExportedChatInvite>
|
||||
{
|
||||
public Flags flags;
|
||||
|
|
@ -8914,6 +8963,7 @@ namespace TL.Methods
|
|||
[IfFlag(0)] public DateTime expire_date;
|
||||
[IfFlag(1)] public int usage_limit;
|
||||
[IfFlag(4)] public string title;
|
||||
[IfFlag(5)] public StarsSubscriptionPricing subscription_pricing;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -8922,6 +8972,7 @@ namespace TL.Methods
|
|||
legacy_revoke_permanent = 0x4,
|
||||
request_needed = 0x8,
|
||||
has_title = 0x10,
|
||||
has_subscription_pricing = 0x20,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -9955,6 +10006,7 @@ namespace TL.Methods
|
|||
requested = 0x1,
|
||||
has_link = 0x2,
|
||||
has_q = 0x4,
|
||||
subscription_expired = 0x8,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -10098,17 +10150,19 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x5A150BD4)]
|
||||
[TLDef(0x864B2581)]
|
||||
public sealed partial class Messages_SetChatAvailableReactions : IMethod<UpdatesBase>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputPeer peer;
|
||||
public ChatReactions available_reactions;
|
||||
[IfFlag(0)] public int reactions_limit;
|
||||
[IfFlag(1)] public bool paid_enabled;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_reactions_limit = 0x1,
|
||||
has_paid_enabled = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -10701,6 +10755,29 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x25C8FE3E)]
|
||||
public sealed partial class Messages_SendPaidReaction : IMethod<UpdatesBase>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputPeer peer;
|
||||
public int msg_id;
|
||||
public int count;
|
||||
public long random_id;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
private_ = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0x849AD397)]
|
||||
public sealed partial class Messages_TogglePaidReactionPrivacy : IMethod<bool>
|
||||
{
|
||||
public InputPeer peer;
|
||||
public int msg_id;
|
||||
public bool private_;
|
||||
}
|
||||
|
||||
[TLDef(0xEDD4882A)]
|
||||
public sealed partial class Updates_GetState : IMethod<Updates_State> { }
|
||||
|
||||
|
|
@ -11161,11 +11238,17 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x1F69B606)]
|
||||
[TLDef(0x418D549C)]
|
||||
public sealed partial class Channels_ToggleSignatures : IMethod<UpdatesBase>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputChannelBase channel;
|
||||
public bool enabled;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
signatures_enabled = 0x1,
|
||||
profiles_enabled = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0xF8B036AF)]
|
||||
|
|
@ -11886,10 +11969,11 @@ namespace TL.Methods
|
|||
public InputPeer peer;
|
||||
}
|
||||
|
||||
[TLDef(0x97938D5A)]
|
||||
[TLDef(0x69DA4557)]
|
||||
public sealed partial class Payments_GetStarsTransactions : IMethod<Payments_StarsStatus>
|
||||
{
|
||||
public Flags flags;
|
||||
[IfFlag(3)] public string subscription_id;
|
||||
public InputPeer peer;
|
||||
public string offset;
|
||||
public int limit;
|
||||
|
|
@ -11899,6 +11983,7 @@ namespace TL.Methods
|
|||
inbound = 0x1,
|
||||
outbound = 0x2,
|
||||
ascending = 0x4,
|
||||
has_subscription_id = 0x8,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -11966,6 +12051,40 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x032512C5)]
|
||||
public sealed partial class Payments_GetStarsSubscriptions : IMethod<Payments_StarsStatus>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputPeer peer;
|
||||
public string offset;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
missing_balance = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0xC7770878)]
|
||||
public sealed partial class Payments_ChangeStarsSubscription : IMethod<bool>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputPeer peer;
|
||||
public string subscription_id;
|
||||
[IfFlag(0)] public bool canceled;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_canceled = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0xCC5BEBB3)]
|
||||
public sealed partial class Payments_FulfillStarsSubscription : IMethod<bool>
|
||||
{
|
||||
public InputPeer peer;
|
||||
public string subscription_id;
|
||||
}
|
||||
|
||||
[TLDef(0x9021AB67)]
|
||||
public sealed partial class Stickers_CreateStickerSet : IMethod<Messages_StickerSet>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace TL
|
|||
{
|
||||
public static partial class Layer
|
||||
{
|
||||
public const int Version = 185; // fetched 31/07/2024 17:28:03
|
||||
public const int Version = 186; // fetched 14/08/2024 12:45:43
|
||||
internal const int SecretChats = 144;
|
||||
internal const int MTProto2 = 73;
|
||||
internal const uint VectorCtor = 0x1CB5C415;
|
||||
|
|
@ -84,6 +84,7 @@ namespace TL
|
|||
[0xF392B7F4] = typeof(InputPhoneContact),
|
||||
[0xF52FF27F] = typeof(InputFile),
|
||||
[0xFA4F0BB5] = typeof(InputFileBig),
|
||||
[0x62DC8B48] = typeof(InputFileStoryDocument),
|
||||
[0x9664F57F] = null,//InputMediaEmpty
|
||||
[0x1E287D04] = typeof(InputMediaUploadedPhoto),
|
||||
[0xB3BA0635] = typeof(InputMediaPhoto),
|
||||
|
|
@ -135,7 +136,7 @@ namespace TL
|
|||
[0x29562865] = typeof(ChatEmpty),
|
||||
[0x41CBF256] = typeof(Chat),
|
||||
[0x6592A1A7] = typeof(ChatForbidden),
|
||||
[0x0AADFC8F] = typeof(Channel),
|
||||
[0xFE4478BD] = typeof(Channel),
|
||||
[0x17D493D5] = typeof(ChannelForbidden),
|
||||
[0x2633421B] = typeof(ChatFull),
|
||||
[0xBBAB348D] = typeof(ChannelFull),
|
||||
|
|
@ -531,10 +532,10 @@ namespace TL
|
|||
[0xC23727C9] = typeof(Account_PasswordInputSettings),
|
||||
[0x137948A5] = typeof(Auth_PasswordRecovery),
|
||||
[0xA384B779] = typeof(ReceivedNotifyMessage),
|
||||
[0x0AB4A819] = typeof(ChatInviteExported),
|
||||
[0xA22CBD96] = typeof(ChatInviteExported),
|
||||
[0xED107AB7] = typeof(ChatInvitePublicJoinRequests),
|
||||
[0x5A686D7C] = typeof(ChatInviteAlready),
|
||||
[0xCDE0EC40] = typeof(ChatInvite),
|
||||
[0xFE65389D] = typeof(ChatInvite),
|
||||
[0x61695CB0] = typeof(ChatInvitePeek),
|
||||
[0xFFB62B95] = null,//InputStickerSetEmpty
|
||||
[0x9DE7A269] = typeof(InputStickerSetID),
|
||||
|
|
@ -551,7 +552,7 @@ namespace TL
|
|||
[0x6E153F16] = typeof(Messages_StickerSet),
|
||||
[0xD3F924EB] = null,//Messages_StickerSetNotModified
|
||||
[0xC27AC8C7] = typeof(BotCommand),
|
||||
[0x8F300B57] = typeof(BotInfo),
|
||||
[0x82437E74] = typeof(BotInfo),
|
||||
[0xA2FA4880] = typeof(KeyboardButton),
|
||||
[0x258AFF05] = typeof(KeyboardButtonUrl),
|
||||
[0x35BBDB6B] = typeof(KeyboardButtonCallback),
|
||||
|
|
@ -605,8 +606,8 @@ namespace TL
|
|||
[0x2064674E] = typeof(Updates_ChannelDifference),
|
||||
[0x94D42EE7] = null,//ChannelMessagesFilterEmpty
|
||||
[0xCD77D957] = typeof(ChannelMessagesFilter),
|
||||
[0xC00C07C0] = typeof(ChannelParticipant),
|
||||
[0x35A8BFA7] = typeof(ChannelParticipantSelf),
|
||||
[0xCB397619] = typeof(ChannelParticipant),
|
||||
[0x4F607BEF] = typeof(ChannelParticipantSelf),
|
||||
[0x2FE601D3] = typeof(ChannelParticipantCreator),
|
||||
[0x34C3BB53] = typeof(ChannelParticipantAdmin),
|
||||
[0x6DF8014E] = typeof(ChannelParticipantBanned),
|
||||
|
|
@ -834,6 +835,7 @@ namespace TL
|
|||
[0x31BB5D52] = typeof(ChannelAdminLogEventActionChangeWallpaper),
|
||||
[0x3EA9FEB1] = typeof(ChannelAdminLogEventActionChangeEmojiStatus),
|
||||
[0x46D840AB] = typeof(ChannelAdminLogEventActionChangeEmojiStickerSet),
|
||||
[0x60A79C79] = typeof(ChannelAdminLogEventActionToggleSignatureProfiles),
|
||||
[0x1FAD68CD] = typeof(ChannelAdminLogEvent),
|
||||
[0xED8AF74D] = typeof(Channels_AdminLogResults),
|
||||
[0xEA107AE4] = typeof(ChannelAdminLogEventsFilter),
|
||||
|
|
@ -1038,7 +1040,7 @@ namespace TL
|
|||
[0xE3779861] = typeof(Account_ResetPasswordFailedWait),
|
||||
[0xE9EFFC7D] = typeof(Account_ResetPasswordRequestedWait),
|
||||
[0xE926D63E] = typeof(Account_ResetPasswordOk),
|
||||
[0xBDEDF566] = typeof(SponsoredMessage),
|
||||
[0x4D93A990] = typeof(SponsoredMessage),
|
||||
[0xC9EE1D87] = typeof(Messages_SponsoredMessages),
|
||||
[0x1839490F] = null,//Messages_SponsoredMessagesEmpty
|
||||
[0xC9B0539F] = typeof(SearchResultsCalendarPeriod),
|
||||
|
|
@ -1050,7 +1052,7 @@ namespace TL
|
|||
[0x6880B94D] = typeof(Messages_PeerSettings),
|
||||
[0xC3A2835F] = typeof(Auth_LoggedOut),
|
||||
[0xA3D1CB80] = typeof(ReactionCount),
|
||||
[0x4F2B9479] = typeof(MessageReactions),
|
||||
[0x0A339F0B] = typeof(MessageReactions),
|
||||
[0x31BD492D] = typeof(Messages_MessageReactionsList),
|
||||
[0xC077EC01] = typeof(AvailableReaction),
|
||||
[0x9F071957] = null,//Messages_AvailableReactionsNotModified
|
||||
|
|
@ -1082,6 +1084,7 @@ namespace TL
|
|||
[0xC326CAEF] = typeof(InputInvoiceSlug),
|
||||
[0x98986C0D] = typeof(InputInvoicePremiumGiftCode),
|
||||
[0x65F00CE3] = typeof(InputInvoiceStars),
|
||||
[0x34E793F1] = typeof(InputInvoiceChatInviteSubscription),
|
||||
[0xAED0CBD9] = typeof(Payments_ExportedInvoice),
|
||||
[0xCFB9D957] = typeof(Messages_TranscribedAudio),
|
||||
[0x5334759C] = typeof(Help_PremiumPromo),
|
||||
|
|
@ -1101,6 +1104,7 @@ namespace TL
|
|||
[0x79F5D419] = null,//ReactionEmpty
|
||||
[0x1B2286B8] = typeof(ReactionEmoji),
|
||||
[0x8935FC73] = typeof(ReactionCustomEmoji),
|
||||
[0x523DA4EB] = typeof(ReactionPaid),
|
||||
[0xEAFC32BC] = null,//ChatReactionsNone
|
||||
[0x52928BCA] = typeof(ChatReactionsAll),
|
||||
[0x661D4037] = typeof(ChatReactionsSome),
|
||||
|
|
@ -1294,8 +1298,8 @@ namespace TL
|
|||
[0xD80DA15D] = typeof(StarsTransactionPeer),
|
||||
[0x60682812] = typeof(StarsTransactionPeerAds),
|
||||
[0x0BD915C0] = typeof(StarsTopupOption),
|
||||
[0x2DB5418F] = typeof(StarsTransaction),
|
||||
[0x8CF4EE60] = typeof(Payments_StarsStatus),
|
||||
[0x433AEB2B] = typeof(StarsTransaction),
|
||||
[0xBBFA316C] = typeof(Payments_StarsStatus),
|
||||
[0xE87ACBC0] = typeof(FoundStory),
|
||||
[0xE2DE7737] = typeof(Stories_FoundStories),
|
||||
[0xDE4C5D93] = typeof(GeoPointAddress),
|
||||
|
|
@ -1308,6 +1312,9 @@ namespace TL
|
|||
[0x1991B13B] = typeof(Bots_PopularAppBots),
|
||||
[0x23E91BA3] = typeof(BotPreviewMedia),
|
||||
[0x0CA71D64] = typeof(Bots_PreviewInfo),
|
||||
[0x05416D58] = typeof(StarsSubscriptionPricing),
|
||||
[0x538ECF18] = typeof(StarsSubscription),
|
||||
[0x4BA3A95A] = typeof(MessageReactor),
|
||||
// from TL.Secret:
|
||||
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
|
||||
[0x020DF5D0] = typeof(Layer101.MessageEntityBlockquote),
|
||||
|
|
|
|||
|
|
@ -86,16 +86,36 @@ namespace TL
|
|||
else
|
||||
return new InputChatUploadedPhoto { file = this, flags = InputChatUploadedPhoto.Flags.has_file };
|
||||
}
|
||||
/// <summary>Random file identifier created by the client</summary>
|
||||
public abstract long ID { get; set; }
|
||||
/// <summary>Number of parts saved</summary>
|
||||
public abstract int Parts { get; set; }
|
||||
/// <summary>Full name of the file</summary>
|
||||
public abstract string Name { get; set; }
|
||||
}
|
||||
partial class InputFile
|
||||
{
|
||||
public override InputEncryptedFileBase ToInputEncryptedFile(int key_fingerprint) => new InputEncryptedFileUploaded { id = id, parts = parts, md5_checksum = md5_checksum, key_fingerprint = key_fingerprint };
|
||||
public override InputSecureFileBase ToInputSecureFile(byte[] file_hash, byte[] secret) => new InputSecureFileUploaded { id = id, parts = parts, md5_checksum = md5_checksum, file_hash = file_hash, secret = secret };
|
||||
public override long ID { get => id; set => id = value; }
|
||||
public override int Parts { get => parts; set => parts = value; }
|
||||
public override string Name { get => name; set => name = value; }
|
||||
}
|
||||
partial class InputFileBig
|
||||
{
|
||||
public override InputEncryptedFileBase ToInputEncryptedFile(int key_fingerprint) => new InputEncryptedFileBigUploaded { id = id, parts = parts, key_fingerprint = key_fingerprint };
|
||||
public override InputSecureFileBase ToInputSecureFile(byte[] file_hash, byte[] secret) => new InputSecureFileUploaded { id = id, parts = parts, file_hash = file_hash, secret = secret };
|
||||
public override long ID { get => id; set => id = value; }
|
||||
public override int Parts { get => parts; set => parts = value; }
|
||||
public override string Name { get => name; set => name = value; }
|
||||
}
|
||||
partial class InputFileStoryDocument // apparently this is used only in InputMediaUploadedDocument.file
|
||||
{
|
||||
public override InputEncryptedFileBase ToInputEncryptedFile(int key_fingerprint) => throw new NotSupportedException();
|
||||
public override InputSecureFileBase ToInputSecureFile(byte[] file_hash, byte[] secret) => throw new NotSupportedException();
|
||||
public override long ID { get => 0; set => throw new NotSupportedException(); }
|
||||
public override int Parts { get => 0; set => throw new NotSupportedException(); }
|
||||
public override string Name { get => null; set => throw new NotSupportedException(); }
|
||||
}
|
||||
|
||||
partial class InputMediaUploadedDocument
|
||||
|
|
|
|||
|
|
@ -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: 185
|
||||
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 186
|
||||
|
||||
Release Notes:
|
||||
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
||||
|
|
|
|||
Loading…
Reference in a new issue