API Layer 166: colors/emoji, new quotes, new link previews, distant replies, invert_media, premium boosts/giveaway/gifts...

see https://t.me/tginfoen/1760
This commit is contained in:
Wizou 2023-10-28 23:47:04 +02:00
parent eb375824e4
commit df2b2a7907
7 changed files with 676 additions and 168 deletions

View file

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

View file

@ -159,7 +159,7 @@ namespace WTelegram
{ {
flags = (Message.Flags)sent.flags | (reply_to_msg_id == 0 ? 0 : Message.Flags.has_reply_to) | (peer is InputPeerSelf ? 0 : Message.Flags.has_from_id), flags = (Message.Flags)sent.flags | (reply_to_msg_id == 0 ? 0 : Message.Flags.has_reply_to) | (peer is InputPeerSelf ? 0 : Message.Flags.has_from_id),
id = sent.id, date = sent.date, message = text, entities = sent.entities, media = sent.media, ttl_period = sent.ttl_period, id = sent.id, date = sent.date, message = text, entities = sent.entities, media = sent.media, ttl_period = sent.ttl_period,
reply_to = reply_to_msg_id == 0 ? null : new MessageReplyHeader { reply_to_msg_id = reply_to_msg_id }, reply_to = reply_to_msg_id == 0 ? null : new MessageReplyHeader { reply_to_msg_id = reply_to_msg_id, flags = MessageReplyHeader.Flags.has_reply_to_msg_id },
from_id = peer is InputPeerSelf ? null : new PeerUser { user_id = _session.UserId }, from_id = peer is InputPeerSelf ? null : new PeerUser { user_id = _session.UserId },
peer_id = InputToPeer(peer) peer_id = InputToPeer(peer)
}; };

View file

@ -296,6 +296,7 @@ namespace TL
correct_answers = results.results?.Where(pav => pav.flags.HasFlag(PollAnswerVoters.Flags.correct)).Select(pav => pav.option).ToArray(), correct_answers = results.results?.Where(pav => pav.flags.HasFlag(PollAnswerVoters.Flags.correct)).Select(pav => pav.option).ToArray(),
flags = (results.results != null ? InputMediaPoll.Flags.has_correct_answers : 0) | (results.solution != null ? InputMediaPoll.Flags.has_solution : 0) }; } flags = (results.results != null ? InputMediaPoll.Flags.has_correct_answers : 0) | (results.solution != null ? InputMediaPoll.Flags.has_solution : 0) }; }
partial class MessageMediaDice { public override InputMedia ToInputMedia() => new InputMediaDice { emoticon = emoticon }; } partial class MessageMediaDice { public override InputMedia ToInputMedia() => new InputMediaDice { emoticon = emoticon }; }
partial class MessageMediaWebPage { public override InputMedia ToInputMedia() => new InputMediaWebPage { flags = (InputMediaWebPage.Flags)((int)flags & 3), url = webpage.Url }; }
partial class PhotoBase partial class PhotoBase
{ {

View file

@ -462,6 +462,20 @@ namespace TL
public InputPeer peer; public InputPeer peer;
public int id; public int id;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputMediaWebPage"/></para></summary>
[TLDef(0xC21B8849)]
public class InputMediaWebPage : InputMedia
{
public Flags flags;
public string url;
[Flags] public enum Flags : uint
{
force_large_media = 0x1,
force_small_media = 0x2,
optional = 0x4,
}
}
/// <summary>Defines a new group profile photo. <para>See <a href="https://corefork.telegram.org/type/InputChatPhoto"/></para> <para>Derived classes: <see cref="InputChatUploadedPhoto"/>, <see cref="InputChatPhoto"/></para></summary> /// <summary>Defines a new group profile photo. <para>See <a href="https://corefork.telegram.org/type/InputChatPhoto"/></para> <para>Derived classes: <see cref="InputChatUploadedPhoto"/>, <see cref="InputChatPhoto"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/inputChatPhotoEmpty">inputChatPhotoEmpty</a></remarks> /// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/inputChatPhotoEmpty">inputChatPhotoEmpty</a></remarks>
@ -723,7 +737,7 @@ namespace TL
public long id; public long id;
} }
/// <summary>Indicates info about a certain user <para>See <a href="https://corefork.telegram.org/constructor/user"/></para></summary> /// <summary>Indicates info about a certain user <para>See <a href="https://corefork.telegram.org/constructor/user"/></para></summary>
[TLDef(0xABB5F120)] [TLDef(0xEB602F25)]
public partial class User : UserBase public partial class User : UserBase
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -759,6 +773,8 @@ namespace TL
/// <summary>Additional usernames</summary> /// <summary>Additional usernames</summary>
[IfFlag(32)] public Username[] usernames; [IfFlag(32)] public Username[] usernames;
[IfFlag(37)] public int stories_max_id; [IfFlag(37)] public int stories_max_id;
[IfFlag(39)] public int color;
[IfFlag(38)] public long background_emoji_id;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
@ -832,6 +848,10 @@ namespace TL
stories_unavailable = 0x10, stories_unavailable = 0x10,
/// <summary>Field <see cref="stories_max_id"/> has a value</summary> /// <summary>Field <see cref="stories_max_id"/> has a value</summary>
has_stories_max_id = 0x20, has_stories_max_id = 0x20,
/// <summary>Field <see cref="background_emoji_id"/> has a value</summary>
has_background_emoji_id = 0x40,
/// <summary>Field <see cref="color"/> has a value</summary>
has_color = 0x80,
} }
} }
@ -972,7 +992,7 @@ namespace TL
public override string Title => title; public override string Title => title;
} }
/// <summary>Channel/supergroup info <para>See <a href="https://corefork.telegram.org/constructor/channel"/></para></summary> /// <summary>Channel/supergroup info <para>See <a href="https://corefork.telegram.org/constructor/channel"/></para></summary>
[TLDef(0x94F592DB)] [TLDef(0x1981EA7E)]
public partial class Channel : ChatBase public partial class Channel : ChatBase
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -1004,6 +1024,8 @@ namespace TL
/// <summary>Additional usernames</summary> /// <summary>Additional usernames</summary>
[IfFlag(32)] public Username[] usernames; [IfFlag(32)] public Username[] usernames;
[IfFlag(36)] public int stories_max_id; [IfFlag(36)] public int stories_max_id;
[IfFlag(38)] public int color;
[IfFlag(37)] public long background_emoji_id;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
@ -1070,6 +1092,10 @@ namespace TL
stories_unavailable = 0x8, stories_unavailable = 0x8,
/// <summary>Field <see cref="stories_max_id"/> has a value</summary> /// <summary>Field <see cref="stories_max_id"/> has a value</summary>
has_stories_max_id = 0x10, has_stories_max_id = 0x10,
/// <summary>Field <see cref="background_emoji_id"/> has a value</summary>
has_background_emoji_id = 0x20,
/// <summary>Field <see cref="color"/> has a value</summary>
has_color = 0x40,
} }
/// <summary>ID of the channel</summary> /// <summary>ID of the channel</summary>
@ -1674,6 +1700,7 @@ namespace TL
has_ttl_period = 0x2000000, has_ttl_period = 0x2000000,
/// <summary>Whether this message is <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">protected</a> and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera).</summary> /// <summary>Whether this message is <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">protected</a> and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera).</summary>
noforwards = 0x4000000, noforwards = 0x4000000,
invert_media = 0x8000000,
} }
/// <summary>ID of the message</summary> /// <summary>ID of the message</summary>
@ -1822,11 +1849,20 @@ namespace TL
} }
} }
/// <summary>Preview of webpage <para>See <a href="https://corefork.telegram.org/constructor/messageMediaWebPage"/></para></summary> /// <summary>Preview of webpage <para>See <a href="https://corefork.telegram.org/constructor/messageMediaWebPage"/></para></summary>
[TLDef(0xA32DD600)] [TLDef(0xDDF10C3B)]
public class MessageMediaWebPage : MessageMedia public partial class MessageMediaWebPage : MessageMedia
{ {
public Flags flags;
/// <summary>Webpage preview</summary> /// <summary>Webpage preview</summary>
public WebPageBase webpage; public WebPageBase webpage;
[Flags] public enum Flags : uint
{
force_large_media = 0x1,
force_small_media = 0x2,
manual = 0x8,
safe = 0x10,
}
} }
/// <summary>Venue <para>See <a href="https://corefork.telegram.org/constructor/messageMediaVenue"/></para></summary> /// <summary>Venue <para>See <a href="https://corefork.telegram.org/constructor/messageMediaVenue"/></para></summary>
[TLDef(0x2EC0533F)] [TLDef(0x2EC0533F)]
@ -1947,6 +1983,23 @@ namespace TL
via_mention = 0x2, via_mention = 0x2,
} }
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageMediaGiveaway"/></para></summary>
[TLDef(0x58260664)]
public class MessageMediaGiveaway : MessageMedia
{
public Flags flags;
public long[] channels;
[IfFlag(1)] public string[] countries_iso2;
public int quantity;
public int months;
public DateTime until_date;
[Flags] public enum Flags : uint
{
only_new_subscribers = 0x1,
has_countries_iso2 = 0x2,
}
}
/// <summary>Object describing actions connected to a service message. <para>See <a href="https://corefork.telegram.org/type/MessageAction"/></para> <para>Derived classes: <see cref="MessageActionChatCreate"/>, <see cref="MessageActionChatEditTitle"/>, <see cref="MessageActionChatEditPhoto"/>, <see cref="MessageActionChatDeletePhoto"/>, <see cref="MessageActionChatAddUser"/>, <see cref="MessageActionChatDeleteUser"/>, <see cref="MessageActionChatJoinedByLink"/>, <see cref="MessageActionChannelCreate"/>, <see cref="MessageActionChatMigrateTo"/>, <see cref="MessageActionChannelMigrateFrom"/>, <see cref="MessageActionPinMessage"/>, <see cref="MessageActionHistoryClear"/>, <see cref="MessageActionGameScore"/>, <see cref="MessageActionPaymentSentMe"/>, <see cref="MessageActionPaymentSent"/>, <see cref="MessageActionPhoneCall"/>, <see cref="MessageActionScreenshotTaken"/>, <see cref="MessageActionCustomAction"/>, <see cref="MessageActionBotAllowed"/>, <see cref="MessageActionSecureValuesSentMe"/>, <see cref="MessageActionSecureValuesSent"/>, <see cref="MessageActionContactSignUp"/>, <see cref="MessageActionGeoProximityReached"/>, <see cref="MessageActionGroupCall"/>, <see cref="MessageActionInviteToGroupCall"/>, <see cref="MessageActionSetMessagesTTL"/>, <see cref="MessageActionGroupCallScheduled"/>, <see cref="MessageActionSetChatTheme"/>, <see cref="MessageActionChatJoinedByRequest"/>, <see cref="MessageActionWebViewDataSentMe"/>, <see cref="MessageActionWebViewDataSent"/>, <see cref="MessageActionGiftPremium"/>, <see cref="MessageActionTopicCreate"/>, <see cref="MessageActionTopicEdit"/>, <see cref="MessageActionSuggestProfilePhoto"/>, <see cref="MessageActionRequestedPeer"/>, <see cref="MessageActionSetChatWallPaper"/>, <see cref="MessageActionSetSameChatWallPaper"/></para></summary> /// <summary>Object describing actions connected to a service message. <para>See <a href="https://corefork.telegram.org/type/MessageAction"/></para> <para>Derived classes: <see cref="MessageActionChatCreate"/>, <see cref="MessageActionChatEditTitle"/>, <see cref="MessageActionChatEditPhoto"/>, <see cref="MessageActionChatDeletePhoto"/>, <see cref="MessageActionChatAddUser"/>, <see cref="MessageActionChatDeleteUser"/>, <see cref="MessageActionChatJoinedByLink"/>, <see cref="MessageActionChannelCreate"/>, <see cref="MessageActionChatMigrateTo"/>, <see cref="MessageActionChannelMigrateFrom"/>, <see cref="MessageActionPinMessage"/>, <see cref="MessageActionHistoryClear"/>, <see cref="MessageActionGameScore"/>, <see cref="MessageActionPaymentSentMe"/>, <see cref="MessageActionPaymentSent"/>, <see cref="MessageActionPhoneCall"/>, <see cref="MessageActionScreenshotTaken"/>, <see cref="MessageActionCustomAction"/>, <see cref="MessageActionBotAllowed"/>, <see cref="MessageActionSecureValuesSentMe"/>, <see cref="MessageActionSecureValuesSent"/>, <see cref="MessageActionContactSignUp"/>, <see cref="MessageActionGeoProximityReached"/>, <see cref="MessageActionGroupCall"/>, <see cref="MessageActionInviteToGroupCall"/>, <see cref="MessageActionSetMessagesTTL"/>, <see cref="MessageActionGroupCallScheduled"/>, <see cref="MessageActionSetChatTheme"/>, <see cref="MessageActionChatJoinedByRequest"/>, <see cref="MessageActionWebViewDataSentMe"/>, <see cref="MessageActionWebViewDataSent"/>, <see cref="MessageActionGiftPremium"/>, <see cref="MessageActionTopicCreate"/>, <see cref="MessageActionTopicEdit"/>, <see cref="MessageActionSuggestProfilePhoto"/>, <see cref="MessageActionRequestedPeer"/>, <see cref="MessageActionSetChatWallPaper"/>, <see cref="MessageActionSetSameChatWallPaper"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/messageActionEmpty">messageActionEmpty</a></remarks> /// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/messageActionEmpty">messageActionEmpty</a></remarks>
@ -2346,6 +2399,25 @@ namespace TL
/// <summary>The user applied a <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a> previously sent by the other user in a <see cref="MessageActionSetChatWallPaper"/> message. <para>See <a href="https://corefork.telegram.org/constructor/messageActionSetSameChatWallPaper"/></para></summary> /// <summary>The user applied a <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a> previously sent by the other user in a <see cref="MessageActionSetChatWallPaper"/> message. <para>See <a href="https://corefork.telegram.org/constructor/messageActionSetSameChatWallPaper"/></para></summary>
[TLDef(0xC0787D6D)] [TLDef(0xC0787D6D)]
public class MessageActionSetSameChatWallPaper : MessageActionSetChatWallPaper { } public class MessageActionSetSameChatWallPaper : MessageActionSetChatWallPaper { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionGiftCode"/></para></summary>
[TLDef(0xD2CFDB0E)]
public class MessageActionGiftCode : MessageAction
{
public Flags flags;
[IfFlag(1)] public Peer boost_peer;
public int months;
public string slug;
[Flags] public enum Flags : uint
{
via_giveaway = 0x1,
has_boost_peer = 0x2,
unclaimed = 0x4,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionGiveawayLaunch"/></para></summary>
[TLDef(0x332BA9ED)]
public class MessageActionGiveawayLaunch : MessageAction { }
/// <summary>Chat info. <para>See <a href="https://corefork.telegram.org/type/Dialog"/></para> <para>Derived classes: <see cref="Dialog"/>, <see cref="DialogFolder"/></para></summary> /// <summary>Chat info. <para>See <a href="https://corefork.telegram.org/type/Dialog"/></para> <para>Derived classes: <see cref="Dialog"/>, <see cref="DialogFolder"/></para></summary>
public abstract class DialogBase : IObject public abstract class DialogBase : IObject
@ -3536,6 +3608,7 @@ namespace TL
popup = 0x1, popup = 0x1,
/// <summary>Field <see cref="inbox_date"/> has a value</summary> /// <summary>Field <see cref="inbox_date"/> has a value</summary>
has_inbox_date = 0x2, has_inbox_date = 0x2,
invert_media = 0x4,
} }
} }
/// <summary>Privacy rules were changed <para>See <a href="https://corefork.telegram.org/constructor/updatePrivacy"/></para></summary> /// <summary>Privacy rules were changed <para>See <a href="https://corefork.telegram.org/constructor/updatePrivacy"/></para></summary>
@ -6147,28 +6220,47 @@ namespace TL
{ {
/// <summary>Preview ID</summary> /// <summary>Preview ID</summary>
public virtual long ID { get; } public virtual long ID { get; }
public virtual string Url { get; }
} }
/// <summary>No preview is available for the webpage <para>See <a href="https://corefork.telegram.org/constructor/webPageEmpty"/></para></summary> /// <summary>No preview is available for the webpage <para>See <a href="https://corefork.telegram.org/constructor/webPageEmpty"/></para></summary>
[TLDef(0xEB1477E8)] [TLDef(0x211A1788)]
public class WebPageEmpty : WebPageBase public class WebPageEmpty : WebPageBase
{ {
public Flags flags;
/// <summary>Preview ID</summary> /// <summary>Preview ID</summary>
public long id; public long id;
[IfFlag(0)] public string url;
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="url"/> has a value</summary>
has_url = 0x1,
}
/// <summary>Preview ID</summary> /// <summary>Preview ID</summary>
public override long ID => id; public override long ID => id;
public override string Url => url;
} }
/// <summary>A preview of the webpage is currently being generated <para>See <a href="https://corefork.telegram.org/constructor/webPagePending"/></para></summary> /// <summary>A preview of the webpage is currently being generated <para>See <a href="https://corefork.telegram.org/constructor/webPagePending"/></para></summary>
[TLDef(0xC586DA1C)] [TLDef(0xB0D13E47)]
public class WebPagePending : WebPageBase public class WebPagePending : WebPageBase
{ {
public Flags flags;
/// <summary>ID of preview</summary> /// <summary>ID of preview</summary>
public long id; public long id;
[IfFlag(0)] public string url;
/// <summary>When was the processing started</summary> /// <summary>When was the processing started</summary>
public DateTime date; public DateTime date;
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="url"/> has a value</summary>
has_url = 0x1,
}
/// <summary>ID of preview</summary> /// <summary>ID of preview</summary>
public override long ID => id; public override long ID => id;
public override string Url => url;
} }
/// <summary>Webpage preview <para>See <a href="https://corefork.telegram.org/constructor/webPage"/></para></summary> /// <summary>Webpage preview <para>See <a href="https://corefork.telegram.org/constructor/webPage"/></para></summary>
[TLDef(0xE89C45B2)] [TLDef(0xE89C45B2)]
@ -6239,10 +6331,13 @@ namespace TL
has_cached_page = 0x400, has_cached_page = 0x400,
/// <summary>Field <see cref="attributes"/> has a value</summary> /// <summary>Field <see cref="attributes"/> has a value</summary>
has_attributes = 0x1000, has_attributes = 0x1000,
has_large_media = 0x2000,
} }
/// <summary>Preview ID</summary> /// <summary>Preview ID</summary>
public override long ID => id; public override long ID => id;
/// <summary>URL of previewed webpage</summary>
public override string Url => url;
} }
/// <summary>The preview of the webpage hasn't changed <para>See <a href="https://corefork.telegram.org/constructor/webPageNotModified"/></para></summary> /// <summary>The preview of the webpage hasn't changed <para>See <a href="https://corefork.telegram.org/constructor/webPageNotModified"/></para></summary>
[TLDef(0x7311CA11)] [TLDef(0x7311CA11)]
@ -6492,7 +6587,7 @@ namespace TL
public ChatBase chat; public ChatBase chat;
} }
/// <summary>Chat invite info <para>See <a href="https://corefork.telegram.org/constructor/chatInvite"/></para></summary> /// <summary>Chat invite info <para>See <a href="https://corefork.telegram.org/constructor/chatInvite"/></para></summary>
[TLDef(0x300C44C1)] [TLDef(0xCDE0EC40)]
public class ChatInvite : ChatInviteBase public class ChatInvite : ChatInviteBase
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -6507,6 +6602,7 @@ namespace TL
public int participants_count; public int participants_count;
/// <summary>A few of the participants that are in the group</summary> /// <summary>A few of the participants that are in the group</summary>
[IfFlag(4)] public UserBase[] participants; [IfFlag(4)] public UserBase[] participants;
public int color;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
@ -6633,6 +6729,7 @@ namespace TL
emojis = 0x80, emojis = 0x80,
/// <summary>Field <see cref="thumb_document_id"/> has a value</summary> /// <summary>Field <see cref="thumb_document_id"/> has a value</summary>
has_thumb_document_id = 0x100, has_thumb_document_id = 0x100,
text_color = 0x200,
} }
} }
@ -7040,9 +7137,6 @@ namespace TL
/// <summary>Message entity representing <del>strikethrough</del> text. <para>See <a href="https://corefork.telegram.org/constructor/messageEntityStrike"/></para></summary> /// <summary>Message entity representing <del>strikethrough</del> text. <para>See <a href="https://corefork.telegram.org/constructor/messageEntityStrike"/></para></summary>
[TLDef(0xBF0693D4)] [TLDef(0xBF0693D4)]
public class MessageEntityStrike : MessageEntity { } public class MessageEntityStrike : MessageEntity { }
/// <summary>Message entity representing a block quote. <para>See <a href="https://corefork.telegram.org/constructor/messageEntityBlockquote"/></para></summary>
[TLDef(0x020DF5D0)]
public class MessageEntityBlockquote : MessageEntity { }
/// <summary>Indicates a credit card number <para>See <a href="https://corefork.telegram.org/constructor/messageEntityBankCard"/></para></summary> /// <summary>Indicates a credit card number <para>See <a href="https://corefork.telegram.org/constructor/messageEntityBankCard"/></para></summary>
[TLDef(0x761E6AF4)] [TLDef(0x761E6AF4)]
public class MessageEntityBankCard : MessageEntity { } public class MessageEntityBankCard : MessageEntity { }
@ -7056,6 +7150,9 @@ namespace TL
/// <summary>Document ID of the <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji</a>, use <see cref="SchemaExtensions.Messages_GetCustomEmojiDocuments">Messages_GetCustomEmojiDocuments</see> to fetch the emoji animation and the actual emoji it represents.</summary> /// <summary>Document ID of the <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji</a>, use <see cref="SchemaExtensions.Messages_GetCustomEmojiDocuments">Messages_GetCustomEmojiDocuments</see> to fetch the emoji animation and the actual emoji it represents.</summary>
public long document_id; public long document_id;
} }
/// <summary>Message entity representing a block quote. <para>See <a href="https://corefork.telegram.org/constructor/messageEntityBlockquote"/></para></summary>
[TLDef(0x020DF5D0)]
public class MessageEntityBlockquote : MessageEntity { }
/// <summary>Represents a channel <para>See <a href="https://corefork.telegram.org/type/InputChannel"/></para> <para>Derived classes: <see cref="InputChannel"/>, <see cref="InputChannelFromMessage"/></para></summary> /// <summary>Represents a channel <para>See <a href="https://corefork.telegram.org/type/InputChannel"/></para> <para>Derived classes: <see cref="InputChannel"/>, <see cref="InputChannelFromMessage"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/inputChannelEmpty">inputChannelEmpty</a></remarks> /// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/inputChannelEmpty">inputChannelEmpty</a></remarks>
@ -7469,6 +7566,7 @@ namespace TL
has_entities = 0x2, has_entities = 0x2,
/// <summary>Field <see cref="reply_markup"/> has a value</summary> /// <summary>Field <see cref="reply_markup"/> has a value</summary>
has_reply_markup = 0x4, has_reply_markup = 0x4,
invert_media = 0x8,
} }
} }
/// <summary>Simple text message <para>See <a href="https://corefork.telegram.org/constructor/inputBotInlineMessageText"/></para></summary> /// <summary>Simple text message <para>See <a href="https://corefork.telegram.org/constructor/inputBotInlineMessageText"/></para></summary>
@ -7492,6 +7590,7 @@ namespace TL
has_entities = 0x2, has_entities = 0x2,
/// <summary>Field <see cref="reply_markup"/> has a value</summary> /// <summary>Field <see cref="reply_markup"/> has a value</summary>
has_reply_markup = 0x4, has_reply_markup = 0x4,
invert_media = 0x8,
} }
} }
/// <summary>Geolocation <para>See <a href="https://corefork.telegram.org/constructor/inputBotInlineMessageMediaGeo"/></para></summary> /// <summary>Geolocation <para>See <a href="https://corefork.telegram.org/constructor/inputBotInlineMessageMediaGeo"/></para></summary>
@ -7619,6 +7718,26 @@ namespace TL
has_reply_markup = 0x4, has_reply_markup = 0x4,
} }
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputBotInlineMessageMediaWebPage"/></para></summary>
[TLDef(0xBDDCC510)]
public class InputBotInlineMessageMediaWebPage : InputBotInlineMessage
{
public Flags flags;
public string message;
[IfFlag(1)] public MessageEntity[] entities;
public string url;
[IfFlag(2)] public ReplyMarkup reply_markup;
[Flags] public enum Flags : uint
{
has_entities = 0x2,
has_reply_markup = 0x4,
invert_media = 0x8,
force_large_media = 0x10,
force_small_media = 0x20,
optional = 0x40,
}
}
/// <summary>Inline bot result <para>See <a href="https://corefork.telegram.org/type/InputBotInlineResult"/></para> <para>Derived classes: <see cref="InputBotInlineResult"/>, <see cref="InputBotInlineResultPhoto"/>, <see cref="InputBotInlineResultDocument"/>, <see cref="InputBotInlineResultGame"/></para></summary> /// <summary>Inline bot result <para>See <a href="https://corefork.telegram.org/type/InputBotInlineResult"/></para> <para>Derived classes: <see cref="InputBotInlineResult"/>, <see cref="InputBotInlineResultPhoto"/>, <see cref="InputBotInlineResultDocument"/>, <see cref="InputBotInlineResultGame"/></para></summary>
public abstract class InputBotInlineResultBase : IObject public abstract class InputBotInlineResultBase : IObject
@ -7758,6 +7877,7 @@ namespace TL
has_entities = 0x2, has_entities = 0x2,
/// <summary>Field <see cref="reply_markup"/> has a value</summary> /// <summary>Field <see cref="reply_markup"/> has a value</summary>
has_reply_markup = 0x4, has_reply_markup = 0x4,
invert_media = 0x8,
} }
} }
/// <summary>Send a simple text message <para>See <a href="https://corefork.telegram.org/constructor/botInlineMessageText"/></para></summary> /// <summary>Send a simple text message <para>See <a href="https://corefork.telegram.org/constructor/botInlineMessageText"/></para></summary>
@ -7781,6 +7901,7 @@ namespace TL
has_entities = 0x2, has_entities = 0x2,
/// <summary>Field <see cref="reply_markup"/> has a value</summary> /// <summary>Field <see cref="reply_markup"/> has a value</summary>
has_reply_markup = 0x4, has_reply_markup = 0x4,
invert_media = 0x8,
} }
} }
/// <summary>Send a geolocation <para>See <a href="https://corefork.telegram.org/constructor/botInlineMessageMediaGeo"/></para></summary> /// <summary>Send a geolocation <para>See <a href="https://corefork.telegram.org/constructor/botInlineMessageMediaGeo"/></para></summary>
@ -7893,6 +8014,27 @@ namespace TL
test = 0x8, test = 0x8,
} }
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/botInlineMessageMediaWebPage"/></para></summary>
[TLDef(0x809AD9A6)]
public class BotInlineMessageMediaWebPage : BotInlineMessage
{
public Flags flags;
public string message;
[IfFlag(1)] public MessageEntity[] entities;
public string url;
[IfFlag(2)] public ReplyMarkup reply_markup;
[Flags] public enum Flags : uint
{
has_entities = 0x2,
has_reply_markup = 0x4,
invert_media = 0x8,
force_large_media = 0x10,
force_small_media = 0x20,
manual = 0x80,
safe = 0x100,
}
}
/// <summary>Results of an inline query <para>See <a href="https://corefork.telegram.org/type/BotInlineResult"/></para> <para>Derived classes: <see cref="BotInlineResult"/>, <see cref="BotInlineMediaResult"/></para></summary> /// <summary>Results of an inline query <para>See <a href="https://corefork.telegram.org/type/BotInlineResult"/></para> <para>Derived classes: <see cref="BotInlineResult"/>, <see cref="BotInlineMediaResult"/></para></summary>
public abstract class BotInlineResultBase : IObject public abstract class BotInlineResultBase : IObject
@ -8404,28 +8546,31 @@ namespace TL
} }
} }
/// <summary>Represents a message <a href="https://corefork.telegram.org/api/drafts">draft</a>. <para>See <a href="https://corefork.telegram.org/constructor/draftMessage"/></para></summary> /// <summary>Represents a message <a href="https://corefork.telegram.org/api/drafts">draft</a>. <para>See <a href="https://corefork.telegram.org/constructor/draftMessage"/></para></summary>
[TLDef(0xFD8E711F)] [TLDef(0x3FCCF7EF)]
public class DraftMessage : DraftMessageBase public class DraftMessage : DraftMessageBase
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags; public Flags flags;
/// <summary>The message this message will reply to</summary> [IfFlag(4)] public InputReplyTo reply_to;
[IfFlag(0)] public int reply_to_msg_id;
/// <summary>The draft</summary> /// <summary>The draft</summary>
public string message; public string message;
/// <summary>Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text.</summary> /// <summary>Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text.</summary>
[IfFlag(3)] public MessageEntity[] entities; [IfFlag(3)] public MessageEntity[] entities;
[IfFlag(5)] public InputMedia media;
/// <summary>Date of last update of the draft.</summary> /// <summary>Date of last update of the draft.</summary>
public DateTime date; public DateTime date;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
/// <summary>Field <see cref="reply_to_msg_id"/> has a value</summary>
has_reply_to_msg_id = 0x1,
/// <summary>Whether no webpage preview will be generated</summary> /// <summary>Whether no webpage preview will be generated</summary>
no_webpage = 0x2, no_webpage = 0x2,
/// <summary>Field <see cref="entities"/> has a value</summary> /// <summary>Field <see cref="entities"/> has a value</summary>
has_entities = 0x8, has_entities = 0x8,
/// <summary>Field <see cref="reply_to"/> has a value</summary>
has_reply_to = 0x10,
/// <summary>Field <see cref="media"/> has a value</summary>
has_media = 0x20,
invert_media = 0x40,
} }
} }
@ -10470,6 +10615,20 @@ namespace TL
/// <summary>Whether antispam functionality was enabled or disabled.</summary> /// <summary>Whether antispam functionality was enabled or disabled.</summary>
public bool new_value; public bool new_value;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeColor"/></para></summary>
[TLDef(0x3C2B247B)]
public class ChannelAdminLogEventActionChangeColor : ChannelAdminLogEventAction
{
public int prev_value;
public int new_value;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeBackgroundEmoji"/></para></summary>
[TLDef(0x445FC434)]
public class ChannelAdminLogEventActionChangeBackgroundEmoji : ChannelAdminLogEventAction
{
public long prev_value;
public long new_value;
}
/// <summary>Admin log event <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEvent"/></para></summary> /// <summary>Admin log event <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEvent"/></para></summary>
[TLDef(0x1FAD68CD)] [TLDef(0x1FAD68CD)]
@ -12945,17 +13104,21 @@ namespace TL
/// <summary>Reply information <para>See <a href="https://corefork.telegram.org/type/MessageReplyHeader"/></para> <para>Derived classes: <see cref="MessageReplyHeader"/>, <see cref="MessageReplyStoryHeader"/></para></summary> /// <summary>Reply information <para>See <a href="https://corefork.telegram.org/type/MessageReplyHeader"/></para> <para>Derived classes: <see cref="MessageReplyHeader"/>, <see cref="MessageReplyStoryHeader"/></para></summary>
public abstract class MessageReplyHeaderBase : IObject { } public abstract class MessageReplyHeaderBase : IObject { }
/// <summary>Message replies and <a href="https://corefork.telegram.org/api/threads">thread</a> information <para>See <a href="https://corefork.telegram.org/constructor/messageReplyHeader"/></para></summary> /// <summary>Message replies and <a href="https://corefork.telegram.org/api/threads">thread</a> information <para>See <a href="https://corefork.telegram.org/constructor/messageReplyHeader"/></para></summary>
[TLDef(0xA6D57763)] [TLDef(0x6EEBCABD)]
public class MessageReplyHeader : MessageReplyHeaderBase public class MessageReplyHeader : MessageReplyHeaderBase
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags; public Flags flags;
/// <summary>ID of message to which this message is replying</summary> /// <summary>ID of message to which this message is replying</summary>
public int reply_to_msg_id; [IfFlag(4)] public int reply_to_msg_id;
/// <summary>For replies sent in <a href="https://corefork.telegram.org/api/threads">channel discussion threads</a> of which the current user is not a member, the discussion group ID</summary> /// <summary>For replies sent in <a href="https://corefork.telegram.org/api/threads">channel discussion threads</a> of which the current user is not a member, the discussion group ID</summary>
[IfFlag(0)] public Peer reply_to_peer_id; [IfFlag(0)] public Peer reply_to_peer_id;
[IfFlag(5)] public MessageFwdHeader reply_from;
[IfFlag(8)] public MessageMedia reply_media;
/// <summary>ID of the message that started this <a href="https://corefork.telegram.org/api/threads">message thread</a></summary> /// <summary>ID of the message that started this <a href="https://corefork.telegram.org/api/threads">message thread</a></summary>
[IfFlag(1)] public int reply_to_top_id; [IfFlag(1)] public int reply_to_top_id;
[IfFlag(6)] public string quote_text;
[IfFlag(7)] public MessageEntity[] quote_entities;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
@ -12967,6 +13130,17 @@ namespace TL
reply_to_scheduled = 0x4, reply_to_scheduled = 0x4,
/// <summary>Whether this message was sent in a <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a> (except for the General topic).</summary> /// <summary>Whether this message was sent in a <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a> (except for the General topic).</summary>
forum_topic = 0x8, forum_topic = 0x8,
/// <summary>Field <see cref="reply_to_msg_id"/> has a value</summary>
has_reply_to_msg_id = 0x10,
/// <summary>Field <see cref="reply_from"/> has a value</summary>
has_reply_from = 0x20,
/// <summary>Field <see cref="quote_text"/> has a value</summary>
has_quote_text = 0x40,
/// <summary>Field <see cref="quote_entities"/> has a value</summary>
has_quote_entities = 0x80,
/// <summary>Field <see cref="reply_media"/> has a value</summary>
has_reply_media = 0x100,
quote = 0x200,
} }
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageReplyStoryHeader"/></para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageReplyStoryHeader"/></para></summary>
@ -14107,6 +14281,13 @@ namespace TL
/// <summary>The invoice slug</summary> /// <summary>The invoice slug</summary>
public string slug; public string slug;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputInvoicePremiumGiftCode"/></para></summary>
[TLDef(0x98986C0D)]
public class InputInvoicePremiumGiftCode : InputInvoice
{
public InputStorePaymentPurpose purpose;
public PremiumGiftCodeOption option;
}
/// <summary>Exported <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> <para>See <a href="https://corefork.telegram.org/constructor/payments.exportedInvoice"/></para></summary> /// <summary>Exported <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> <para>See <a href="https://corefork.telegram.org/constructor/payments.exportedInvoice"/></para></summary>
[TLDef(0xAED0CBD9)] [TLDef(0xAED0CBD9)]
@ -14180,6 +14361,41 @@ namespace TL
/// <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> /// <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; public long amount;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputStorePaymentPremiumGiftCode"/></para></summary>
[TLDef(0xA3805F3F)]
public class InputStorePaymentPremiumGiftCode : InputStorePaymentPurpose
{
public Flags flags;
public InputUserBase[] users;
[IfFlag(0)] public InputPeer boost_peer;
public string currency;
public long amount;
[Flags] public enum Flags : uint
{
has_boost_peer = 0x1,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputStorePaymentPremiumGiveaway"/></para></summary>
[TLDef(0x7C9375E6)]
public class InputStorePaymentPremiumGiveaway : InputStorePaymentPurpose
{
public Flags flags;
public InputPeer boost_peer;
[IfFlag(1)] public InputPeer[] additional_peers;
[IfFlag(2)] public string[] countries_iso2;
public long random_id;
public DateTime until_date;
public string currency;
public long amount;
[Flags] public enum Flags : uint
{
only_new_subscribers = 0x1,
has_additional_peers = 0x2,
has_countries_iso2 = 0x4,
}
}
/// <summary>Telegram Premium gift option <para>See <a href="https://corefork.telegram.org/constructor/premiumGiftOption"/></para></summary> /// <summary>Telegram Premium gift option <para>See <a href="https://corefork.telegram.org/constructor/premiumGiftOption"/></para></summary>
[TLDef(0x74C34319)] [TLDef(0x74C34319)]
@ -15281,7 +15497,7 @@ namespace TL
/// <summary>Contains info about a message or story to reply to. <para>See <a href="https://corefork.telegram.org/type/InputReplyTo"/></para> <para>Derived classes: <see cref="InputReplyToMessage"/>, <see cref="InputReplyToStory"/></para></summary> /// <summary>Contains info about a message or story to reply to. <para>See <a href="https://corefork.telegram.org/type/InputReplyTo"/></para> <para>Derived classes: <see cref="InputReplyToMessage"/>, <see cref="InputReplyToStory"/></para></summary>
public abstract class InputReplyTo : IObject { } public abstract class InputReplyTo : IObject { }
/// <summary>Reply to a message. <para>See <a href="https://corefork.telegram.org/constructor/inputReplyToMessage"/></para></summary> /// <summary>Reply to a message. <para>See <a href="https://corefork.telegram.org/constructor/inputReplyToMessage"/></para></summary>
[TLDef(0x9C5386E4)] [TLDef(0x073EC805)]
public class InputReplyToMessage : InputReplyTo public class InputReplyToMessage : InputReplyTo
{ {
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary> /// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -15290,11 +15506,20 @@ namespace TL
public int reply_to_msg_id; public int reply_to_msg_id;
/// <summary>This field must contain the topic ID <strong>only</strong> when replying to messages in forum topics different from the "General" topic (i.e. <c>reply_to_msg_id</c> is set and <c>reply_to_msg_id != topicID</c> and <c>topicID != 1</c>). <br/>If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the "General" topic.</summary> /// <summary>This field must contain the topic ID <strong>only</strong> when replying to messages in forum topics different from the "General" topic (i.e. <c>reply_to_msg_id</c> is set and <c>reply_to_msg_id != topicID</c> and <c>topicID != 1</c>). <br/>If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the "General" topic.</summary>
[IfFlag(0)] public int top_msg_id; [IfFlag(0)] public int top_msg_id;
[IfFlag(1)] public InputPeer reply_to_peer_id;
[IfFlag(2)] public string quote_text;
[IfFlag(3)] public MessageEntity[] quote_entities;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
/// <summary>Field <see cref="top_msg_id"/> has a value</summary> /// <summary>Field <see cref="top_msg_id"/> has a value</summary>
has_top_msg_id = 0x1, has_top_msg_id = 0x1,
/// <summary>Field <see cref="reply_to_peer_id"/> has a value</summary>
has_reply_to_peer_id = 0x2,
/// <summary>Field <see cref="quote_text"/> has a value</summary>
has_quote_text = 0x4,
/// <summary>Field <see cref="quote_entities"/> has a value</summary>
has_quote_entities = 0x8,
} }
} }
/// <summary>Reply to a story. <para>See <a href="https://corefork.telegram.org/constructor/inputReplyToStory"/></para></summary> /// <summary>Reply to a story. <para>See <a href="https://corefork.telegram.org/constructor/inputReplyToStory"/></para></summary>
@ -15436,82 +15661,6 @@ namespace TL
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats); public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
} }
/// <summary>The current <a href="https://corefork.telegram.org/api/stories#boosts">boost status »</a> of a channel. <para>See <a href="https://corefork.telegram.org/constructor/stories.boostsStatus"/></para></summary>
[TLDef(0xE5C1AA5C)]
public class Stories_BoostsStatus : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
/// <summary>The current boost level of the channel.</summary>
public int level;
/// <summary>The number of boosts acquired so far in the current level.</summary>
public int current_level_boosts;
/// <summary>Total number of boosts acquired so far.</summary>
public int boosts;
/// <summary>Total number of boosts needed to reach the next level; if absent, the next level isn't available.</summary>
[IfFlag(0)] public int next_level_boosts;
/// <summary>Only returned to channel admins: contains the approximated number of Premium users subscribed to the channel, related to the total number of subscribers.</summary>
[IfFlag(1)] public StatsPercentValue premium_audience;
public string boost_url;
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="next_level_boosts"/> has a value</summary>
has_next_level_boosts = 0x1,
/// <summary>Field <see cref="premium_audience"/> has a value</summary>
has_premium_audience = 0x2,
/// <summary>Whether we're currently boosting this channel.</summary>
my_boost = 0x4,
}
}
/// <summary>Whether the specified channel can be <a href="https://corefork.telegram.org/api/stories#boosts">boosted, see here for more info »</a>. <para>See <a href="https://corefork.telegram.org/type/stories.CanApplyBoostResult"/></para> <para>Derived classes: <see cref="Stories_CanApplyBoostOk"/>, <see cref="Stories_CanApplyBoostReplace"/></para></summary>
public abstract class Stories_CanApplyBoostResult : IObject { }
/// <summary>We're not boosting any channel, and we can freely boost the specified channel. <para>See <a href="https://corefork.telegram.org/constructor/stories.canApplyBoostOk"/></para></summary>
[TLDef(0xC3173587)]
public class Stories_CanApplyBoostOk : Stories_CanApplyBoostResult { }
/// <summary>We're boosting another channel, but we can freely boost the specified channel. <para>See <a href="https://corefork.telegram.org/constructor/stories.canApplyBoostReplace"/></para></summary>
[TLDef(0x712C4655)]
public class Stories_CanApplyBoostReplace : Stories_CanApplyBoostResult
{
/// <summary>The channel we're currently boosting.</summary>
public Peer current_boost;
/// <summary>Channel information.</summary>
public Dictionary<long, ChatBase> chats;
}
/// <summary>Info about a <a href="https://corefork.telegram.org/api/stories#boosts">boost</a> made by a specific user. <para>See <a href="https://corefork.telegram.org/constructor/booster"/></para></summary>
[TLDef(0x0E9E6380)]
public class Booster : IObject
{
/// <summary>ID of the user that made the boost.</summary>
public long user_id;
/// <summary>Default expiration date of the boost.</summary>
public DateTime expires;
}
/// <summary>Info about the users currently <a href="https://corefork.telegram.org/api/stories#boosts">boosting</a> the channel. <para>See <a href="https://corefork.telegram.org/constructor/stories.boostersList"/></para></summary>
[TLDef(0xF3DD3D1D)]
public class Stories_BoostersList : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
/// <summary>Total number of boosters.</summary>
public int count;
/// <summary>Info about the automatic expiration date of every user's boost.</summary>
public Booster[] boosters;
/// <summary>Next offset for <a href="https://corefork.telegram.org/api/offsets">pagination</a>.</summary>
[IfFlag(0)] public string next_offset;
/// <summary>Info about the users mentioned in the <c>boosters</c> field.</summary>
public Dictionary<long, User> users;
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="next_offset"/> has a value</summary>
has_next_offset = 0x1,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.webPage"/></para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.webPage"/></para></summary>
[TLDef(0xFD5E12BD)] [TLDef(0xFD5E12BD)]
public class Messages_WebPage : IObject, IPeerResolver public class Messages_WebPage : IObject, IPeerResolver
@ -15522,4 +15671,198 @@ namespace TL
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary> /// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats); public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/premiumGiftCodeOption"/></para></summary>
[TLDef(0x257E962B)]
public class PremiumGiftCodeOption : IObject
{
public Flags flags;
public int users;
public int months;
[IfFlag(0)] public string store_product;
[IfFlag(1)] public int store_quantity;
public string currency;
public long amount;
[Flags] public enum Flags : uint
{
has_store_product = 0x1,
has_store_quantity = 0x2,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/payments.checkedGiftCode"/></para></summary>
[TLDef(0xB722F158)]
public class Payments_CheckedGiftCode : IObject, IPeerResolver
{
public Flags flags;
public Peer from_id;
[IfFlag(3)] public int giveaway_msg_id;
[IfFlag(0)] public long to_id;
public DateTime date;
public int months;
[IfFlag(1)] public DateTime used_date;
public Dictionary<long, ChatBase> chats;
public Dictionary<long, User> users;
[Flags] public enum Flags : uint
{
has_to_id = 0x1,
has_used_date = 0x2,
via_giveaway = 0x4,
has_giveaway_msg_id = 0x8,
}
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/payments.GiveawayInfo"/></para></summary>
public abstract class Payments_GiveawayInfoBase : IObject
{
public virtual DateTime StartDate { get; }
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/payments.giveawayInfo"/></para></summary>
[TLDef(0x4367DAA0)]
public class Payments_GiveawayInfo : Payments_GiveawayInfoBase
{
public Flags flags;
public DateTime start_date;
[IfFlag(1)] public DateTime joined_too_early_date;
[IfFlag(2)] public long admin_disallowed_chat_id;
[IfFlag(4)] public string disallowed_country;
[Flags] public enum Flags : uint
{
participating = 0x1,
has_joined_too_early_date = 0x2,
has_admin_disallowed_chat_id = 0x4,
preparing_results = 0x8,
has_disallowed_country = 0x10,
}
public override DateTime StartDate => start_date;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/payments.giveawayInfoResults"/></para></summary>
[TLDef(0x00CD5570)]
public class Payments_GiveawayInfoResults : Payments_GiveawayInfoBase
{
public Flags flags;
public DateTime start_date;
[IfFlag(0)] public string gift_code_slug;
public DateTime finish_date;
public int winners_count;
public int activated_count;
[Flags] public enum Flags : uint
{
winner = 0x1,
refunded = 0x2,
}
public override DateTime StartDate => start_date;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/prepaidGiveaway"/></para></summary>
[TLDef(0xB2539D54)]
public class PrepaidGiveaway : IObject
{
public long id;
public int months;
public int quantity;
public DateTime date;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/boost"/></para></summary>
[TLDef(0x2A1C8C71)]
public class Boost : IObject
{
public Flags flags;
public string id;
[IfFlag(0)] public long user_id;
[IfFlag(2)] public int giveaway_msg_id;
public DateTime date;
public DateTime expires;
[IfFlag(4)] public string used_gift_slug;
[IfFlag(5)] public int multiplier;
[Flags] public enum Flags : uint
{
has_user_id = 0x1,
gift = 0x2,
giveaway = 0x4,
unclaimed = 0x8,
has_used_gift_slug = 0x10,
has_multiplier = 0x20,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/premium.boostsList"/></para></summary>
[TLDef(0x86F8613C)]
public class Premium_BoostsList : IObject
{
public Flags flags;
public int count;
public Boost[] boosts;
[IfFlag(0)] public string next_offset;
public Dictionary<long, User> users;
[Flags] public enum Flags : uint
{
has_next_offset = 0x1,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/myBoost"/></para></summary>
[TLDef(0xC448415C)]
public class MyBoost : IObject
{
public Flags flags;
public int slot;
[IfFlag(0)] public Peer peer;
public DateTime date;
public DateTime expires;
[IfFlag(1)] public DateTime cooldown_until_date;
[Flags] public enum Flags : uint
{
has_peer = 0x1,
has_cooldown_until_date = 0x2,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/premium.myBoosts"/></para></summary>
[TLDef(0x9AE228E2)]
public class Premium_MyBoosts : IObject, IPeerResolver
{
public MyBoost[] my_boosts;
public Dictionary<long, ChatBase> chats;
public Dictionary<long, User> users;
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/premium.boostsStatus"/></para></summary>
[TLDef(0x4959427A)]
public class Premium_BoostsStatus : IObject
{
public Flags flags;
public int level;
public int current_level_boosts;
public int boosts;
[IfFlag(4)] public int gift_boosts;
[IfFlag(0)] public int next_level_boosts;
[IfFlag(1)] public StatsPercentValue premium_audience;
public string boost_url;
[IfFlag(3)] public PrepaidGiveaway[] prepaid_giveaways;
[IfFlag(2)] public int[] my_boost_slots;
[Flags] public enum Flags : uint
{
has_next_level_boosts = 0x1,
has_premium_audience = 0x2,
my_boost = 0x4,
has_prepaid_giveaways = 0x8,
has_gift_boosts = 0x10,
}
}
} }

View file

@ -1151,6 +1151,23 @@ namespace TL
codes = codes, codes = codes,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.updateColor"/></para></summary>
public static Task<bool> Account_UpdateColor(this Client client, int color, long? background_emoji_id = null)
=> client.Invoke(new Account_UpdateColor
{
flags = (Account_UpdateColor.Flags)(background_emoji_id != null ? 0x1 : 0),
color = color,
background_emoji_id = background_emoji_id.GetValueOrDefault(),
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.getDefaultBackgroundEmojis"/></para></summary>
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/emojiListNotModified">emojiListNotModified</a></returns>
public static Task<EmojiList> Account_GetDefaultBackgroundEmojis(this Client client, long hash = default)
=> client.Invoke(new Account_GetDefaultBackgroundEmojis
{
hash = hash,
});
/// <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> /// <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> /// <param name="id">List of user identifiers</param>
public static Task<UserBase[]> Users_GetUsers(this Client client, params InputUserBase[] id) public static Task<UserBase[]> Users_GetUsers(this Client client, params InputUserBase[] id)
@ -1572,10 +1589,10 @@ namespace TL
/// <param name="entities">Message <a href="https://corefork.telegram.org/api/entities">entities</a> for sending styled text</param> /// <param name="entities">Message <a href="https://corefork.telegram.org/api/entities">entities</a> for sending styled text</param>
/// <param name="schedule_date">Scheduled message date for <a href="https://corefork.telegram.org/api/scheduled-messages">scheduled messages</a></param> /// <param name="schedule_date">Scheduled message date for <a href="https://corefork.telegram.org/api/scheduled-messages">scheduled messages</a></param>
/// <param name="send_as">Send this message as the specified peer</param> /// <param name="send_as">Send this message as the specified peer</param>
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, bool no_webpage = false, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = 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, 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)
=> client.Invoke(new Messages_SendMessage => 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) | (no_webpage ? 0x2 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 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) | (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)),
peer = peer, peer = peer,
reply_to = reply_to, reply_to = reply_to,
message = message, message = message,
@ -1601,10 +1618,10 @@ namespace TL
/// <param name="entities">Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text</param> /// <param name="entities">Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text</param>
/// <param name="schedule_date">Scheduled message date for <a href="https://corefork.telegram.org/api/scheduled-messages">scheduled messages</a></param> /// <param name="schedule_date">Scheduled message date for <a href="https://corefork.telegram.org/api/scheduled-messages">scheduled messages</a></param>
/// <param name="send_as">Send this message as the specified peer</param> /// <param name="send_as">Send this message as the specified peer</param>
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, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = 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, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false)
=> client.Invoke(new Messages_SendMedia => 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) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 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) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (invert_media ? 0x10000 : 0)),
peer = peer, peer = peer,
reply_to = reply_to, reply_to = reply_to,
media = media, media = media,
@ -2165,10 +2182,10 @@ namespace TL
/// <param name="reply_markup">Reply markup for inline keyboards</param> /// <param name="reply_markup">Reply markup for inline keyboards</param>
/// <param name="entities"><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></param> /// <param name="entities"><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></param>
/// <param name="schedule_date">Scheduled message date for <a href="https://corefork.telegram.org/api/scheduled-messages">scheduled messages</a></param> /// <param name="schedule_date">Scheduled message date for <a href="https://corefork.telegram.org/api/scheduled-messages">scheduled messages</a></param>
public static Task<UpdatesBase> Messages_EditMessage(this Client client, InputPeer peer, int id, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, bool no_webpage = false) public static Task<UpdatesBase> Messages_EditMessage(this Client client, InputPeer peer, int id, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, bool no_webpage = false, bool invert_media = false)
=> client.Invoke(new Messages_EditMessage => client.Invoke(new Messages_EditMessage
{ {
flags = (Messages_EditMessage.Flags)((message != null ? 0x800 : 0) | (media != null ? 0x4000 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x8000 : 0) | (no_webpage ? 0x2 : 0)), flags = (Messages_EditMessage.Flags)((message != null ? 0x800 : 0) | (media != null ? 0x4000 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x8000 : 0) | (no_webpage ? 0x2 : 0) | (invert_media ? 0x10000 : 0)),
peer = peer, peer = peer,
id = id, id = id,
message = message, message = message,
@ -2185,10 +2202,10 @@ namespace TL
/// <param name="media">Media</param> /// <param name="media">Media</param>
/// <param name="reply_markup">Reply markup for inline keyboards</param> /// <param name="reply_markup">Reply markup for inline keyboards</param>
/// <param name="entities"><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></param> /// <param name="entities"><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></param>
public static Task<bool> Messages_EditInlineBotMessage(this Client client, InputBotInlineMessageIDBase id, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, bool no_webpage = false) public static Task<bool> Messages_EditInlineBotMessage(this Client client, InputBotInlineMessageIDBase id, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, bool no_webpage = false, bool invert_media = false)
=> client.Invoke(new Messages_EditInlineBotMessage => client.Invoke(new Messages_EditInlineBotMessage
{ {
flags = (Messages_EditInlineBotMessage.Flags)((message != null ? 0x800 : 0) | (media != null ? 0x4000 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (no_webpage ? 0x2 : 0)), flags = (Messages_EditInlineBotMessage.Flags)((message != null ? 0x800 : 0) | (media != null ? 0x4000 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (no_webpage ? 0x2 : 0) | (invert_media ? 0x10000 : 0)),
id = id, id = id,
message = message, message = message,
media = media, media = media,
@ -2238,20 +2255,18 @@ namespace TL
/// <summary>Save a message <a href="https://corefork.telegram.org/api/drafts">draft</a> associated to a chat. <para>See <a href="https://corefork.telegram.org/method/messages.saveDraft"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.saveDraft#possible-errors">details</a>)</para></summary> /// <summary>Save a message <a href="https://corefork.telegram.org/api/drafts">draft</a> associated to a chat. <para>See <a href="https://corefork.telegram.org/method/messages.saveDraft"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.saveDraft#possible-errors">details</a>)</para></summary>
/// <param name="no_webpage">Disable generation of the webpage preview</param> /// <param name="no_webpage">Disable generation of the webpage preview</param>
/// <param name="reply_to_msg_id">Message ID the message should reply to</param>
/// <param name="top_msg_id"><a href="https://corefork.telegram.org/api/forum#forum-topics">Forum topic</a> where the message will be sent</param>
/// <param name="peer">Destination of the message that should be sent</param> /// <param name="peer">Destination of the message that should be sent</param>
/// <param name="message">The draft</param> /// <param name="message">The draft</param>
/// <param name="entities">Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text</param> /// <param name="entities">Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text</param>
public static Task<bool> Messages_SaveDraft(this Client client, InputPeer peer, string message, int? reply_to_msg_id = null, int? top_msg_id = null, MessageEntity[] entities = null, bool no_webpage = false) public static Task<bool> Messages_SaveDraft(this Client client, InputPeer peer, string message, MessageEntity[] entities = null, InputReplyTo reply_to = null, InputMedia media = null, bool no_webpage = false, bool invert_media = false)
=> client.Invoke(new Messages_SaveDraft => client.Invoke(new Messages_SaveDraft
{ {
flags = (Messages_SaveDraft.Flags)((reply_to_msg_id != null ? 0x1 : 0) | (top_msg_id != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (no_webpage ? 0x2 : 0)), flags = (Messages_SaveDraft.Flags)((entities != null ? 0x8 : 0) | (reply_to != null ? 0x10 : 0) | (media != null ? 0x20 : 0) | (no_webpage ? 0x2 : 0) | (invert_media ? 0x40 : 0)),
reply_to_msg_id = reply_to_msg_id.GetValueOrDefault(), reply_to = reply_to,
top_msg_id = top_msg_id.GetValueOrDefault(),
peer = peer, peer = peer,
message = message, message = message,
entities = entities, entities = entities,
media = media,
}); });
/// <summary>Return all message <a href="https://corefork.telegram.org/api/drafts">drafts</a>.<br/>Returns all the latest <see cref="UpdateDraftMessage"/> updates related to all chats with drafts. <para>See <a href="https://corefork.telegram.org/method/messages.getAllDrafts"/></para></summary> /// <summary>Return all message <a href="https://corefork.telegram.org/api/drafts">drafts</a>.<br/>Returns all the latest <see cref="UpdateDraftMessage"/> updates related to all chats with drafts. <para>See <a href="https://corefork.telegram.org/method/messages.getAllDrafts"/></para></summary>
@ -2565,10 +2580,10 @@ namespace TL
/// <param name="multi_media">The medias to send: note that they must be separately uploaded using <see cref="Messages_UploadMedia">Messages_UploadMedia</see> first, using raw <c>inputMediaUploaded*</c> constructors is not supported.</param> /// <param name="multi_media">The medias to send: note that they must be separately uploaded using <see cref="Messages_UploadMedia">Messages_UploadMedia</see> first, using raw <c>inputMediaUploaded*</c> constructors is not supported.</param>
/// <param name="schedule_date">Scheduled message date for scheduled messages</param> /// <param name="schedule_date">Scheduled message date for scheduled messages</param>
/// <param name="send_as">Send this message as the specified peer</param> /// <param name="send_as">Send this message as the specified peer</param>
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, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = 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, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false)
=> client.Invoke(new Messages_SendMultiMedia => client.Invoke(new Messages_SendMultiMedia
{ {
flags = (Messages_SendMultiMedia.Flags)((reply_to != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0)), flags = (Messages_SendMultiMedia.Flags)((reply_to != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (invert_media ? 0x10000 : 0)),
peer = peer, peer = peer,
reply_to = reply_to, reply_to = reply_to,
multi_media = multi_media, multi_media = multi_media,
@ -4672,6 +4687,16 @@ namespace TL
random_id = random_id, random_id = random_id,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.updateColor"/></para></summary>
public static Task<UpdatesBase> Channels_UpdateColor(this Client client, InputChannelBase channel, int color, long? background_emoji_id = null)
=> client.Invoke(new Channels_UpdateColor
{
flags = (Channels_UpdateColor.Flags)(background_emoji_id != null ? 0x1 : 0),
channel = channel,
color = color,
background_emoji_id = background_emoji_id.GetValueOrDefault(),
});
/// <summary>Sends a custom request; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.sendCustomRequest"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/bots.sendCustomRequest#possible-errors">details</a>)</para></summary> /// <summary>Sends a custom request; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.sendCustomRequest"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/bots.sendCustomRequest#possible-errors">details</a>)</para></summary>
/// <param name="custom_method">The method name</param> /// <param name="custom_method">The method name</param>
/// <param name="params_">JSON-serialized method parameters</param> /// <param name="params_">JSON-serialized method parameters</param>
@ -4943,6 +4968,45 @@ namespace TL
purpose = purpose, purpose = purpose,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.getPremiumGiftCodeOptions"/></para></summary>
public static Task<PremiumGiftCodeOption[]> Payments_GetPremiumGiftCodeOptions(this Client client, InputPeer boost_peer = null)
=> client.Invoke(new Payments_GetPremiumGiftCodeOptions
{
flags = (Payments_GetPremiumGiftCodeOptions.Flags)(boost_peer != null ? 0x1 : 0),
boost_peer = boost_peer,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.checkGiftCode"/></para></summary>
public static Task<Payments_CheckedGiftCode> Payments_CheckGiftCode(this Client client, string slug)
=> client.Invoke(new Payments_CheckGiftCode
{
slug = slug,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.applyGiftCode"/></para></summary>
public static Task<UpdatesBase> Payments_ApplyGiftCode(this Client client, string slug)
=> client.Invoke(new Payments_ApplyGiftCode
{
slug = slug,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.getGiveawayInfo"/></para></summary>
public static Task<Payments_GiveawayInfoBase> Payments_GetGiveawayInfo(this Client client, InputPeer peer, int msg_id)
=> client.Invoke(new Payments_GetGiveawayInfo
{
peer = peer,
msg_id = msg_id,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.launchPrepaidGiveaway"/></para></summary>
public static Task<UpdatesBase> Payments_LaunchPrepaidGiveaway(this Client client, InputPeer peer, long giveaway_id, InputStorePaymentPurpose purpose)
=> client.Invoke(new Payments_LaunchPrepaidGiveaway
{
peer = peer,
giveaway_id = giveaway_id,
purpose = purpose,
});
/// <summary>Create a stickerset, bots only. <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> /// <summary>Create a stickerset, bots only. <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="masks">Whether this is a mask stickerset</param>
/// <param name="animated">Whether this is an animated stickerset</param> /// <param name="animated">Whether this is an animated stickerset</param>
@ -5886,38 +5950,34 @@ namespace TL
hidden = hidden, hidden = hidden,
}); });
/// <summary>Get the current <a href="https://corefork.telegram.org/api/stories#boosts">boost status</a> of a channel, see <a href="https://corefork.telegram.org/api/stories#boosts">here »</a> for more info on boosts. <para>See <a href="https://corefork.telegram.org/method/stories.getBoostsStatus"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getBoostsStatus#possible-errors">details</a>)</para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/method/premium.getBoostsList"/></para></summary>
/// <param name="peer">The channel</param> public static Task<Premium_BoostsList> Premium_GetBoostsList(this Client client, InputPeer peer, string offset, int limit = int.MaxValue, bool gifts = false)
public static Task<Stories_BoostsStatus> Stories_GetBoostsStatus(this Client client, InputPeer peer) => client.Invoke(new Premium_GetBoostsList
=> client.Invoke(new Stories_GetBoostsStatus
{
peer = peer,
});
/// <summary>Obtain info about the users currently <a href="https://corefork.telegram.org/api/stories#boosts">boosting</a> a channel, see <a href="https://corefork.telegram.org/api/stories#boosts">here »</a> for more info about boosts. <para>See <a href="https://corefork.telegram.org/method/stories.getBoostersList"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getBoostersList#possible-errors">details</a>)</para></summary>
/// <param name="peer">The channel.</param>
/// <param name="offset">Next offset for <a href="https://corefork.telegram.org/api/offsets">pagination</a>, obtained from the <c>next_offset</c> field of <see cref="Stories_BoostersList"/>.</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<Stories_BoostersList> Stories_GetBoostersList(this Client client, InputPeer peer, string offset, int limit = int.MaxValue)
=> client.Invoke(new Stories_GetBoostersList
{ {
flags = (Premium_GetBoostsList.Flags)(gifts ? 0x1 : 0),
peer = peer, peer = peer,
offset = offset, offset = offset,
limit = limit, limit = limit,
}); });
/// <summary>Check whether a channel can be <a href="https://corefork.telegram.org/api/stories#boosts">boosted, see here for more info »</a>. <para>See <a href="https://corefork.telegram.org/method/stories.canApplyBoost"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.canApplyBoost#possible-errors">details</a>)</para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/method/premium.getMyBoosts"/></para></summary>
/// <param name="peer">The channel to boost.</param> public static Task<Premium_MyBoosts> Premium_GetMyBoosts(this Client client)
public static Task<Stories_CanApplyBoostResult> Stories_CanApplyBoost(this Client client, InputPeer peer) => client.Invoke(new Premium_GetMyBoosts
=> client.Invoke(new Stories_CanApplyBoost
{ {
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/premium.applyBoost"/></para></summary>
public static Task<Premium_MyBoosts> Premium_ApplyBoost(this Client client, InputPeer peer, int[] slots = null)
=> client.Invoke(new Premium_ApplyBoost
{
flags = (Premium_ApplyBoost.Flags)(slots != null ? 0x1 : 0),
slots = slots,
peer = peer, peer = peer,
}); });
/// <summary><a href="https://corefork.telegram.org/api/stories#boosts">Boost »</a> a <a href="https://corefork.telegram.org/api/channel">channel</a>, leveling it up and granting it permission to post <a href="https://corefork.telegram.org/api/stories">stories »</a>. <para>See <a href="https://corefork.telegram.org/method/stories.applyBoost"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.applyBoost#possible-errors">details</a>)</para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/method/premium.getBoostsStatus"/></para></summary>
/// <param name="peer">The channel to boost.</param> public static Task<Premium_BoostsStatus> Premium_GetBoostsStatus(this Client client, InputPeer peer)
public static Task<bool> Stories_ApplyBoost(this Client client, InputPeer peer) => client.Invoke(new Premium_GetBoostsStatus
=> client.Invoke(new Stories_ApplyBoost
{ {
peer = peer, peer = peer,
}); });
@ -6804,6 +6864,25 @@ namespace TL.Methods
public string[] codes; public string[] codes;
} }
[TLDef(0xA001CC43)]
public class Account_UpdateColor : IMethod<bool>
{
public Flags flags;
public int color;
[IfFlag(0)] public long background_emoji_id;
[Flags] public enum Flags : uint
{
has_background_emoji_id = 0x1,
}
}
[TLDef(0xA60AB9CE)]
public class Account_GetDefaultBackgroundEmojis : IMethod<EmojiList>
{
public long hash;
}
[TLDef(0x0D91A548)] [TLDef(0x0D91A548)]
public class Users_GetUsers : IMethod<UserBase[]> public class Users_GetUsers : IMethod<UserBase[]>
{ {
@ -7174,6 +7253,7 @@ namespace TL.Methods
has_send_as = 0x2000, has_send_as = 0x2000,
noforwards = 0x4000, noforwards = 0x4000,
update_stickersets_order = 0x8000, update_stickersets_order = 0x8000,
invert_media = 0x10000,
} }
} }
@ -7203,6 +7283,7 @@ namespace TL.Methods
has_send_as = 0x2000, has_send_as = 0x2000,
noforwards = 0x4000, noforwards = 0x4000,
update_stickersets_order = 0x8000, update_stickersets_order = 0x8000,
invert_media = 0x10000,
} }
} }
@ -7668,6 +7749,7 @@ namespace TL.Methods
has_message = 0x800, has_message = 0x800,
has_media = 0x4000, has_media = 0x4000,
has_schedule_date = 0x8000, has_schedule_date = 0x8000,
invert_media = 0x10000,
} }
} }
@ -7688,6 +7770,7 @@ namespace TL.Methods
has_entities = 0x8, has_entities = 0x8,
has_message = 0x800, has_message = 0x800,
has_media = 0x4000, has_media = 0x4000,
invert_media = 0x10000,
} }
} }
@ -7731,22 +7814,23 @@ namespace TL.Methods
public InputDialogPeerBase[] peers; public InputDialogPeerBase[] peers;
} }
[TLDef(0xB4331E3F)] [TLDef(0x7FF3B806)]
public class Messages_SaveDraft : IMethod<bool> public class Messages_SaveDraft : IMethod<bool>
{ {
public Flags flags; public Flags flags;
[IfFlag(0)] public int reply_to_msg_id; [IfFlag(4)] public InputReplyTo reply_to;
[IfFlag(2)] public int top_msg_id;
public InputPeer peer; public InputPeer peer;
public string message; public string message;
[IfFlag(3)] public MessageEntity[] entities; [IfFlag(3)] public MessageEntity[] entities;
[IfFlag(5)] public InputMedia media;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
{ {
has_reply_to_msg_id = 0x1,
no_webpage = 0x2, no_webpage = 0x2,
has_top_msg_id = 0x4,
has_entities = 0x8, has_entities = 0x8,
has_reply_to = 0x10,
has_media = 0x20,
invert_media = 0x40,
} }
} }
@ -8035,6 +8119,7 @@ namespace TL.Methods
has_send_as = 0x2000, has_send_as = 0x2000,
noforwards = 0x4000, noforwards = 0x4000,
update_stickersets_order = 0x8000, update_stickersets_order = 0x8000,
invert_media = 0x10000,
} }
} }
@ -9702,6 +9787,20 @@ namespace TL.Methods
public byte[] random_id; public byte[] random_id;
} }
[TLDef(0x621A201F)]
public class Channels_UpdateColor : IMethod<UpdatesBase>
{
public Flags flags;
public InputChannelBase channel;
public int color;
[IfFlag(0)] public long background_emoji_id;
[Flags] public enum Flags : uint
{
has_background_emoji_id = 0x1,
}
}
[TLDef(0xAA2769ED)] [TLDef(0xAA2769ED)]
public class Bots_SendCustomRequest : IMethod<DataJSON> public class Bots_SendCustomRequest : IMethod<DataJSON>
{ {
@ -9929,6 +10028,45 @@ namespace TL.Methods
public InputStorePaymentPurpose purpose; public InputStorePaymentPurpose purpose;
} }
[TLDef(0x2757BA54)]
public class Payments_GetPremiumGiftCodeOptions : IMethod<PremiumGiftCodeOption[]>
{
public Flags flags;
[IfFlag(0)] public InputPeer boost_peer;
[Flags] public enum Flags : uint
{
has_boost_peer = 0x1,
}
}
[TLDef(0x8E51B4C1)]
public class Payments_CheckGiftCode : IMethod<Payments_CheckedGiftCode>
{
public string slug;
}
[TLDef(0xF6E26854)]
public class Payments_ApplyGiftCode : IMethod<UpdatesBase>
{
public string slug;
}
[TLDef(0xF4239425)]
public class Payments_GetGiveawayInfo : IMethod<Payments_GiveawayInfoBase>
{
public InputPeer peer;
public int msg_id;
}
[TLDef(0x5FF58F20)]
public class Payments_LaunchPrepaidGiveaway : IMethod<UpdatesBase>
{
public InputPeer peer;
public long giveaway_id;
public InputStorePaymentPurpose purpose;
}
[TLDef(0x9021AB67)] [TLDef(0x9021AB67)]
public class Stickers_CreateStickerSet : IMethod<Messages_StickerSet> public class Stickers_CreateStickerSet : IMethod<Messages_StickerSet>
{ {
@ -10723,28 +10861,38 @@ namespace TL.Methods
public bool hidden; public bool hidden;
} }
[TLDef(0x4C449472)] [TLDef(0x60F67660)]
public class Stories_GetBoostsStatus : IMethod<Stories_BoostsStatus> public class Premium_GetBoostsList : IMethod<Premium_BoostsList>
{
public InputPeer peer;
}
[TLDef(0x337EF980)]
public class Stories_GetBoostersList : IMethod<Stories_BoostersList>
{ {
public Flags flags;
public InputPeer peer; public InputPeer peer;
public string offset; public string offset;
public int limit; public int limit;
[Flags] public enum Flags : uint
{
gifts = 0x1,
}
} }
[TLDef(0xDB05C1BD)] [TLDef(0x0BE77B4A)]
public class Stories_CanApplyBoost : IMethod<Stories_CanApplyBoostResult> public class Premium_GetMyBoosts : IMethod<Premium_MyBoosts> { }
[TLDef(0x6B7DA746)]
public class Premium_ApplyBoost : IMethod<Premium_MyBoosts>
{ {
public Flags flags;
[IfFlag(0)] public int[] slots;
public InputPeer peer; public InputPeer peer;
[Flags] public enum Flags : uint
{
has_slots = 0x1,
}
} }
[TLDef(0xF29D7C2B)] [TLDef(0x042F1F61)]
public class Stories_ApplyBoost : IMethod<bool> public class Premium_GetBoostsStatus : IMethod<Premium_BoostsStatus>
{ {
public InputPeer peer; public InputPeer peer;
} }

View file

@ -6,7 +6,7 @@ namespace TL
{ {
public static class Layer public static class Layer
{ {
public const int Version = 165; // fetched 04/10/2023 17:10:52 public const int Version = 166; // fetched 28/10/2023 21:16:53
internal const int SecretChats = 144; internal const int SecretChats = 144;
internal const int MTProto2 = 73; internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415; internal const uint VectorCtor = 0x1CB5C415;
@ -99,6 +99,7 @@ namespace TL
[0x0F94E5F1] = typeof(InputMediaPoll), [0x0F94E5F1] = typeof(InputMediaPoll),
[0xE66FBF7B] = typeof(InputMediaDice), [0xE66FBF7B] = typeof(InputMediaDice),
[0x89FDD778] = typeof(InputMediaStory), [0x89FDD778] = typeof(InputMediaStory),
[0xC21B8849] = typeof(InputMediaWebPage),
[0x1CA48F57] = null,//InputChatPhotoEmpty [0x1CA48F57] = null,//InputChatPhotoEmpty
[0xBDCDAEC0] = typeof(InputChatUploadedPhoto), [0xBDCDAEC0] = typeof(InputChatUploadedPhoto),
[0x8953AD37] = typeof(InputChatPhoto), [0x8953AD37] = typeof(InputChatPhoto),
@ -120,7 +121,7 @@ namespace TL
[0x36C6019A] = typeof(PeerChat), [0x36C6019A] = typeof(PeerChat),
[0xA2A5371E] = typeof(PeerChannel), [0xA2A5371E] = typeof(PeerChannel),
[0xD3BC4B7A] = typeof(UserEmpty), [0xD3BC4B7A] = typeof(UserEmpty),
[0xABB5F120] = typeof(User), [0xEB602F25] = typeof(User),
[0x4F11BAE1] = null,//UserProfilePhotoEmpty [0x4F11BAE1] = null,//UserProfilePhotoEmpty
[0x82D1F706] = typeof(UserProfilePhoto), [0x82D1F706] = typeof(UserProfilePhoto),
[0x09D05049] = null,//UserStatusEmpty [0x09D05049] = null,//UserStatusEmpty
@ -132,7 +133,7 @@ namespace TL
[0x29562865] = typeof(ChatEmpty), [0x29562865] = typeof(ChatEmpty),
[0x41CBF256] = typeof(Chat), [0x41CBF256] = typeof(Chat),
[0x6592A1A7] = typeof(ChatForbidden), [0x6592A1A7] = typeof(ChatForbidden),
[0x94F592DB] = typeof(Channel), [0x1981EA7E] = typeof(Channel),
[0x17D493D5] = typeof(ChannelForbidden), [0x17D493D5] = typeof(ChannelForbidden),
[0xC9D31138] = typeof(ChatFull), [0xC9D31138] = typeof(ChatFull),
[0x723027BD] = typeof(ChannelFull), [0x723027BD] = typeof(ChannelFull),
@ -152,7 +153,7 @@ namespace TL
[0x70322949] = typeof(MessageMediaContact), [0x70322949] = typeof(MessageMediaContact),
[0x9F84F49E] = typeof(MessageMediaUnsupported), [0x9F84F49E] = typeof(MessageMediaUnsupported),
[0x4CF4D72D] = typeof(MessageMediaDocument), [0x4CF4D72D] = typeof(MessageMediaDocument),
[0xA32DD600] = typeof(MessageMediaWebPage), [0xDDF10C3B] = typeof(MessageMediaWebPage),
[0x2EC0533F] = typeof(MessageMediaVenue), [0x2EC0533F] = typeof(MessageMediaVenue),
[0xFDB19008] = typeof(MessageMediaGame), [0xFDB19008] = typeof(MessageMediaGame),
[0xF6A548D3] = typeof(MessageMediaInvoice), [0xF6A548D3] = typeof(MessageMediaInvoice),
@ -160,6 +161,7 @@ namespace TL
[0x4BD6E798] = typeof(MessageMediaPoll), [0x4BD6E798] = typeof(MessageMediaPoll),
[0x3F7EE58B] = typeof(MessageMediaDice), [0x3F7EE58B] = typeof(MessageMediaDice),
[0x68CB6283] = typeof(MessageMediaStory), [0x68CB6283] = typeof(MessageMediaStory),
[0x58260664] = typeof(MessageMediaGiveaway),
[0xB6AEF7B0] = null,//MessageActionEmpty [0xB6AEF7B0] = null,//MessageActionEmpty
[0xBD47CBAD] = typeof(MessageActionChatCreate), [0xBD47CBAD] = typeof(MessageActionChatCreate),
[0xB5A1CE5A] = typeof(MessageActionChatEditTitle), [0xB5A1CE5A] = typeof(MessageActionChatEditTitle),
@ -199,6 +201,8 @@ namespace TL
[0xFE77345D] = typeof(MessageActionRequestedPeer), [0xFE77345D] = typeof(MessageActionRequestedPeer),
[0xBC44A927] = typeof(MessageActionSetChatWallPaper), [0xBC44A927] = typeof(MessageActionSetChatWallPaper),
[0xC0787D6D] = typeof(MessageActionSetSameChatWallPaper), [0xC0787D6D] = typeof(MessageActionSetSameChatWallPaper),
[0xD2CFDB0E] = typeof(MessageActionGiftCode),
[0x332BA9ED] = typeof(MessageActionGiveawayLaunch),
[0xD58A08C6] = typeof(Dialog), [0xD58A08C6] = typeof(Dialog),
[0x71BD134C] = typeof(DialogFolder), [0x71BD134C] = typeof(DialogFolder),
[0x2331B22D] = typeof(PhotoEmpty), [0x2331B22D] = typeof(PhotoEmpty),
@ -484,8 +488,8 @@ namespace TL
[0xE86602C3] = null,//Messages_AllStickersNotModified [0xE86602C3] = null,//Messages_AllStickersNotModified
[0xCDBBCEBB] = typeof(Messages_AllStickers), [0xCDBBCEBB] = typeof(Messages_AllStickers),
[0x84D19185] = typeof(Messages_AffectedMessages), [0x84D19185] = typeof(Messages_AffectedMessages),
[0xEB1477E8] = typeof(WebPageEmpty), [0x211A1788] = typeof(WebPageEmpty),
[0xC586DA1C] = typeof(WebPagePending), [0xB0D13E47] = typeof(WebPagePending),
[0xE89C45B2] = typeof(WebPage), [0xE89C45B2] = typeof(WebPage),
[0x7311CA11] = typeof(WebPageNotModified), [0x7311CA11] = typeof(WebPageNotModified),
[0xAD01D61D] = typeof(Authorization), [0xAD01D61D] = typeof(Authorization),
@ -498,7 +502,7 @@ namespace TL
[0x0AB4A819] = typeof(ChatInviteExported), [0x0AB4A819] = typeof(ChatInviteExported),
[0xED107AB7] = typeof(ChatInvitePublicJoinRequests), [0xED107AB7] = typeof(ChatInvitePublicJoinRequests),
[0x5A686D7C] = typeof(ChatInviteAlready), [0x5A686D7C] = typeof(ChatInviteAlready),
[0x300C44C1] = typeof(ChatInvite), [0xCDE0EC40] = typeof(ChatInvite),
[0x61695CB0] = typeof(ChatInvitePeek), [0x61695CB0] = typeof(ChatInvitePeek),
[0xFFB62B95] = null,//InputStickerSetEmpty [0xFFB62B95] = null,//InputStickerSetEmpty
[0x9DE7A269] = typeof(InputStickerSetID), [0x9DE7A269] = typeof(InputStickerSetID),
@ -553,10 +557,10 @@ namespace TL
[0x4C4E743F] = typeof(MessageEntityCashtag), [0x4C4E743F] = typeof(MessageEntityCashtag),
[0x9C4E7E8B] = typeof(MessageEntityUnderline), [0x9C4E7E8B] = typeof(MessageEntityUnderline),
[0xBF0693D4] = typeof(MessageEntityStrike), [0xBF0693D4] = typeof(MessageEntityStrike),
[0x020DF5D0] = typeof(MessageEntityBlockquote),
[0x761E6AF4] = typeof(MessageEntityBankCard), [0x761E6AF4] = typeof(MessageEntityBankCard),
[0x32CA960F] = typeof(MessageEntitySpoiler), [0x32CA960F] = typeof(MessageEntitySpoiler),
[0xC8CF05F8] = typeof(MessageEntityCustomEmoji), [0xC8CF05F8] = typeof(MessageEntityCustomEmoji),
[0x020DF5D0] = typeof(MessageEntityBlockquote),
[0xEE8C1E86] = null,//InputChannelEmpty [0xEE8C1E86] = null,//InputChannelEmpty
[0xF35AEC28] = typeof(InputChannel), [0xF35AEC28] = typeof(InputChannel),
[0x5B934F9D] = typeof(InputChannelFromMessage), [0x5B934F9D] = typeof(InputChannelFromMessage),
@ -594,6 +598,7 @@ namespace TL
[0xA6EDBFFD] = typeof(InputBotInlineMessageMediaContact), [0xA6EDBFFD] = typeof(InputBotInlineMessageMediaContact),
[0x4B425864] = typeof(InputBotInlineMessageGame), [0x4B425864] = typeof(InputBotInlineMessageGame),
[0xD7E78225] = typeof(InputBotInlineMessageMediaInvoice), [0xD7E78225] = typeof(InputBotInlineMessageMediaInvoice),
[0xBDDCC510] = typeof(InputBotInlineMessageMediaWebPage),
[0x88BF9319] = typeof(InputBotInlineResult), [0x88BF9319] = typeof(InputBotInlineResult),
[0xA8D864A7] = typeof(InputBotInlineResultPhoto), [0xA8D864A7] = typeof(InputBotInlineResultPhoto),
[0xFFF8FDC4] = typeof(InputBotInlineResultDocument), [0xFFF8FDC4] = typeof(InputBotInlineResultDocument),
@ -604,6 +609,7 @@ namespace TL
[0x8A86659C] = typeof(BotInlineMessageMediaVenue), [0x8A86659C] = typeof(BotInlineMessageMediaVenue),
[0x18D1CDC2] = typeof(BotInlineMessageMediaContact), [0x18D1CDC2] = typeof(BotInlineMessageMediaContact),
[0x354A9B09] = typeof(BotInlineMessageMediaInvoice), [0x354A9B09] = typeof(BotInlineMessageMediaInvoice),
[0x809AD9A6] = typeof(BotInlineMessageMediaWebPage),
[0x11965F3A] = typeof(BotInlineResult), [0x11965F3A] = typeof(BotInlineResult),
[0x17DB940B] = typeof(BotInlineMediaResult), [0x17DB940B] = typeof(BotInlineMediaResult),
[0xE021F2F6] = typeof(Messages_BotResults), [0xE021F2F6] = typeof(Messages_BotResults),
@ -630,7 +636,7 @@ namespace TL
[0x70B772A8] = typeof(Contacts_TopPeers), [0x70B772A8] = typeof(Contacts_TopPeers),
[0xB52C939D] = typeof(Contacts_TopPeersDisabled), [0xB52C939D] = typeof(Contacts_TopPeersDisabled),
[0x1B0C841A] = typeof(DraftMessageEmpty), [0x1B0C841A] = typeof(DraftMessageEmpty),
[0xFD8E711F] = typeof(DraftMessage), [0x3FCCF7EF] = typeof(DraftMessage),
[0xC6DC0C66] = typeof(Messages_FeaturedStickersNotModified), [0xC6DC0C66] = typeof(Messages_FeaturedStickersNotModified),
[0xBE382906] = typeof(Messages_FeaturedStickers), [0xBE382906] = typeof(Messages_FeaturedStickers),
[0x0B17F890] = null,//Messages_RecentStickersNotModified [0x0B17F890] = null,//Messages_RecentStickersNotModified
@ -785,6 +791,8 @@ namespace TL
[0xAE168909] = typeof(ChannelAdminLogEventActionDeleteTopic), [0xAE168909] = typeof(ChannelAdminLogEventActionDeleteTopic),
[0x5D8D353B] = typeof(ChannelAdminLogEventActionPinTopic), [0x5D8D353B] = typeof(ChannelAdminLogEventActionPinTopic),
[0x64F36DFC] = typeof(ChannelAdminLogEventActionToggleAntiSpam), [0x64F36DFC] = typeof(ChannelAdminLogEventActionToggleAntiSpam),
[0x3C2B247B] = typeof(ChannelAdminLogEventActionChangeColor),
[0x445FC434] = typeof(ChannelAdminLogEventActionChangeBackgroundEmoji),
[0x1FAD68CD] = typeof(ChannelAdminLogEvent), [0x1FAD68CD] = typeof(ChannelAdminLogEvent),
[0xED8AF74D] = typeof(Channels_AdminLogResults), [0xED8AF74D] = typeof(Channels_AdminLogResults),
[0xEA107AE4] = typeof(ChannelAdminLogEventsFilter), [0xEA107AE4] = typeof(ChannelAdminLogEventsFilter),
@ -952,7 +960,7 @@ namespace TL
[0x455B853D] = typeof(MessageViews), [0x455B853D] = typeof(MessageViews),
[0xB6C4F543] = typeof(Messages_MessageViews), [0xB6C4F543] = typeof(Messages_MessageViews),
[0xA6341782] = typeof(Messages_DiscussionMessage), [0xA6341782] = typeof(Messages_DiscussionMessage),
[0xA6D57763] = typeof(MessageReplyHeader), [0x6EEBCABD] = typeof(MessageReplyHeader),
[0x9C98BFC1] = typeof(MessageReplyStoryHeader), [0x9C98BFC1] = typeof(MessageReplyStoryHeader),
[0x83D60FC2] = typeof(MessageReplies), [0x83D60FC2] = typeof(MessageReplies),
[0xE8FD8014] = typeof(PeerBlocked), [0xE8FD8014] = typeof(PeerBlocked),
@ -1032,11 +1040,14 @@ namespace TL
[0x1F307EB7] = typeof(Account_SavedRingtoneConverted), [0x1F307EB7] = typeof(Account_SavedRingtoneConverted),
[0xC5B56859] = typeof(InputInvoiceMessage), [0xC5B56859] = typeof(InputInvoiceMessage),
[0xC326CAEF] = typeof(InputInvoiceSlug), [0xC326CAEF] = typeof(InputInvoiceSlug),
[0x98986C0D] = typeof(InputInvoicePremiumGiftCode),
[0xAED0CBD9] = typeof(Payments_ExportedInvoice), [0xAED0CBD9] = typeof(Payments_ExportedInvoice),
[0x93752C52] = typeof(Messages_TranscribedAudio), [0x93752C52] = typeof(Messages_TranscribedAudio),
[0x5334759C] = typeof(Help_PremiumPromo), [0x5334759C] = typeof(Help_PremiumPromo),
[0xA6751E66] = typeof(InputStorePaymentPremiumSubscription), [0xA6751E66] = typeof(InputStorePaymentPremiumSubscription),
[0x616F7FE8] = typeof(InputStorePaymentGiftPremium), [0x616F7FE8] = typeof(InputStorePaymentGiftPremium),
[0xA3805F3F] = typeof(InputStorePaymentPremiumGiftCode),
[0x7C9375E6] = typeof(InputStorePaymentPremiumGiveaway),
[0x74C34319] = typeof(PremiumGiftOption), [0x74C34319] = typeof(PremiumGiftOption),
[0x88F8F21B] = typeof(PaymentFormMethod), [0x88F8F21B] = typeof(PaymentFormMethod),
[0x2DE11AAE] = null,//EmojiStatusEmpty [0x2DE11AAE] = null,//EmojiStatusEmpty
@ -1116,7 +1127,7 @@ namespace TL
[0xB0BDEAC5] = typeof(StoryView), [0xB0BDEAC5] = typeof(StoryView),
[0x46E9B9EC] = typeof(Stories_StoryViewsList), [0x46E9B9EC] = typeof(Stories_StoryViewsList),
[0xDE9EED1D] = typeof(Stories_StoryViews), [0xDE9EED1D] = typeof(Stories_StoryViews),
[0x9C5386E4] = typeof(InputReplyToMessage), [0x073EC805] = typeof(InputReplyToMessage),
[0x15B0F283] = typeof(InputReplyToStory), [0x15B0F283] = typeof(InputReplyToStory),
[0x3FC9053B] = typeof(ExportedStoryLink), [0x3FC9053B] = typeof(ExportedStoryLink),
[0x712E27FD] = typeof(StoriesStealthMode), [0x712E27FD] = typeof(StoriesStealthMode),
@ -1127,12 +1138,17 @@ namespace TL
[0x14455871] = typeof(MediaAreaSuggestedReaction), [0x14455871] = typeof(MediaAreaSuggestedReaction),
[0x9A35E999] = typeof(PeerStories), [0x9A35E999] = typeof(PeerStories),
[0xCAE68768] = typeof(Stories_PeerStories), [0xCAE68768] = typeof(Stories_PeerStories),
[0xE5C1AA5C] = typeof(Stories_BoostsStatus),
[0xC3173587] = typeof(Stories_CanApplyBoostOk),
[0x712C4655] = typeof(Stories_CanApplyBoostReplace),
[0x0E9E6380] = typeof(Booster),
[0xF3DD3D1D] = typeof(Stories_BoostersList),
[0xFD5E12BD] = typeof(Messages_WebPage), [0xFD5E12BD] = typeof(Messages_WebPage),
[0x257E962B] = typeof(PremiumGiftCodeOption),
[0xB722F158] = typeof(Payments_CheckedGiftCode),
[0x4367DAA0] = typeof(Payments_GiveawayInfo),
[0x00CD5570] = typeof(Payments_GiveawayInfoResults),
[0xB2539D54] = typeof(PrepaidGiveaway),
[0x2A1C8C71] = typeof(Boost),
[0x86F8613C] = typeof(Premium_BoostsList),
[0xC448415C] = typeof(MyBoost),
[0x9AE228E2] = typeof(Premium_MyBoosts),
[0x4959427A] = typeof(Premium_BoostsStatus),
// from TL.Secret: // from TL.Secret:
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument), [0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
[0x91CC4674] = typeof(Layer73.DecryptedMessage), [0x91CC4674] = typeof(Layer73.DecryptedMessage),

View file

@ -13,7 +13,7 @@
<PackageId>WTelegramClient</PackageId> <PackageId>WTelegramClient</PackageId>
<Version>0.0.0</Version> <Version>0.0.0</Version>
<Authors>Wizou</Authors> <Authors>Wizou</Authors>
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 165&#10;&#10;Release Notes:&#10;$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description> <Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 166&#10;&#10;Release Notes:&#10;$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
<Copyright>Copyright © Olivier Marcoux 2021-2023</Copyright> <Copyright>Copyright © Olivier Marcoux 2021-2023</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression> <PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/wiz0u/WTelegramClient</PackageProjectUrl> <PackageProjectUrl>https://github.com/wiz0u/WTelegramClient</PackageProjectUrl>