From c727f75380aaf456ded7e7d560e2a67eb5bf7b0f Mon Sep 17 00:00:00 2001 From: Wizou Date: Fri, 17 Sep 2021 03:58:52 +0200 Subject: [PATCH] Upgrade to layer 133 (lots of changes, all IDs are now long). You'll need to delete your WTelegram.session files --- src/Helpers.TL.cs | 26 +- src/TL.Schema.cs | 915 ++++++++++++++++++++++++++-------------------- src/TL.Table.cs | 275 +++++++------- 3 files changed, 684 insertions(+), 532 deletions(-) diff --git a/src/Helpers.TL.cs b/src/Helpers.TL.cs index fd59324..df6e9a2 100644 --- a/src/Helpers.TL.cs +++ b/src/Helpers.TL.cs @@ -16,7 +16,7 @@ namespace TL partial class ChatBase { - public abstract int ID { get; } + public abstract long ID { get; } public abstract string Title { get; } /// returns true if you're banned of any of these rights public abstract bool IsBanned(ChatBannedRights.Flags flags = 0); @@ -25,28 +25,28 @@ namespace TL } partial class ChatEmpty { - public override int ID => id; + public override long ID => id; public override string Title => null; public override bool IsBanned(ChatBannedRights.Flags flags = 0) => true; protected override InputPeer ToInputPeer() => InputPeer.Empty; } partial class Chat { - public override int ID => id; + public override long ID => id; public override string Title => title; public override bool IsBanned(ChatBannedRights.Flags flags = 0) => ((default_banned_rights?.flags ?? 0) & flags) != 0; protected override InputPeer ToInputPeer() => new InputPeerChat { chat_id = id }; } partial class ChatForbidden { - public override int ID => id; + public override long ID => id; public override string Title => title; public override bool IsBanned(ChatBannedRights.Flags flags = 0) => true; protected override InputPeer ToInputPeer() => new InputPeerChat { chat_id = id }; } partial class Channel { - public override int ID => id; + public override long ID => id; public override string Title => title; public override bool IsBanned(ChatBannedRights.Flags flags = 0) => ((banned_rights?.flags ?? 0) & flags) != 0 || ((default_banned_rights?.flags ?? 0) & flags) != 0; protected override InputPeer ToInputPeer() => new InputPeerChannel { channel_id = id, access_hash = access_hash }; @@ -54,7 +54,7 @@ namespace TL } partial class ChannelForbidden { - public override int ID => id; + public override long ID => id; public override string Title => title; public override bool IsBanned(ChatBannedRights.Flags flags = 0) => true; protected override InputPeer ToInputPeer() => new InputPeerChannel { channel_id = id, access_hash = access_hash }; @@ -62,7 +62,7 @@ namespace TL partial class UserBase { - public abstract int ID { get; } + public abstract long ID { get; } public abstract string DisplayName { get; } protected abstract InputPeer ToInputPeer(); protected abstract InputUserBase ToInputUser(); @@ -71,14 +71,14 @@ namespace TL } partial class UserEmpty { - public override int ID => id; + public override long ID => id; public override string DisplayName => null; protected override InputPeer ToInputPeer() => InputPeer.Empty; protected override InputUserBase ToInputUser() => InputUser.Empty; } partial class User { - public override int ID => id; + public override long ID => id; public override string DisplayName => username != null ? '@' + username : last_name == null ? first_name : $"{first_name} {last_name}"; protected override InputPeer ToInputPeer() => new InputPeerUser { user_id = id, access_hash = access_hash }; protected override InputUserBase ToInputUser() => new InputUser { user_id = id, access_hash = access_hash }; @@ -175,10 +175,10 @@ namespace TL public static implicit operator InputStickerSetID(StickerSet stickerSet) => new() { id = stickerSet.id, access_hash = stickerSet.access_hash }; } - partial class Peer { public abstract int ID { get; } } - partial class PeerUser { public override int ID => user_id; } - partial class PeerChat { public override int ID => chat_id; } - partial class PeerChannel { public override int ID => channel_id; } + partial class Peer { public abstract long ID { get; } } + partial class PeerUser { public override long ID => user_id; } + partial class PeerChat { public override long ID => chat_id; } + partial class PeerChannel { public override long ID => channel_id; } partial class JsonObjectValue { public override string ToString() => $"{HttpUtility.JavaScriptStringEncode(key, true)}:{value}"; } partial class JsonNull { public override string ToString() => "null"; } diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index bb6374f..a896770 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -38,37 +38,37 @@ namespace TL [TLDef(0x7DA07EC9)] public partial class InputPeerSelf : InputPeer { } ///See - [TLDef(0x179BE863)] - public partial class InputPeerChat : InputPeer { public int chat_id; } + [TLDef(0x35A95CB9)] + public partial class InputPeerChat : InputPeer { public long chat_id; } ///See - [TLDef(0x7B8E7DE6)] + [TLDef(0xDDE8A54C)] public partial class InputPeerUser : InputPeer { - public int user_id; + public long user_id; public long access_hash; } ///See - [TLDef(0x20ADAEF8)] + [TLDef(0x27BCBBFC)] public partial class InputPeerChannel : InputPeer { - public int channel_id; + public long channel_id; public long access_hash; } ///See - [TLDef(0x17BAE2E6)] + [TLDef(0xA87B0A1C)] public partial class InputPeerUserFromMessage : InputPeer { public InputPeer peer; public int msg_id; - public int user_id; + public long user_id; } ///See - [TLDef(0x9C95F7BB)] + [TLDef(0xBD2A0840)] public partial class InputPeerChannelFromMessage : InputPeer { public InputPeer peer; public int msg_id; - public int channel_id; + public long channel_id; } ///See @@ -80,19 +80,19 @@ namespace TL [TLDef(0xF7C1B13F)] public partial class InputUserSelf : InputUserBase { } ///See - [TLDef(0xD8292816)] + [TLDef(0xF21158C6)] public partial class InputUser : InputUserBase { - public int user_id; + public long user_id; public long access_hash; } ///See - [TLDef(0x2D117597)] + [TLDef(0x1DA448E2)] public partial class InputUserFromMessage : InputUserBase { public InputPeer peer; public int msg_id; - public int user_id; + public long user_id; } ///See @@ -382,25 +382,29 @@ namespace TL public int thumb_version; } ///See - [TLDef(0xBBA51639)] + [TLDef(0x0598A92A)] public partial class InputGroupCallStream : InputFileLocationBase { + [Flags] public enum Flags { has_video_channel = 0x1 } + public Flags flags; public InputGroupCall call; public long time_ms; public int scale; + [IfFlag(0)] public int video_channel; + [IfFlag(0)] public int video_quality; } ///See public abstract partial class Peer : ITLObject { } ///See - [TLDef(0x9DB1BC6D)] - public partial class PeerUser : Peer { public int user_id; } + [TLDef(0x59511722)] + public partial class PeerUser : Peer { public long user_id; } ///See - [TLDef(0xBAD0E5BB)] - public partial class PeerChat : Peer { public int chat_id; } + [TLDef(0x36C6019A)] + public partial class PeerChat : Peer { public long chat_id; } ///See - [TLDef(0xBDDDE532)] - public partial class PeerChannel : Peer { public int channel_id; } + [TLDef(0xA2A5371E)] + public partial class PeerChannel : Peer { public long channel_id; } ///See public abstract partial class Storage_FileType : ITLObject { } @@ -438,10 +442,10 @@ namespace TL ///See public abstract partial class UserBase : ITLObject { } ///See - [TLDef(0x200250BA)] - public partial class UserEmpty : UserBase { public int id; } + [TLDef(0xD3BC4B7A)] + public partial class UserEmpty : UserBase { public long id; } ///See - [TLDef(0x938458C1)] + [TLDef(0x3FF6ECB0)] public partial class User : UserBase { [Flags] public enum Flags { has_access_hash = 0x1, has_first_name = 0x2, has_last_name = 0x4, has_username = 0x8, @@ -450,7 +454,7 @@ namespace TL has_bot_inline_placeholder = 0x80000, min = 0x100000, bot_inline_geo = 0x200000, has_lang_code = 0x400000, support = 0x800000, scam = 0x1000000, apply_min_photo = 0x2000000, fake = 0x4000000 } public Flags flags; - public int id; + public long id; [IfFlag(0)] public long access_hash; [IfFlag(1)] public string first_name; [IfFlag(2)] public string last_name; @@ -504,16 +508,16 @@ namespace TL ///See public abstract partial class ChatBase : ITLObject { } ///See - [TLDef(0x9BA2D800)] - public partial class ChatEmpty : ChatBase { public int id; } + [TLDef(0x29562865)] + public partial class ChatEmpty : ChatBase { public long id; } ///See - [TLDef(0x3BDA1BDE)] + [TLDef(0x41CBF256)] public partial class Chat : ChatBase { [Flags] public enum Flags { creator = 0x1, kicked = 0x2, left = 0x4, deactivated = 0x20, has_migrated_to = 0x40, has_admin_rights = 0x4000, has_default_banned_rights = 0x40000, call_active = 0x800000, call_not_empty = 0x1000000 } public Flags flags; - public int id; + public long id; public string title; public ChatPhotoBase photo; public int participants_count; @@ -524,14 +528,14 @@ namespace TL [IfFlag(18)] public ChatBannedRights default_banned_rights; } ///See - [TLDef(0x07328BDB)] + [TLDef(0x6592A1A7)] public partial class ChatForbidden : ChatBase { - public int id; + public long id; public string title; } ///See - [TLDef(0xD31A961E)] + [TLDef(0x8261AC61)] public partial class Channel : ChatBase { [Flags] public enum Flags { creator = 0x1, left = 0x4, broadcast = 0x20, has_username = 0x40, verified = 0x80, @@ -540,13 +544,12 @@ namespace TL has_link = 0x100000, has_geo = 0x200000, slowmode_enabled = 0x400000, call_active = 0x800000, call_not_empty = 0x1000000, fake = 0x2000000, gigagroup = 0x4000000 } public Flags flags; - public int id; + public long id; [IfFlag(13)] public long access_hash; public string title; [IfFlag(6)] public string username; public ChatPhotoBase photo; public DateTime date; - public int version; [IfFlag(9)] public RestrictionReason[] restriction_reason; [IfFlag(14)] public ChatAdminRights admin_rights; [IfFlag(15)] public ChatBannedRights banned_rights; @@ -554,12 +557,12 @@ namespace TL [IfFlag(17)] public int participants_count; } ///See - [TLDef(0x289DA732)] + [TLDef(0x17D493D5)] public partial class ChannelForbidden : ChatBase { [Flags] public enum Flags { broadcast = 0x20, megagroup = 0x100, has_until_date = 0x10000 } public Flags flags; - public int id; + public long id; public long access_hash; public string title; [IfFlag(16)] public DateTime until_date; @@ -568,14 +571,14 @@ namespace TL ///See public abstract partial class ChatFullBase : ITLObject { } ///See - [TLDef(0x8A1E2983)] + [TLDef(0x4DBDC099)] public partial class ChatFull : ChatFullBase { [Flags] public enum Flags { has_chat_photo = 0x4, has_bot_info = 0x8, has_pinned_msg_id = 0x40, can_set_username = 0x80, has_scheduled = 0x100, has_folder_id = 0x800, has_call = 0x1000, has_exported_invite = 0x2000, has_ttl_period = 0x4000, - has_groupcall_default_join_as = 0x8000 } + has_groupcall_default_join_as = 0x8000, has_theme_emoticon = 0x10000 } public Flags flags; - public int id; + public long id; public string about; public ChatParticipantsBase participants; [IfFlag(2)] public PhotoBase chat_photo; @@ -587,9 +590,10 @@ namespace TL [IfFlag(12)] public InputGroupCall call; [IfFlag(14)] public int ttl_period; [IfFlag(15)] public Peer groupcall_default_join_as; + [IfFlag(16)] public string theme_emoticon; } ///See - [TLDef(0x548C3F93)] + [TLDef(0xE9B27A17)] public partial class ChannelFull : ChatFullBase { [Flags] public enum Flags { has_participants_count = 0x1, has_admins_count = 0x2, has_kicked_count = 0x4, @@ -598,9 +602,10 @@ namespace TL has_folder_id = 0x800, has_stats_dc = 0x1000, has_online_count = 0x2000, has_linked_chat_id = 0x4000, has_location = 0x8000, can_set_location = 0x10000, has_slowmode_seconds = 0x20000, has_slowmode_next_send_date = 0x40000, has_scheduled = 0x80000, can_view_stats = 0x100000, has_call = 0x200000, blocked = 0x400000, has_exported_invite = 0x800000, - has_ttl_period = 0x1000000, has_pending_suggestions = 0x2000000, has_groupcall_default_join_as = 0x4000000 } + has_ttl_period = 0x1000000, has_pending_suggestions = 0x2000000, has_groupcall_default_join_as = 0x4000000, + has_theme_emoticon = 0x8000000 } public Flags flags; - public int id; + public long id; public string about; [IfFlag(0)] public int participants_count; [IfFlag(1)] public int admins_count; @@ -614,13 +619,13 @@ namespace TL public PeerNotifySettings notify_settings; [IfFlag(23)] public ExportedChatInvite exported_invite; public BotInfo[] bot_info; - [IfFlag(4)] public int migrated_from_chat_id; + [IfFlag(4)] public long migrated_from_chat_id; [IfFlag(4)] public int migrated_from_max_id; [IfFlag(5)] public int pinned_msg_id; [IfFlag(8)] public StickerSet stickerset; [IfFlag(9)] public int available_min_id; [IfFlag(11)] public int folder_id; - [IfFlag(14)] public int linked_chat_id; + [IfFlag(14)] public long linked_chat_id; [IfFlag(15)] public ChannelLocationBase location; [IfFlag(17)] public int slowmode_seconds; [IfFlag(18)] public DateTime slowmode_next_send_date; @@ -630,46 +635,47 @@ namespace TL [IfFlag(24)] public int ttl_period; [IfFlag(25)] public string[] pending_suggestions; [IfFlag(26)] public Peer groupcall_default_join_as; + [IfFlag(27)] public string theme_emoticon; } ///See public abstract partial class ChatParticipantBase : ITLObject { } ///See - [TLDef(0xC8D7493E)] + [TLDef(0xC02D4007)] public partial class ChatParticipant : ChatParticipantBase { - public int user_id; - public int inviter_id; + public long user_id; + public long inviter_id; public DateTime date; } ///See - [TLDef(0xDA13538A)] - public partial class ChatParticipantCreator : ChatParticipantBase { public int user_id; } + [TLDef(0xE46BCEE4)] + public partial class ChatParticipantCreator : ChatParticipantBase { public long user_id; } ///See - [TLDef(0xE2D6E436)] + [TLDef(0xA0933F5B)] public partial class ChatParticipantAdmin : ChatParticipantBase { - public int user_id; - public int inviter_id; + public long user_id; + public long inviter_id; public DateTime date; } ///See public abstract partial class ChatParticipantsBase : ITLObject { } ///See - [TLDef(0xFC900C2B)] + [TLDef(0x8763D3E1)] public partial class ChatParticipantsForbidden : ChatParticipantsBase { [Flags] public enum Flags { has_self_participant = 0x1 } public Flags flags; - public int chat_id; + public long chat_id; [IfFlag(0)] public ChatParticipantBase self_participant; } ///See - [TLDef(0x3F460FED)] + [TLDef(0x3CBC93F8)] public partial class ChatParticipants : ChatParticipantsBase { - public int chat_id; + public long chat_id; public ChatParticipantBase[] participants; public int version; } @@ -702,7 +708,7 @@ namespace TL [IfFlag(0)] public Peer peer_id; } ///See - [TLDef(0xBCE383D2)] + [TLDef(0x85D6CBE2)] public partial class Message : MessageBase { [Flags] public enum Flags { out_ = 0x2, has_fwd_from = 0x4, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, @@ -715,7 +721,7 @@ namespace TL [IfFlag(8)] public Peer from_id; public Peer peer_id; [IfFlag(2)] public MessageFwdHeader fwd_from; - [IfFlag(11)] public int via_bot_id; + [IfFlag(11)] public long via_bot_id; [IfFlag(3)] public MessageReplyHeader reply_to; public DateTime date; public string message; @@ -765,14 +771,14 @@ namespace TL [TLDef(0x56E0D474)] public partial class MessageMediaGeo : MessageMedia { public GeoPointBase geo; } ///See - [TLDef(0xCBF24940)] + [TLDef(0x70322949)] public partial class MessageMediaContact : MessageMedia { public string phone_number; public string first_name; public string last_name; public string vcard; - public int user_id; + public long user_id; } ///See [TLDef(0x9F84F49E)] @@ -849,11 +855,11 @@ namespace TL [TLDef(0xB6AEF7B0)] public partial class MessageActionEmpty : MessageAction { } ///See - [TLDef(0xA6638B9A)] + [TLDef(0xBD47CBAD)] public partial class MessageActionChatCreate : MessageAction { public string title; - public int[] users; + public long[] users; } ///See [TLDef(0xB5A1CE5A)] @@ -865,26 +871,26 @@ namespace TL [TLDef(0x95E3FBEF)] public partial class MessageActionChatDeletePhoto : MessageAction { } ///See - [TLDef(0x488A7337)] - public partial class MessageActionChatAddUser : MessageAction { public int[] users; } + [TLDef(0x15CEFD00)] + public partial class MessageActionChatAddUser : MessageAction { public long[] users; } ///See - [TLDef(0xB2AE9B0C)] - public partial class MessageActionChatDeleteUser : MessageAction { public int user_id; } + [TLDef(0xA43F30CC)] + public partial class MessageActionChatDeleteUser : MessageAction { public long user_id; } ///See - [TLDef(0xF89CF5E8)] - public partial class MessageActionChatJoinedByLink : MessageAction { public int inviter_id; } + [TLDef(0x031224C3)] + public partial class MessageActionChatJoinedByLink : MessageAction { public long inviter_id; } ///See [TLDef(0x95D2AC92)] public partial class MessageActionChannelCreate : MessageAction { public string title; } ///See - [TLDef(0x51BDB021)] - public partial class MessageActionChatMigrateTo : MessageAction { public int channel_id; } + [TLDef(0xE1037F92)] + public partial class MessageActionChatMigrateTo : MessageAction { public long channel_id; } ///See - [TLDef(0xB055EAEE)] + [TLDef(0xEA3948E9)] public partial class MessageActionChannelMigrateFrom : MessageAction { public string title; - public int chat_id; + public long chat_id; } ///See [TLDef(0x94BD38ED)] @@ -969,11 +975,11 @@ namespace TL [IfFlag(0)] public int duration; } ///See - [TLDef(0x76B9F11A)] + [TLDef(0x502F92F7)] public partial class MessageActionInviteToGroupCall : MessageAction { public InputGroupCall call; - public int[] users; + public long[] users; } ///See [TLDef(0xAA1AFBFD)] @@ -985,6 +991,9 @@ namespace TL public InputGroupCall call; public DateTime schedule_date; } + ///See + [TLDef(0xAA786345)] + public partial class MessageActionSetChatTheme : MessageAction { public string emoticon; } ///See public abstract partial class DialogBase : ITLObject { } @@ -1137,10 +1146,10 @@ namespace TL } ///See - [TLDef(0xDF969C2D)] + [TLDef(0xB434E2B8)] public partial class Auth_ExportedAuthorization : ITLObject { - public int id; + public long id; public byte[] bytes; } @@ -1245,12 +1254,13 @@ namespace TL public partial class InputReportReasonFake : ReportReason { } ///See - [TLDef(0x139A9A77)] + [TLDef(0xD697FF05)] public partial class UserFull : ITLObject { [Flags] public enum Flags { blocked = 0x1, has_about = 0x2, has_profile_photo = 0x4, has_bot_info = 0x8, phone_calls_available = 0x10, phone_calls_private = 0x20, has_pinned_msg_id = 0x40, can_pin_message = 0x80, - has_folder_id = 0x800, has_scheduled = 0x1000, video_calls_available = 0x2000, has_ttl_period = 0x4000 } + has_folder_id = 0x800, has_scheduled = 0x1000, video_calls_available = 0x2000, has_ttl_period = 0x4000, + has_theme_emoticon = 0x8000 } public Flags flags; public UserBase user; [IfFlag(1)] public string about; @@ -1262,29 +1272,30 @@ namespace TL public int common_chats_count; [IfFlag(11)] public int folder_id; [IfFlag(14)] public int ttl_period; + [IfFlag(15)] public string theme_emoticon; } ///See - [TLDef(0xF911C994)] + [TLDef(0x145ADE0B)] public partial class Contact : ITLObject { - public int user_id; + public long user_id; public bool mutual; } ///See - [TLDef(0xD0028438)] + [TLDef(0xC13E3C50)] public partial class ImportedContact : ITLObject { - public int user_id; + public long user_id; public long client_id; } ///See - [TLDef(0xD3680C61)] + [TLDef(0x16D9703B)] public partial class ContactStatus : ITLObject { - public int user_id; + public long user_id; public UserStatus status; } @@ -1512,17 +1523,17 @@ namespace TL public int pts_count; } ///See - [TLDef(0x5C486927)] + [TLDef(0xC01E857F)] public partial class UpdateUserTyping : Update { - public int user_id; + public long user_id; public SendMessageAction action; } ///See - [TLDef(0x86CADB6C)] + [TLDef(0x83487AF0)] public partial class UpdateChatUserTyping : Update { - public int chat_id; + public long chat_id; public Peer from_id; public SendMessageAction action; } @@ -1530,26 +1541,26 @@ namespace TL [TLDef(0x07761198)] public partial class UpdateChatParticipants : Update { public ChatParticipantsBase participants; } ///See - [TLDef(0x1BFBD823)] + [TLDef(0xE5BDF8DE)] public partial class UpdateUserStatus : Update { - public int user_id; + public long user_id; public UserStatus status; } ///See - [TLDef(0xA7332B73)] + [TLDef(0xC3F202E0)] public partial class UpdateUserName : Update { - public int user_id; + public long user_id; public string first_name; public string last_name; public string username; } ///See - [TLDef(0x95313B0C)] + [TLDef(0xF227868C)] public partial class UpdateUserPhoto : Update { - public int user_id; + public long user_id; public DateTime date; public UserProfilePhotoBase photo; public bool previous; @@ -1580,21 +1591,21 @@ namespace TL public DateTime date; } ///See - [TLDef(0xEA4B0E5C)] + [TLDef(0x3DDA5451)] public partial class UpdateChatParticipantAdd : Update { - public int chat_id; - public int user_id; - public int inviter_id; + public long chat_id; + public long user_id; + public long inviter_id; public DateTime date; public int version; } ///See - [TLDef(0x6E5F8C22)] + [TLDef(0xE32F3D77)] public partial class UpdateChatParticipantDelete : Update { - public int chat_id; - public int user_id; + public long chat_id; + public long user_id; public int version; } ///See @@ -1627,10 +1638,10 @@ namespace TL public PrivacyRule[] rules; } ///See - [TLDef(0x12B9417B)] + [TLDef(0x05492A13)] public partial class UpdateUserPhone : Update { - public int user_id; + public long user_id; public string phone; } ///See @@ -1672,17 +1683,17 @@ namespace TL public int pts_count; } ///See - [TLDef(0xEB0467FB)] + [TLDef(0x108D941F)] public partial class UpdateChannelTooLong : Update { [Flags] public enum Flags { has_pts = 0x1 } public Flags flags; - public int channel_id; + public long channel_id; [IfFlag(0)] public int pts; } ///See - [TLDef(0xB6D45656)] - public partial class UpdateChannel : Update { public int channel_id; } + [TLDef(0x635B4C09)] + public partial class UpdateChannel : Update { public long channel_id; } ///See [TLDef(0x62BA04D9)] public partial class UpdateNewChannelMessage : Update @@ -1692,40 +1703,40 @@ namespace TL public int pts_count; } ///See - [TLDef(0x330B5424)] + [TLDef(0x922E6E10)] public partial class UpdateReadChannelInbox : Update { [Flags] public enum Flags { has_folder_id = 0x1 } public Flags flags; [IfFlag(0)] public int folder_id; - public int channel_id; + public long channel_id; public int max_id; public int still_unread_count; public int pts; } ///See - [TLDef(0xC37521C9)] + [TLDef(0xC32D5B12)] public partial class UpdateDeleteChannelMessages : Update { - public int channel_id; + public long channel_id; public int[] messages; public int pts; public int pts_count; } ///See - [TLDef(0x98A12B4B)] + [TLDef(0xF226AC08)] public partial class UpdateChannelMessageViews : Update { - public int channel_id; + public long channel_id; public int id; public int views; } ///See - [TLDef(0xB6901959)] + [TLDef(0xD7CA61A2)] public partial class UpdateChatParticipantAdmin : Update { - public int chat_id; - public int user_id; + public long chat_id; + public long user_id; public bool is_admin; public int version; } @@ -1747,29 +1758,29 @@ namespace TL [TLDef(0x9375341E)] public partial class UpdateSavedGifs : Update { } ///See - [TLDef(0x3F2038DB)] + [TLDef(0x496F379C)] public partial class UpdateBotInlineQuery : Update { [Flags] public enum Flags { has_geo = 0x1, has_peer_type = 0x2 } public Flags flags; public long query_id; - public int user_id; + public long user_id; public string query; [IfFlag(0)] public GeoPointBase geo; [IfFlag(1)] public InlineQueryPeerType peer_type; public string offset; } ///See - [TLDef(0x0E48F964)] + [TLDef(0x12F12A07)] public partial class UpdateBotInlineSend : Update { [Flags] public enum Flags { has_geo = 0x1, has_msg_id = 0x2 } public Flags flags; - public int user_id; + public long user_id; public string query; [IfFlag(0)] public GeoPointBase geo; public string id; - [IfFlag(1)] public InputBotInlineMessageID msg_id; + [IfFlag(1)] public InputBotInlineMessageIDBase msg_id; } ///See [TLDef(0x1B3F4DF7)] @@ -1780,13 +1791,13 @@ namespace TL public int pts_count; } ///See - [TLDef(0xE73547E1)] + [TLDef(0xB9CFC48D)] public partial class UpdateBotCallbackQuery : Update { [Flags] public enum Flags { has_data = 0x1, has_game_short_name = 0x2 } public Flags flags; public long query_id; - public int user_id; + public long user_id; public Peer peer; public int msg_id; public long chat_instance; @@ -1802,23 +1813,23 @@ namespace TL public int pts_count; } ///See - [TLDef(0xF9D27A5A)] + [TLDef(0x691E9052)] public partial class UpdateInlineBotCallbackQuery : Update { [Flags] public enum Flags { has_data = 0x1, has_game_short_name = 0x2 } public Flags flags; public long query_id; - public int user_id; - public InputBotInlineMessageID msg_id; + public long user_id; + public InputBotInlineMessageIDBase msg_id; public long chat_instance; [IfFlag(0)] public byte[] data; [IfFlag(1)] public string game_short_name; } ///See - [TLDef(0x25D6C9C7)] + [TLDef(0xB75F99A9)] public partial class UpdateReadChannelOutbox : Update { - public int channel_id; + public long channel_id; public int max_id; } ///See @@ -1841,10 +1852,10 @@ namespace TL [TLDef(0x3354678F)] public partial class UpdatePtsChanged : Update { } ///See - [TLDef(0x40771900)] + [TLDef(0x2F2BA99F)] public partial class UpdateChannelWebPage : Update { - public int channel_id; + public long channel_id; public WebPageBase webpage; public int pts; public int pts_count; @@ -1879,22 +1890,22 @@ namespace TL public int timeout; } ///See - [TLDef(0xE0CDC940)] + [TLDef(0xB5AEFD7D)] public partial class UpdateBotShippingQuery : Update { public long query_id; - public int user_id; + public long user_id; public byte[] payload; public PostAddress shipping_address; } ///See - [TLDef(0x5D2F3AA9)] + [TLDef(0x8CAA9A96)] public partial class UpdateBotPrecheckoutQuery : Update { [Flags] public enum Flags { has_info = 0x1, has_shipping_option_id = 0x2 } public Flags flags; public long query_id; - public int user_id; + public long user_id; public byte[] payload; [IfFlag(0)] public PaymentRequestedInfo info; [IfFlag(1)] public string shipping_option_id; @@ -1914,20 +1925,20 @@ namespace TL [TLDef(0xE511996D)] public partial class UpdateFavedStickers : Update { } ///See - [TLDef(0x89893B45)] + [TLDef(0x44BDD535)] public partial class UpdateChannelReadMessagesContents : Update { - public int channel_id; + public long channel_id; public int[] messages; } ///See [TLDef(0x7084A7BE)] public partial class UpdateContactsReset : Update { } ///See - [TLDef(0x70DB6837)] + [TLDef(0xB23FC698)] public partial class UpdateChannelAvailableMessages : Update { - public int channel_id; + public long channel_id; public int available_min_id; } ///See @@ -1998,11 +2009,11 @@ namespace TL [TLDef(0x564FE691)] public partial class UpdateLoginToken : Update { } ///See - [TLDef(0x37F69F0B)] + [TLDef(0x106395C9)] public partial class UpdateMessagePollVote : Update { public long poll_id; - public int user_id; + public long user_id; public byte[][] options; public int qts; } @@ -2029,30 +2040,30 @@ namespace TL public byte[] data; } ///See - [TLDef(0x6E8A84DF)] + [TLDef(0xD29A27F4)] public partial class UpdateChannelMessageForwards : Update { - public int channel_id; + public long channel_id; public int id; public int forwards; } ///See - [TLDef(0x1CC7DE54)] + [TLDef(0xD6B19546)] public partial class UpdateReadChannelDiscussionInbox : Update { [Flags] public enum Flags { has_broadcast_id = 0x1 } public Flags flags; - public int channel_id; + public long channel_id; public int top_msg_id; public int read_max_id; - [IfFlag(0)] public int broadcast_id; + [IfFlag(0)] public long broadcast_id; [IfFlag(0)] public int broadcast_post; } ///See - [TLDef(0x4638A26C)] + [TLDef(0x695C9E7C)] public partial class UpdateReadChannelDiscussionOutbox : Update { - public int channel_id; + public long channel_id; public int top_msg_id; public int read_max_id; } @@ -2064,12 +2075,12 @@ namespace TL public bool blocked; } ///See - [TLDef(0x6B171718)] + [TLDef(0x8C88C923)] public partial class UpdateChannelUserTyping : Update { [Flags] public enum Flags { has_top_msg_id = 0x1 } public Flags flags; - public int channel_id; + public long channel_id; [IfFlag(0)] public int top_msg_id; public Peer from_id; public SendMessageAction action; @@ -2086,19 +2097,19 @@ namespace TL public int pts_count; } ///See - [TLDef(0x8588878B)] + [TLDef(0x5BB98608)] public partial class UpdatePinnedChannelMessages : Update { [Flags] public enum Flags { pinned = 0x1 } public Flags flags; - public int channel_id; + public long channel_id; public int[] messages; public int pts; public int pts_count; } ///See - [TLDef(0x1330A196)] - public partial class UpdateChat : Update { public int chat_id; } + [TLDef(0xF89A6A4E)] + public partial class UpdateChat : Update { public long chat_id; } ///See [TLDef(0xF2EBDB4E)] public partial class UpdateGroupCallParticipants : Update @@ -2108,10 +2119,10 @@ namespace TL public int version; } ///See - [TLDef(0xA45EB99B)] + [TLDef(0x14B24500)] public partial class UpdateGroupCall : Update { - public int chat_id; + public long chat_id; public GroupCallBase call; } ///See @@ -2124,40 +2135,40 @@ namespace TL [IfFlag(0)] public int ttl_period; } ///See - [TLDef(0xF3B3781F)] + [TLDef(0xD087663A)] public partial class UpdateChatParticipant : Update { [Flags] public enum Flags { has_prev_participant = 0x1, has_new_participant = 0x2, has_invite = 0x4 } public Flags flags; - public int chat_id; + public long chat_id; public DateTime date; - public int actor_id; - public int user_id; + public long actor_id; + public long user_id; [IfFlag(0)] public ChatParticipantBase prev_participant; [IfFlag(1)] public ChatParticipantBase new_participant; [IfFlag(2)] public ExportedChatInvite invite; public int qts; } ///See - [TLDef(0x7FECB1EC)] + [TLDef(0x985D3ABB)] public partial class UpdateChannelParticipant : Update { [Flags] public enum Flags { has_prev_participant = 0x1, has_new_participant = 0x2, has_invite = 0x4 } public Flags flags; - public int channel_id; + public long channel_id; public DateTime date; - public int actor_id; - public int user_id; + public long actor_id; + public long user_id; [IfFlag(0)] public ChannelParticipantBase prev_participant; [IfFlag(1)] public ChannelParticipantBase new_participant; [IfFlag(2)] public ExportedChatInvite invite; public int qts; } ///See - [TLDef(0x07F9488A)] + [TLDef(0xC4870A49)] public partial class UpdateBotStopped : Update { - public int user_id; + public long user_id; public DateTime date; public bool stopped; public int qts; @@ -2171,11 +2182,11 @@ namespace TL public DataJSON params_; } ///See - [TLDef(0xCF7E0873)] + [TLDef(0x4D712F2E)] public partial class UpdateBotCommands : Update { public Peer peer; - public int bot_id; + public long bot_id; public BotCommand[] commands; } @@ -2231,40 +2242,40 @@ namespace TL [TLDef(0xE317AF7E)] public partial class UpdatesTooLong : UpdatesBase { } ///See - [TLDef(0xFAEFF833)] + [TLDef(0x313BC7F8)] public partial class UpdateShortMessage : UpdatesBase { [Flags] public enum Flags { out_ = 0x2, has_fwd_from = 0x4, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, has_entities = 0x80, has_via_bot_id = 0x800, silent = 0x2000, has_ttl_period = 0x2000000 } public Flags flags; public int id; - public int user_id; + public long user_id; public string message; public int pts; public int pts_count; public DateTime date; [IfFlag(2)] public MessageFwdHeader fwd_from; - [IfFlag(11)] public int via_bot_id; + [IfFlag(11)] public long via_bot_id; [IfFlag(3)] public MessageReplyHeader reply_to; [IfFlag(7)] public MessageEntity[] entities; [IfFlag(25)] public int ttl_period; } ///See - [TLDef(0x1157B858)] + [TLDef(0x4D6DEEA5)] public partial class UpdateShortChatMessage : UpdatesBase { [Flags] public enum Flags { out_ = 0x2, has_fwd_from = 0x4, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, has_entities = 0x80, has_via_bot_id = 0x800, silent = 0x2000, has_ttl_period = 0x2000000 } public Flags flags; public int id; - public int from_id; - public int chat_id; + public long from_id; + public long chat_id; public string message; public int pts; public int pts_count; public DateTime date; [IfFlag(2)] public MessageFwdHeader fwd_from; - [IfFlag(11)] public int via_bot_id; + [IfFlag(11)] public long via_bot_id; [IfFlag(3)] public MessageReplyHeader reply_to; [IfFlag(7)] public MessageEntity[] entities; [IfFlag(25)] public int ttl_period; @@ -2465,17 +2476,17 @@ namespace TL [TLDef(0xAB7EC0A0)] public partial class EncryptedChatEmpty : EncryptedChatBase { public int id; } ///See - [TLDef(0x3BF703DC)] + [TLDef(0x66B25953)] public partial class EncryptedChatWaiting : EncryptedChatBase { public int id; public long access_hash; public DateTime date; - public int admin_id; - public int participant_id; + public long admin_id; + public long participant_id; } ///See - [TLDef(0x62718A82)] + [TLDef(0x48F1D94C)] public partial class EncryptedChatRequested : EncryptedChatBase { [Flags] public enum Flags { has_folder_id = 0x1 } @@ -2484,19 +2495,19 @@ namespace TL public int id; public long access_hash; public DateTime date; - public int admin_id; - public int participant_id; + public long admin_id; + public long participant_id; public byte[] g_a; } ///See - [TLDef(0xFA56CE36)] + [TLDef(0x61F0D4C7)] public partial class EncryptedChat : EncryptedChatBase { public int id; public long access_hash; public DateTime date; - public int admin_id; - public int participant_id; + public long admin_id; + public long participant_id; public byte[] g_a_or_b; public long key_fingerprint; } @@ -2714,6 +2725,19 @@ namespace TL ///See [TLDef(0xDBDA9246)] public partial class SendMessageHistoryImportAction : SendMessageAction { public int progress; } + ///See + [TLDef(0xB05AC6B1)] + public partial class SendMessageChooseStickerAction : SendMessageAction { } + ///See + [TLDef(0x6A3233B6)] + public partial class SendMessageEmojiInteraction : SendMessageAction + { + public string emoticon; + public DataJSON interaction; + } + ///See + [TLDef(0xB665902E)] + public partial class SendMessageEmojiInteractionSeen : SendMessageAction { public string emoticon; } ///See [TLDef(0xB3134D9D)] @@ -2800,11 +2824,11 @@ namespace TL [TLDef(0x90110467)] public partial class InputPrivacyValueDisallowUsers : InputPrivacyRule { public InputUserBase[] users; } ///See - [TLDef(0x4C81C1BA)] - public partial class InputPrivacyValueAllowChatParticipants : InputPrivacyRule { public int[] chats; } + [TLDef(0x840649CF)] + public partial class InputPrivacyValueAllowChatParticipants : InputPrivacyRule { public long[] chats; } ///See - [TLDef(0xD82363AF)] - public partial class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule { public int[] chats; } + [TLDef(0xE94F0F86)] + public partial class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule { public long[] chats; } ///See public abstract partial class PrivacyRule : ITLObject { } @@ -2815,8 +2839,8 @@ namespace TL [TLDef(0x65427B82)] public partial class PrivacyValueAllowAll : PrivacyRule { } ///See - [TLDef(0x4D5BBE0C)] - public partial class PrivacyValueAllowUsers : PrivacyRule { public int[] users; } + [TLDef(0xB8905FB2)] + public partial class PrivacyValueAllowUsers : PrivacyRule { public long[] users; } ///See [TLDef(0xF888FA1A)] public partial class PrivacyValueDisallowContacts : PrivacyRule { } @@ -2824,14 +2848,14 @@ namespace TL [TLDef(0x8B73E763)] public partial class PrivacyValueDisallowAll : PrivacyRule { } ///See - [TLDef(0x0C7F49B7)] - public partial class PrivacyValueDisallowUsers : PrivacyRule { public int[] users; } + [TLDef(0xE4621141)] + public partial class PrivacyValueDisallowUsers : PrivacyRule { public long[] users; } ///See - [TLDef(0x18BE796B)] - public partial class PrivacyValueAllowChatParticipants : PrivacyRule { public int[] chats; } + [TLDef(0x6B134E8E)] + public partial class PrivacyValueAllowChatParticipants : PrivacyRule { public long[] chats; } ///See - [TLDef(0xACAE0690)] - public partial class PrivacyValueDisallowChatParticipants : PrivacyRule { public int[] chats; } + [TLDef(0x41C87565)] + public partial class PrivacyValueDisallowChatParticipants : PrivacyRule { public long[] chats; } ///See [TLDef(0x50A04E45)] @@ -2902,10 +2926,10 @@ namespace TL [TLDef(0xF1749A22)] public partial class Messages_StickersNotModified : Messages_StickersBase { } ///See - [TLDef(0xE4599BBD)] + [TLDef(0x30A6EC7E)] public partial class Messages_Stickers : Messages_StickersBase { - public int hash; + public long hash; public DocumentBase[] stickers; } @@ -2923,10 +2947,10 @@ namespace TL [TLDef(0xE86602C3)] public partial class Messages_AllStickersNotModified : Messages_AllStickersBase { } ///See - [TLDef(0xEDFD405F)] + [TLDef(0xCDBBCEBB)] public partial class Messages_AllStickers : Messages_AllStickersBase { - public int hash; + public long hash; public StickerSet[] sets; } @@ -3066,14 +3090,14 @@ namespace TL ///See public abstract partial class ExportedChatInvite : ITLObject { } ///See - [TLDef(0x6E24FC9D)] + [TLDef(0xB18105E8)] public partial class ChatInviteExported : ExportedChatInvite { [Flags] public enum Flags { revoked = 0x1, has_expire_date = 0x2, has_usage_limit = 0x4, has_usage = 0x8, has_start_date = 0x10, permanent = 0x20 } public Flags flags; public string link; - public int admin_id; + public long admin_id; public DateTime date; [IfFlag(4)] public DateTime start_date; [IfFlag(1)] public DateTime expire_date; @@ -3164,10 +3188,10 @@ namespace TL } ///See - [TLDef(0x98E81D3A)] + [TLDef(0x1B74B335)] public partial class BotInfo : ITLObject { - public int user_id; + public long user_id; public string description; public BotCommand[] commands; } @@ -3320,8 +3344,8 @@ namespace TL [TLDef(0x76A6D327)] public partial class MessageEntityTextUrl : MessageEntity { public string url; } ///See - [TLDef(0x352DCA58)] - public partial class MessageEntityMentionName : MessageEntity { public int user_id; } + [TLDef(0xDC7B1140)] + public partial class MessageEntityMentionName : MessageEntity { public long user_id; } ///See [TLDef(0x208E68C9)] public partial class InputMessageEntityMentionName : MessageEntity { public InputUserBase user_id; } @@ -3350,19 +3374,19 @@ namespace TL [TLDef(0xEE8C1E86)] public partial class InputChannelEmpty : InputChannelBase { } ///See - [TLDef(0xAFEB712E)] + [TLDef(0xF35AEC28)] public partial class InputChannel : InputChannelBase { - public int channel_id; + public long channel_id; public long access_hash; } ///See - [TLDef(0x2A286531)] + [TLDef(0x5B934F9D)] public partial class InputChannelFromMessage : InputChannelBase { public InputPeer peer; public int msg_id; - public int channel_id; + public long channel_id; } ///See @@ -3436,51 +3460,51 @@ namespace TL ///See public abstract partial class ChannelParticipantBase : ITLObject { } ///See - [TLDef(0x15EBAC1D)] + [TLDef(0xC00C07C0)] public partial class ChannelParticipant : ChannelParticipantBase { - public int user_id; + public long user_id; public DateTime date; } ///See - [TLDef(0xA3289A6D)] + [TLDef(0x28A8BC67)] public partial class ChannelParticipantSelf : ChannelParticipantBase { - public int user_id; - public int inviter_id; + public long user_id; + public long inviter_id; public DateTime date; } ///See - [TLDef(0x447DCA4B)] + [TLDef(0x2FE601D3)] public partial class ChannelParticipantCreator : ChannelParticipantBase { [Flags] public enum Flags { has_rank = 0x1 } public Flags flags; - public int user_id; + public long user_id; public ChatAdminRights admin_rights; [IfFlag(0)] public string rank; } ///See - [TLDef(0xCCBEBBAF)] + [TLDef(0x34C3BB53)] public partial class ChannelParticipantAdmin : ChannelParticipantBase { [Flags] public enum Flags { can_edit = 0x1, self = 0x2, has_rank = 0x4 } public Flags flags; - public int user_id; - [IfFlag(1)] public int inviter_id; - public int promoted_by; + public long user_id; + [IfFlag(1)] public long inviter_id; + public long promoted_by; public DateTime date; public ChatAdminRights admin_rights; [IfFlag(2)] public string rank; } ///See - [TLDef(0x50A1DFD6)] + [TLDef(0x6DF8014E)] public partial class ChannelParticipantBanned : ChannelParticipantBase { [Flags] public enum Flags { left = 0x1 } public Flags flags; public Peer peer; - public int kicked_by; + public long kicked_by; public DateTime date; public ChatBannedRights banned_rights; } @@ -3563,10 +3587,10 @@ namespace TL [TLDef(0xE8025CA2)] public partial class Messages_SavedGifsNotModified : Messages_SavedGifsBase { } ///See - [TLDef(0x2E0709A5)] + [TLDef(0x84A02A0D)] public partial class Messages_SavedGifs : Messages_SavedGifsBase { - public int hash; + public long hash; public DocumentBase[] gifs; } @@ -3882,14 +3906,25 @@ namespace TL public Flags flags; } + ///See + public abstract partial class InputBotInlineMessageIDBase : ITLObject { } ///See [TLDef(0x890C3D89)] - public partial class InputBotInlineMessageID : ITLObject + public partial class InputBotInlineMessageID : InputBotInlineMessageIDBase { public int dc_id; public long id; public long access_hash; } + ///See + [TLDef(0xB6D915D7)] + public partial class InputBotInlineMessageID64 : InputBotInlineMessageIDBase + { + public int dc_id; + public long owner_id; + public int id; + public long access_hash; + } ///See [TLDef(0x3C20629F)] @@ -3999,10 +4034,10 @@ namespace TL [TLDef(0xC6DC0C66)] public partial class Messages_FeaturedStickersNotModified : Messages_FeaturedStickersBase { public int count; } ///See - [TLDef(0xB6ABC341)] + [TLDef(0x84C02310)] public partial class Messages_FeaturedStickers : Messages_FeaturedStickersBase { - public int hash; + public long hash; public int count; public StickerSetCoveredBase[] sets; public long[] unread; @@ -4014,10 +4049,10 @@ namespace TL [TLDef(0x0B17F890)] public partial class Messages_RecentStickersNotModified : Messages_RecentStickersBase { } ///See - [TLDef(0x22F3AFB3)] + [TLDef(0x88D37C56)] public partial class Messages_RecentStickers : Messages_RecentStickersBase { - public int hash; + public long hash; public StickerPack[] packs; public DocumentBase[] stickers; public int[] dates; @@ -4109,11 +4144,11 @@ namespace TL } ///See - [TLDef(0x58FFFCD0)] + [TLDef(0x73A379EB)] public partial class HighScore : ITLObject { public int pos; - public int user_id; + public long user_id; public int score; } @@ -4521,16 +4556,16 @@ namespace TL } ///See - [TLDef(0x8D0B2415)] + [TLDef(0x1694761B)] public partial class Payments_PaymentForm : ITLObject { [Flags] public enum Flags { has_saved_info = 0x1, has_saved_credentials = 0x2, can_save_credentials = 0x4, password_missing = 0x8, has_native_provider = 0x10 } public Flags flags; public long form_id; - public int bot_id; + public long bot_id; public Invoice invoice; - public int provider_id; + public long provider_id; public string url; [IfFlag(4)] public string native_provider; [IfFlag(4)] public DataJSON native_params; @@ -4559,14 +4594,14 @@ namespace TL public partial class Payments_PaymentVerificationNeeded : Payments_PaymentResultBase { public string url; } ///See - [TLDef(0x10B555D0)] + [TLDef(0x70C4FE03)] public partial class Payments_PaymentReceipt : ITLObject { [Flags] public enum Flags { has_info = 0x1, has_shipping = 0x2, has_photo = 0x4, has_tip_amount = 0x8 } public Flags flags; public DateTime date; - public int bot_id; - public int provider_id; + public long bot_id; + public long provider_id; public string title; public string description; [IfFlag(2)] public WebDocumentBase photo; @@ -4655,7 +4690,7 @@ namespace TL [TLDef(0x5366C915)] public partial class PhoneCallEmpty : PhoneCallBase { public long id; } ///See - [TLDef(0x1B8F4AD1)] + [TLDef(0xC5226F17)] public partial class PhoneCallWaiting : PhoneCallBase { [Flags] public enum Flags { has_receive_date = 0x1, video = 0x40 } @@ -4663,13 +4698,13 @@ namespace TL public long id; public long access_hash; public DateTime date; - public int admin_id; - public int participant_id; + public long admin_id; + public long participant_id; public PhoneCallProtocol protocol; [IfFlag(0)] public DateTime receive_date; } ///See - [TLDef(0x87EABB53)] + [TLDef(0x14B0ED0C)] public partial class PhoneCallRequested : PhoneCallBase { [Flags] public enum Flags { video = 0x40 } @@ -4677,13 +4712,13 @@ namespace TL public long id; public long access_hash; public DateTime date; - public int admin_id; - public int participant_id; + public long admin_id; + public long participant_id; public byte[] g_a_hash; public PhoneCallProtocol protocol; } ///See - [TLDef(0x997C454A)] + [TLDef(0x3660C311)] public partial class PhoneCallAccepted : PhoneCallBase { [Flags] public enum Flags { video = 0x40 } @@ -4691,13 +4726,13 @@ namespace TL public long id; public long access_hash; public DateTime date; - public int admin_id; - public int participant_id; + public long admin_id; + public long participant_id; public byte[] g_b; public PhoneCallProtocol protocol; } ///See - [TLDef(0x8742AE7F)] + [TLDef(0x967F7C67)] public partial class PhoneCall : PhoneCallBase { [Flags] public enum Flags { p2p_allowed = 0x20, video = 0x40 } @@ -4705,8 +4740,8 @@ namespace TL public long id; public long access_hash; public DateTime date; - public int admin_id; - public int participant_id; + public long admin_id; + public long participant_id; public byte[] g_a_or_b; public long key_fingerprint; public PhoneCallProtocol protocol; @@ -4937,11 +4972,11 @@ namespace TL [TLDef(0x8F079643)] public partial class ChannelAdminLogEventActionStopPoll : ChannelAdminLogEventAction { public MessageBase message; } ///See - [TLDef(0xA26F881B)] + [TLDef(0x050C7AC8)] public partial class ChannelAdminLogEventActionChangeLinkedChat : ChannelAdminLogEventAction { - public int prev_value; - public int new_value; + public long prev_value; + public long new_value; } ///See [TLDef(0x0E6B76AE)] @@ -4998,14 +5033,21 @@ namespace TL public int prev_value; public int new_value; } + ///See + [TLDef(0xFE69018D)] + public partial class ChannelAdminLogEventActionChangeTheme : ChannelAdminLogEventAction + { + public string prev_value; + public string new_value; + } ///See - [TLDef(0x3B5A3E40)] + [TLDef(0x1FAD68CD)] public partial class ChannelAdminLogEvent : ITLObject { public long id; public DateTime date; - public int user_id; + public long user_id; public ChannelAdminLogEventAction action; } @@ -5042,10 +5084,10 @@ namespace TL [TLDef(0x9E8FA6D3)] public partial class Messages_FavedStickersNotModified : Messages_FavedStickersBase { } ///See - [TLDef(0xF37F2F16)] + [TLDef(0x2CB51097)] public partial class Messages_FavedStickers : Messages_FavedStickersBase { - public int hash; + public long hash; public StickerPack[] packs; public DocumentBase[] stickers; } @@ -5056,11 +5098,11 @@ namespace TL [TLDef(0x46E1D13D)] public partial class RecentMeUrlUnknown : RecentMeUrl { } ///See - [TLDef(0x8DBC3336)] - public partial class RecentMeUrlUser : RecentMeUrl { public int user_id; } + [TLDef(0xB92C09E2)] + public partial class RecentMeUrlUser : RecentMeUrl { public long user_id; } ///See - [TLDef(0xA01B22F9)] - public partial class RecentMeUrlChat : RecentMeUrl { public int chat_id; } + [TLDef(0xB2DA71D2)] + public partial class RecentMeUrlChat : RecentMeUrl { public long chat_id; } ///See [TLDef(0xEB49081D)] public partial class RecentMeUrlChatInvite : RecentMeUrl { public ChatInviteBase chat_invite; } @@ -5090,11 +5132,11 @@ namespace TL } ///See - [TLDef(0xCAC943F2)] + [TLDef(0xA6F8F452)] public partial class WebAuthorization : ITLObject { public long hash; - public int bot_id; + public long bot_id; public string domain; public string browser; public string platform; @@ -5155,10 +5197,10 @@ namespace TL [TLDef(0x0D54B65D)] public partial class Messages_FoundStickerSetsNotModified : Messages_FoundStickerSetsBase { } ///See - [TLDef(0x5108D648)] + [TLDef(0x8AF09DD2)] public partial class Messages_FoundStickerSets : Messages_FoundStickerSetsBase { - public int hash; + public long hash; public StickerSetCoveredBase[] sets; } @@ -5711,14 +5753,14 @@ namespace TL } ///See - [TLDef(0xBADCC1A3)] + [TLDef(0xDCB82EA3)] public partial class PollResults : ITLObject { [Flags] public enum Flags { min = 0x1, has_results = 0x2, has_total_voters = 0x4, has_recent_voters = 0x8, has_solution = 0x10 } public Flags flags; [IfFlag(1)] public PollAnswerVoters[] results; [IfFlag(2)] public int total_voters; - [IfFlag(3)] public int[] recent_voters; + [IfFlag(3)] public long[] recent_voters; [IfFlag(4)] public string solution; [IfFlag(4)] public MessageEntity[] solution_entities; } @@ -5774,10 +5816,10 @@ namespace TL [TLDef(0x1C199183)] public partial class Account_WallPapersNotModified : Account_WallPapersBase { } ///See - [TLDef(0x702B65A9)] + [TLDef(0xCDC3858C)] public partial class Account_WallPapers : Account_WallPapersBase { - public int hash; + public long hash; public WallPaperBase[] wallpapers; } @@ -5960,10 +6002,11 @@ namespace TL public partial class InputThemeSlug : InputThemeBase { public string slug; } ///See - [TLDef(0x028F1114)] + [TLDef(0xE802B8DC)] public partial class Theme : ITLObject { - [Flags] public enum Flags { creator = 0x1, default_ = 0x2, has_document = 0x4, has_settings = 0x8 } + [Flags] public enum Flags { creator = 0x1, default_ = 0x2, has_document = 0x4, has_settings = 0x8, has_installs_count = 0x10, + for_chat = 0x20 } public Flags flags; public long id; public long access_hash; @@ -5971,7 +6014,7 @@ namespace TL public string title; [IfFlag(2)] public DocumentBase document; [IfFlag(3)] public ThemeSettings settings; - public int installs_count; + [IfFlag(4)] public int installs_count; } ///See @@ -5980,10 +6023,10 @@ namespace TL [TLDef(0xF41EB622)] public partial class Account_ThemesNotModified : Account_ThemesBase { } ///See - [TLDef(0x7F676421)] + [TLDef(0x9A3D8C6D)] public partial class Account_Themes : Account_ThemesBase { - public int hash; + public long hash; public Theme[] themes; } @@ -6043,29 +6086,31 @@ namespace TL public partial class BaseThemeArctic : BaseTheme { } ///See - [TLDef(0xBD507CD1)] + [TLDef(0x8FDE504F)] public partial class InputThemeSettings : ITLObject { - [Flags] public enum Flags { has_message_top_color = 0x1, has_wallpaper = 0x2 } + [Flags] public enum Flags { has_message_colors = 0x1, has_wallpaper = 0x2, message_colors_animated = 0x4, + has_outbox_accent_color = 0x8 } public Flags flags; public BaseTheme base_theme; public int accent_color; - [IfFlag(0)] public int message_top_color; - [IfFlag(0)] public int message_bottom_color; + [IfFlag(3)] public int outbox_accent_color; + [IfFlag(0)] public int[] message_colors; [IfFlag(1)] public InputWallPaperBase wallpaper; [IfFlag(1)] public WallPaperSettings wallpaper_settings; } ///See - [TLDef(0x9C14984A)] + [TLDef(0xFA58B6D4)] public partial class ThemeSettings : ITLObject { - [Flags] public enum Flags { has_message_top_color = 0x1, has_wallpaper = 0x2 } + [Flags] public enum Flags { has_message_colors = 0x1, has_wallpaper = 0x2, message_colors_animated = 0x4, + has_outbox_accent_color = 0x8 } public Flags flags; public BaseTheme base_theme; public int accent_color; - [IfFlag(0)] public int message_top_color; - [IfFlag(0)] public int message_bottom_color; + [IfFlag(3)] public int outbox_accent_color; + [IfFlag(0)] public int[] message_colors; [IfFlag(1)] public WallPaperBase wallpaper; } @@ -6084,25 +6129,25 @@ namespace TL ///See public abstract partial class MessageUserVoteBase : ITLObject { } ///See - [TLDef(0xA28E5559)] + [TLDef(0x34D247B4)] public partial class MessageUserVote : MessageUserVoteBase { - public int user_id; + public long user_id; public byte[] option; public DateTime date; } ///See - [TLDef(0x36377430)] + [TLDef(0x3CA5B0EC)] public partial class MessageUserVoteInputOption : MessageUserVoteBase { - public int user_id; + public long user_id; public DateTime date; } ///See - [TLDef(0x0E8FE0DE)] + [TLDef(0x8A65E557)] public partial class MessageUserVoteMultiple : MessageUserVoteBase { - public int user_id; + public long user_id; public byte[][] options; public DateTime date; } @@ -6263,29 +6308,29 @@ namespace TL } ///See - [TLDef(0x18F3D0F7)] + [TLDef(0x9D04AF9B)] public partial class StatsGroupTopPoster : ITLObject { - public int user_id; + public long user_id; public int messages; public int avg_chars; } ///See - [TLDef(0x6014F412)] + [TLDef(0xD7584C87)] public partial class StatsGroupTopAdmin : ITLObject { - public int user_id; + public long user_id; public int deleted; public int kicked; public int banned; } ///See - [TLDef(0x31962A4C)] + [TLDef(0x535F779D)] public partial class StatsGroupTopInviter : ITLObject { - public int user_id; + public long user_id; public int invitations; } @@ -6378,7 +6423,7 @@ namespace TL } ///See - [TLDef(0xF5DD8F9D)] + [TLDef(0xA6341782)] public partial class Messages_DiscussionMessage : ITLObject { [Flags] public enum Flags { has_max_id = 0x1, has_read_inbox_max_id = 0x2, has_read_outbox_max_id = 0x4 } @@ -6387,6 +6432,7 @@ namespace TL [IfFlag(0)] public int max_id; [IfFlag(1)] public int read_inbox_max_id; [IfFlag(2)] public int read_outbox_max_id; + public int unread_count; public ChatBase[] chats; public UserBase[] users; } @@ -6403,7 +6449,7 @@ namespace TL } ///See - [TLDef(0x4128FAAC)] + [TLDef(0x83D60FC2)] public partial class MessageReplies : ITLObject { [Flags] public enum Flags { comments = 0x1, has_recent_repliers = 0x2, has_max_id = 0x4, has_read_max_id = 0x8 } @@ -6411,7 +6457,7 @@ namespace TL public int replies; public int replies_pts; [IfFlag(1)] public Peer[] recent_repliers; - [IfFlag(0)] public int channel_id; + [IfFlag(0)] public long channel_id; [IfFlag(2)] public int max_id; [IfFlag(3)] public int read_max_id; } @@ -6444,7 +6490,7 @@ namespace TL { [Flags] public enum Flags { join_muted = 0x2, can_change_join_muted = 0x4, has_title = 0x8, has_stream_dc_id = 0x10, has_record_start_date = 0x20, join_date_asc = 0x40, has_schedule_date = 0x80, schedule_start_subscribed = 0x100, - can_start_video = 0x200, has_unmuted_video_count = 0x400 } + can_start_video = 0x200, has_unmuted_video_count = 0x400, record_video_active = 0x800 } public Flags flags; public long id; public long access_hash; @@ -6550,10 +6596,10 @@ namespace TL } ///See - [TLDef(0x1E3E6680)] + [TLDef(0x0B5CD5F4)] public partial class ChatInviteImporter : ITLObject { - public int user_id; + public long user_id; public DateTime date; } @@ -6594,10 +6640,10 @@ namespace TL } ///See - [TLDef(0xDFD2330F)] + [TLDef(0xF2ECEF23)] public partial class ChatAdminWithInvites : ITLObject { - public int admin_id; + public long admin_id; public int invites_count; public int revoked_invites_count; } @@ -6689,6 +6735,50 @@ namespace TL ///See [TLDef(0xE926D63E)] public partial class Account_ResetPasswordOk : Account_ResetPasswordResult { } + + ///See + [TLDef(0xED0B5C33)] + public partial class ChatTheme : ITLObject + { + public string emoticon; + public Theme theme; + public Theme dark_theme; + } + + ///See + public abstract partial class Account_ChatThemesBase : ITLObject { } + ///See + [TLDef(0xE011E1C4)] + public partial class Account_ChatThemesNotModified : Account_ChatThemesBase { } + ///See + [TLDef(0xFE4CBEBD)] + public partial class Account_ChatThemes : Account_ChatThemesBase + { + public int hash; + public ChatTheme[] themes; + } + + ///See + [TLDef(0x2A3C381F)] + public partial class SponsoredMessage : ITLObject + { + [Flags] public enum Flags { has_start_param = 0x1, has_entities = 0x2 } + public Flags flags; + public byte[] random_id; + public Peer from_id; + [IfFlag(0)] public string start_param; + public string message; + [IfFlag(1)] public MessageEntity[] entities; + } + + ///See + [TLDef(0x65A4C7D5)] + public partial class Messages_SponsoredMessages : ITLObject + { + public SponsoredMessage[] messages; + public ChatBase[] chats; + public UserBase[] users; + } } namespace WTelegram // ---functions--- @@ -6839,10 +6929,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Auth_ImportAuthorization(int id, byte[] bytes) + public Task Auth_ImportAuthorization(long id, byte[] bytes) => CallAsync(writer => { - writer.Write(0xE3EF9613); + writer.Write(0xA57A7DAD); writer.Write(id); writer.WriteTLBytes(bytes); return "Auth_ImportAuthorization"; @@ -6931,10 +7021,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Auth_ExportLoginToken(int api_id, string api_hash, int[] except_ids) + public Task Auth_ExportLoginToken(int api_id, string api_hash, long[] except_ids) => CallAsync(writer => { - writer.Write(0xB1B41517); + writer.Write(0xB7E085FE); writer.Write(api_id); writer.WriteTLString(api_hash); writer.WriteTLVector(except_ids); @@ -6969,10 +7059,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Account_RegisterDevice(int token_type, string token, bool app_sandbox, byte[] secret, int[] other_uids, bool no_muted = false) + public Task Account_RegisterDevice(int token_type, string token, bool app_sandbox, byte[] secret, long[] other_uids, bool no_muted = false) => CallAsync(writer => { - writer.Write(0x68976C6F); + writer.Write(0xEC86017A); writer.Write(no_muted ? 0x1 : 0); writer.Write(token_type); writer.WriteTLString(token); @@ -6983,10 +7073,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Account_UnregisterDevice(int token_type, string token, int[] other_uids) + public Task Account_UnregisterDevice(int token_type, string token, long[] other_uids) => CallAsync(writer => { - writer.Write(0x3076C4BF); + writer.Write(0x6A0D3206); writer.Write(token_type); writer.WriteTLString(token); writer.WriteTLVector(other_uids); @@ -7045,10 +7135,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Account_GetWallPapers(int hash) + public Task Account_GetWallPapers(long hash) => CallAsync(writer => { - writer.Write(0xAABB1763); + writer.Write(0x07967D36); writer.Write(hash); return "Account_GetWallPapers"; }); @@ -7293,10 +7383,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Account_GetAuthorizationForm(int bot_id, string scope, string public_key) + public Task Account_GetAuthorizationForm(long bot_id, string scope, string public_key) => CallAsync(writer => { - writer.Write(0xB86BA8E1); + writer.Write(0xA929597A); writer.Write(bot_id); writer.WriteTLString(scope); writer.WriteTLString(public_key); @@ -7304,10 +7394,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Account_AcceptAuthorization(int bot_id, string scope, string public_key, SecureValueHash[] value_hashes, SecureCredentialsEncrypted credentials) + public Task Account_AcceptAuthorization(long bot_id, string scope, string public_key, SecureValueHash[] value_hashes, SecureCredentialsEncrypted credentials) => CallAsync(writer => { - writer.Write(0xE7027C94); + writer.Write(0xF3ED4C73); writer.Write(bot_id); writer.WriteTLString(scope); writer.WriteTLString(public_key); @@ -7579,10 +7669,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Account_GetThemes(string format, int hash) + public Task Account_GetThemes(string format, long hash) => CallAsync(writer => { - writer.Write(0x285946F8); + writer.Write(0x7206E458); writer.WriteTLString(format); writer.Write(hash); return "Account_GetThemes"; @@ -7659,6 +7749,15 @@ namespace WTelegram // ---functions--- return "Account_DeclinePasswordReset"; }); + ///See + public Task Account_GetChatThemes(int hash) + => CallAsync(writer => + { + writer.Write(0xD6D71D7B); + writer.Write(hash); + return "Account_GetChatThemes"; + }); + ///See public Task Users_GetUsers(InputUserBase[] id) => CallAsync(writer => @@ -7688,10 +7787,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Contacts_GetContactIDs(int hash) + public Task Contacts_GetContactIDs(long hash) => CallAsync(writer => { - writer.Write(0x2CAA4A42); + writer.Write(0x7ADC669D); writer.Write(hash); return "Contacts_GetContactIDs"; }); @@ -7705,10 +7804,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Contacts_GetContacts(int hash) + public Task Contacts_GetContacts(long hash) => CallAsync(writer => { - writer.Write(0xC023849F); + writer.Write(0x5DD69E12); writer.Write(hash); return "Contacts_GetContacts"; }); @@ -7788,10 +7887,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Contacts_GetTopPeers(int offset, int limit, int hash, bool correspondents = false, bool bots_pm = false, bool bots_inline = false, bool phone_calls = false, bool forward_users = false, bool forward_chats = false, bool groups = false, bool channels = false) + public Task Contacts_GetTopPeers(int offset, int limit, long hash, bool correspondents = false, bool bots_pm = false, bool bots_inline = false, bool phone_calls = false, bool forward_users = false, bool forward_chats = false, bool groups = false, bool channels = false) => CallAsync(writer => { - writer.Write(0xD4982DB5); + writer.Write(0x973478B6); writer.Write((correspondents ? 0x1 : 0) | (bots_pm ? 0x2 : 0) | (bots_inline ? 0x4 : 0) | (phone_calls ? 0x8 : 0) | (forward_users ? 0x10 : 0) | (forward_chats ? 0x20 : 0) | (groups ? 0x400 : 0) | (channels ? 0x8000 : 0)); writer.Write(offset); writer.Write(limit); @@ -7888,10 +7987,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetDialogs(DateTime offset_date, int offset_id, InputPeer offset_peer, int limit, int hash, bool exclude_pinned = false, int? folder_id = null) + public Task Messages_GetDialogs(DateTime offset_date, int offset_id, InputPeer offset_peer, int limit, long hash, bool exclude_pinned = false, int? folder_id = null) => CallAsync(writer => { - writer.Write(0xA0EE3B73); + writer.Write(0xA0F4CB4F); writer.Write((exclude_pinned ? 0x1 : 0) | (folder_id != null ? 0x2 : 0)); if (folder_id != null) writer.Write(folder_id.Value); @@ -7904,10 +8003,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetHistory(InputPeer peer, int offset_id, DateTime offset_date, int add_offset, int limit, int max_id, int min_id, int hash) + public Task Messages_GetHistory(InputPeer peer, int offset_id, DateTime offset_date, int add_offset, int limit, int max_id, int min_id, long hash) => CallAsync(writer => { - writer.Write(0xDCBB8260); + writer.Write(0x4423E6C5); writer.WriteTLObject(peer); writer.Write(offset_id); writer.WriteTLStamp(offset_date); @@ -7920,10 +8019,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_Search(InputPeer peer, string q, MessagesFilter filter, DateTime min_date, DateTime max_date, int offset_id, int add_offset, int limit, int max_id, int min_id, int hash, InputPeer from_id = null, int? top_msg_id = null) + public Task Messages_Search(InputPeer peer, string q, MessagesFilter filter, DateTime min_date, DateTime max_date, int offset_id, int add_offset, int limit, int max_id, int min_id, long hash, InputPeer from_id = null, int? top_msg_id = null) => CallAsync(writer => { - writer.Write(0x0C352EEC); + writer.Write(0xA0FDA762); writer.Write((from_id != null ? 0x1 : 0) | (top_msg_id != null ? 0x2 : 0)); writer.WriteTLObject(peer); writer.WriteTLString(q); @@ -8038,11 +8137,11 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_ForwardMessages(InputPeer from_peer, int[] id, long[] random_id, InputPeer to_peer, bool silent = false, bool background = false, bool with_my_score = false, DateTime? schedule_date = null) + public Task Messages_ForwardMessages(InputPeer from_peer, int[] id, long[] random_id, InputPeer to_peer, bool silent = false, bool background = false, bool with_my_score = false, bool drop_author = false, bool drop_media_captions = false, DateTime? schedule_date = null) => CallAsync(writer => { writer.Write(0xD9FEE60E); - writer.Write((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (with_my_score ? 0x100 : 0) | (schedule_date != null ? 0x400 : 0)); + writer.Write((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (with_my_score ? 0x100 : 0) | (drop_author ? 0x800 : 0) | (drop_media_captions ? 0x1000 : 0) | (schedule_date != null ? 0x400 : 0)); writer.WriteTLObject(from_peer); writer.WriteTLVector(id); writer.WriteTLVector(random_id); @@ -8083,48 +8182,48 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetChats(int[] id) + public Task Messages_GetChats(long[] id) => CallAsync(writer => { - writer.Write(0x3C6AA187); + writer.Write(0x49E9528F); writer.WriteTLVector(id); return "Messages_GetChats"; }); ///See - public Task Messages_GetFullChat(int chat_id) + public Task Messages_GetFullChat(long chat_id) => CallAsync(writer => { - writer.Write(0x3B831C66); + writer.Write(0xAEB00B34); writer.Write(chat_id); return "Messages_GetFullChat"; }); ///See - public Task Messages_EditChatTitle(int chat_id, string title) + public Task Messages_EditChatTitle(long chat_id, string title) => CallAsync(writer => { - writer.Write(0xDC452855); + writer.Write(0x73783FFD); writer.Write(chat_id); writer.WriteTLString(title); return "Messages_EditChatTitle"; }); ///See - public Task Messages_EditChatPhoto(int chat_id, InputChatPhotoBase photo) + public Task Messages_EditChatPhoto(long chat_id, InputChatPhotoBase photo) => CallAsync(writer => { - writer.Write(0xCA4C79D8); + writer.Write(0x35DDD674); writer.Write(chat_id); writer.WriteTLObject(photo); return "Messages_EditChatPhoto"; }); ///See - public Task Messages_AddChatUser(int chat_id, InputUserBase user_id, int fwd_limit) + public Task Messages_AddChatUser(long chat_id, InputUserBase user_id, int fwd_limit) => CallAsync(writer => { - writer.Write(0xF9A0AA09); + writer.Write(0xF24753E3); writer.Write(chat_id); writer.WriteTLObject(user_id); writer.Write(fwd_limit); @@ -8132,10 +8231,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_DeleteChatUser(int chat_id, InputUserBase user_id, bool revoke_history = false) + public Task Messages_DeleteChatUser(long chat_id, InputUserBase user_id, bool revoke_history = false) => CallAsync(writer => { - writer.Write(0xC534459A); + writer.Write(0xA2185CAB); writer.Write(revoke_history ? 0x1 : 0); writer.Write(chat_id); writer.WriteTLObject(user_id); @@ -8278,20 +8377,20 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetStickers(string emoticon, int hash) + public Task Messages_GetStickers(string emoticon, long hash) => CallAsync(writer => { - writer.Write(0x043D4F2C); + writer.Write(0xD5A5D3A1); writer.WriteTLString(emoticon); writer.Write(hash); return "Messages_GetStickers"; }); ///See - public Task Messages_GetAllStickers(int hash) + public Task Messages_GetAllStickers(long hash) => CallAsync(writer => { - writer.Write(0x1C9618B1); + writer.Write(0xB8A0A1A8); writer.Write(hash); return "Messages_GetAllStickers"; }); @@ -8392,10 +8491,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_EditChatAdmin(int chat_id, InputUserBase user_id, bool is_admin) + public Task Messages_EditChatAdmin(long chat_id, InputUserBase user_id, bool is_admin) => CallAsync(writer => { - writer.Write(0xA9E69F2E); + writer.Write(0xA85BD1C2); writer.Write(chat_id); writer.WriteTLObject(user_id); writer.Write(is_admin ? 0x997275B5 : 0xBC799737); @@ -8403,10 +8502,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_MigrateChat(int chat_id) + public Task Messages_MigrateChat(long chat_id) => CallAsync(writer => { - writer.Write(0x15A3B8E3); + writer.Write(0xA2875319); writer.Write(chat_id); return "Messages_MigrateChat"; }); @@ -8452,10 +8551,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetSavedGifs(int hash) + public Task Messages_GetSavedGifs(long hash) => CallAsync(writer => { - writer.Write(0x83BF3D52); + writer.Write(0x5CF09635); writer.Write(hash); return "Messages_GetSavedGifs"; }); @@ -8550,7 +8649,7 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_EditInlineBotMessage(InputBotInlineMessageID id, bool no_webpage = false, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null) + public Task Messages_EditInlineBotMessage(InputBotInlineMessageIDBase id, bool no_webpage = false, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null) => CallAsync(writer => { writer.Write(0x83557DBA); @@ -8630,10 +8729,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetFeaturedStickers(int hash) + public Task Messages_GetFeaturedStickers(long hash) => CallAsync(writer => { - writer.Write(0x2DACCA4F); + writer.Write(0x64780B14); writer.Write(hash); return "Messages_GetFeaturedStickers"; }); @@ -8648,10 +8747,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetRecentStickers(int hash, bool attached = false) + public Task Messages_GetRecentStickers(long hash, bool attached = false) => CallAsync(writer => { - writer.Write(0x5EA192C9); + writer.Write(0x9DA9403B); writer.Write(attached ? 0x1 : 0); writer.Write(hash); return "Messages_GetRecentStickers"; @@ -8689,10 +8788,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetMaskStickers(int hash) + public Task Messages_GetMaskStickers(long hash) => CallAsync(writer => { - writer.Write(0x65B8C79F); + writer.Write(0x640F82B8); writer.Write(hash); return "Messages_GetMaskStickers"; }); @@ -8720,7 +8819,7 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_SetInlineGameScore(InputBotInlineMessageID id, InputUserBase user_id, int score, bool edit_message = false, bool force = false) + public Task Messages_SetInlineGameScore(InputBotInlineMessageIDBase id, InputUserBase user_id, int score, bool edit_message = false, bool force = false) => CallAsync(writer => { writer.Write(0x15AD9F64); @@ -8743,7 +8842,7 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetInlineGameHighScores(InputBotInlineMessageID id, InputUserBase user_id) + public Task Messages_GetInlineGameHighScores(InputBotInlineMessageIDBase id, InputUserBase user_id) => CallAsync(writer => { writer.Write(0x0F635E1B); @@ -8753,10 +8852,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetCommonChats(InputUserBase user_id, int max_id, int limit) + public Task Messages_GetCommonChats(InputUserBase user_id, long max_id, int limit) => CallAsync(writer => { - writer.Write(0x0D0A48C4); + writer.Write(0xE40CA104); writer.WriteTLObject(user_id); writer.Write(max_id); writer.Write(limit); @@ -8764,10 +8863,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetAllChats(int[] except_ids) + public Task Messages_GetAllChats(long[] except_ids) => CallAsync(writer => { - writer.Write(0xEBA80FF0); + writer.Write(0x875F74BE); writer.WriteTLVector(except_ids); return "Messages_GetAllChats"; }); @@ -8860,10 +8959,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetFavedStickers(int hash) + public Task Messages_GetFavedStickers(long hash) => CallAsync(writer => { - writer.Write(0x21CE0B0E); + writer.Write(0x04F1AAA9); writer.Write(hash); return "Messages_GetFavedStickers"; }); @@ -8902,10 +9001,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetRecentLocations(InputPeer peer, int limit, int hash) + public Task Messages_GetRecentLocations(InputPeer peer, int limit, long hash) => CallAsync(writer => { - writer.Write(0xBBC45B09); + writer.Write(0x702A40E0); writer.WriteTLObject(peer); writer.Write(limit); writer.Write(hash); @@ -8938,10 +9037,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_SearchStickerSets(string q, int hash, bool exclude_featured = false) + public Task Messages_SearchStickerSets(string q, long hash, bool exclude_featured = false) => CallAsync(writer => { - writer.Write(0xC2B7D08B); + writer.Write(0x35705B8A); writer.Write(exclude_featured ? 0x1 : 0); writer.WriteTLString(q); writer.Write(hash); @@ -9145,10 +9244,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetScheduledHistory(InputPeer peer, int hash) + public Task Messages_GetScheduledHistory(InputPeer peer, long hash) => CallAsync(writer => { - writer.Write(0xE2C2685B); + writer.Write(0xF516760B); writer.WriteTLObject(peer); writer.Write(hash); return "Messages_GetScheduledHistory"; @@ -9248,10 +9347,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetOldFeaturedStickers(int offset, int limit, int hash) + public Task Messages_GetOldFeaturedStickers(int offset, int limit, long hash) => CallAsync(writer => { - writer.Write(0x5FE7025B); + writer.Write(0x7ED094A1); writer.Write(offset); writer.Write(limit); writer.Write(hash); @@ -9259,10 +9358,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_GetReplies(InputPeer peer, int msg_id, int offset_id, DateTime offset_date, int add_offset, int limit, int max_id, int min_id, int hash) + public Task Messages_GetReplies(InputPeer peer, int msg_id, int offset_id, DateTime offset_date, int add_offset, int limit, int max_id, int min_id, long hash) => CallAsync(writer => { - writer.Write(0x24B581BA); + writer.Write(0x22DDD30C); writer.WriteTLObject(peer); writer.Write(msg_id); writer.Write(offset_id); @@ -9306,10 +9405,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Messages_DeleteChat(int chat_id) + public Task Messages_DeleteChat(long chat_id) => CallAsync(writer => { - writer.Write(0x83247D11); + writer.Write(0x5BD0EE50); writer.Write(chat_id); return "Messages_DeleteChat"; }); @@ -9467,6 +9566,26 @@ namespace WTelegram // ---functions--- return "Messages_CheckHistoryImportPeer"; }); + ///See + public Task Messages_SetChatTheme(InputPeer peer, string emoticon) + => CallAsync(writer => + { + writer.Write(0xE63BE13F); + writer.WriteTLObject(peer); + writer.WriteTLString(emoticon); + return "Messages_SetChatTheme"; + }); + + ///See + public Task Messages_GetMessageReadParticipants(InputPeer peer, int msg_id) + => CallAsync(writer => + { + writer.Write(0x2C6F97B7); + writer.WriteTLObject(peer); + writer.Write(msg_id); + return "Messages_GetMessageReadParticipants"; + }); + ///See public Task Updates_GetState() => CallAsync(writer => @@ -9880,10 +9999,10 @@ namespace WTelegram // ---functions--- }); ///See - public Task Channels_GetParticipants(InputChannelBase channel, ChannelParticipantsFilter filter, int offset, int limit, int hash) + public Task Channels_GetParticipants(InputChannelBase channel, ChannelParticipantsFilter filter, int offset, int limit, long hash) => CallAsync(writer => { - writer.Write(0x123E05E9); + writer.Write(0x77CED9D0); writer.WriteTLObject(channel); writer.WriteTLObject(filter); writer.Write(offset); @@ -10199,6 +10318,25 @@ namespace WTelegram // ---functions--- return "Channels_ConvertToGigagroup"; }); + ///See + public Task Channels_ViewSponsoredMessage(InputChannelBase channel, byte[] random_id) + => CallAsync(writer => + { + writer.Write(0xBEAEDB94); + writer.WriteTLObject(channel); + writer.WriteTLBytes(random_id); + return "Channels_ViewSponsoredMessage"; + }); + + ///See + public Task Channels_GetSponsoredMessages(InputChannelBase channel) + => CallAsync(writer => + { + writer.Write(0xEC210FBF); + writer.WriteTLObject(channel); + return "Channels_GetSponsoredMessages"; + }); + ///See public Task Bots_SendCustomRequest(string custom_method, DataJSON params_) => CallAsync(writer => @@ -10573,11 +10711,12 @@ namespace WTelegram // ---functions--- }); ///See - public Task Phone_GetGroupCall(InputGroupCall call) + public Task Phone_GetGroupCall(InputGroupCall call, int limit) => CallAsync(writer => { - writer.Write(0x0C7CB017); + writer.Write(0x041845DB); writer.WriteTLObject(call); + writer.Write(limit); return "Phone_GetGroupCall"; }); @@ -10605,14 +10744,16 @@ namespace WTelegram // ---functions--- }); ///See - public Task Phone_ToggleGroupCallRecord(InputGroupCall call, bool start = false, string title = null) + public Task Phone_ToggleGroupCallRecord(InputGroupCall call, bool start = false, bool video = false, string title = null, bool? video_portrait = null) => CallAsync(writer => { - writer.Write(0xC02A66D7); - writer.Write((start ? 0x1 : 0) | (title != null ? 0x2 : 0)); + writer.Write(0xF128C708); + writer.Write((start ? 0x1 : 0) | (video ? 0x4 : 0) | (title != null ? 0x2 : 0) | (video_portrait != null ? 0x4 : 0)); writer.WriteTLObject(call); if (title != null) writer.WriteTLString(title); + if (video_portrait != null) + writer.Write(video_portrait.Value ? 0x997275B5 : 0xBC799737); return "Phone_ToggleGroupCallRecord"; }); diff --git a/src/TL.Table.cs b/src/TL.Table.cs index 5f206a8..ba5f3a6 100644 --- a/src/TL.Table.cs +++ b/src/TL.Table.cs @@ -6,7 +6,7 @@ namespace TL { static partial class Schema { - public const int Layer = 131; // fetched 20/08/2021 12:21:02 + public const int Layer = 133; // fetched 17/09/2021 01:46:27 public const uint VectorCtor = 0x1CB5C415; public const uint NullCtor = 0x56730BCC; public const uint RpcResult = 0xF35C6D01; @@ -69,15 +69,15 @@ namespace TL [0x56730BCC] = typeof(Null), [0x7F3B18EA] = typeof(InputPeerEmpty), [0x7DA07EC9] = typeof(InputPeerSelf), - [0x179BE863] = typeof(InputPeerChat), - [0x7B8E7DE6] = typeof(InputPeerUser), - [0x20ADAEF8] = typeof(InputPeerChannel), - [0x17BAE2E6] = typeof(InputPeerUserFromMessage), - [0x9C95F7BB] = typeof(InputPeerChannelFromMessage), + [0x35A95CB9] = typeof(InputPeerChat), + [0xDDE8A54C] = typeof(InputPeerUser), + [0x27BCBBFC] = typeof(InputPeerChannel), + [0xA87B0A1C] = typeof(InputPeerUserFromMessage), + [0xBD2A0840] = typeof(InputPeerChannelFromMessage), [0xB98886CF] = typeof(InputUserEmpty), [0xF7C1B13F] = typeof(InputUserSelf), - [0xD8292816] = typeof(InputUser), - [0x2D117597] = typeof(InputUserFromMessage), + [0xF21158C6] = typeof(InputUser), + [0x1DA448E2] = typeof(InputUserFromMessage), [0xF392B7F4] = typeof(InputPhoneContact), [0xF52FF27F] = typeof(InputFile), [0xFA4F0BB5] = typeof(InputFileBig), @@ -112,10 +112,10 @@ namespace TL [0xD83466F3] = typeof(InputPhotoLegacyFileLocation), [0x37257E99] = typeof(InputPeerPhotoFileLocation), [0x9D84F3DB] = typeof(InputStickerSetThumb), - [0xBBA51639] = typeof(InputGroupCallStream), - [0x9DB1BC6D] = typeof(PeerUser), - [0xBAD0E5BB] = typeof(PeerChat), - [0xBDDDE532] = typeof(PeerChannel), + [0x0598A92A] = typeof(InputGroupCallStream), + [0x59511722] = typeof(PeerUser), + [0x36C6019A] = typeof(PeerChat), + [0xA2A5371E] = typeof(PeerChannel), [0xAA963B05] = typeof(Storage_FileUnknown), [0x40BC6F52] = typeof(Storage_FilePartial), [0x007EFE0E] = typeof(Storage_FileJpeg), @@ -126,8 +126,8 @@ namespace TL [0x4B09EBBC] = typeof(Storage_FileMov), [0xB3CEA0E4] = typeof(Storage_FileMp4), [0x1081464C] = typeof(Storage_FileWebp), - [0x200250BA] = typeof(UserEmpty), - [0x938458C1] = typeof(User), + [0xD3BC4B7A] = typeof(UserEmpty), + [0x3FF6ECB0] = typeof(User), [0x4F11BAE1] = typeof(UserProfilePhotoEmpty), [0x82D1F706] = typeof(UserProfilePhoto), [0x09D05049] = typeof(UserStatusEmpty), @@ -136,27 +136,27 @@ namespace TL [0xE26F42F1] = typeof(UserStatusRecently), [0x07BF09FC] = typeof(UserStatusLastWeek), [0x77EBC742] = typeof(UserStatusLastMonth), - [0x9BA2D800] = typeof(ChatEmpty), - [0x3BDA1BDE] = typeof(Chat), - [0x07328BDB] = typeof(ChatForbidden), - [0xD31A961E] = typeof(Channel), - [0x289DA732] = typeof(ChannelForbidden), - [0x8A1E2983] = typeof(ChatFull), - [0x548C3F93] = typeof(ChannelFull), - [0xC8D7493E] = typeof(ChatParticipant), - [0xDA13538A] = typeof(ChatParticipantCreator), - [0xE2D6E436] = typeof(ChatParticipantAdmin), - [0xFC900C2B] = typeof(ChatParticipantsForbidden), - [0x3F460FED] = typeof(ChatParticipants), + [0x29562865] = typeof(ChatEmpty), + [0x41CBF256] = typeof(Chat), + [0x6592A1A7] = typeof(ChatForbidden), + [0x8261AC61] = typeof(Channel), + [0x17D493D5] = typeof(ChannelForbidden), + [0x4DBDC099] = typeof(ChatFull), + [0xE9B27A17] = typeof(ChannelFull), + [0xC02D4007] = typeof(ChatParticipant), + [0xE46BCEE4] = typeof(ChatParticipantCreator), + [0xA0933F5B] = typeof(ChatParticipantAdmin), + [0x8763D3E1] = typeof(ChatParticipantsForbidden), + [0x3CBC93F8] = typeof(ChatParticipants), [0x37C1011C] = typeof(ChatPhotoEmpty), [0x1C6E1C11] = typeof(ChatPhoto), [0x90A6CA84] = typeof(MessageEmpty), - [0xBCE383D2] = typeof(Message), + [0x85D6CBE2] = typeof(Message), [0x2B085862] = typeof(MessageService), [0x3DED6320] = typeof(MessageMediaEmpty), [0x695150D7] = typeof(MessageMediaPhoto), [0x56E0D474] = typeof(MessageMediaGeo), - [0xCBF24940] = typeof(MessageMediaContact), + [0x70322949] = typeof(MessageMediaContact), [0x9F84F49E] = typeof(MessageMediaUnsupported), [0x9CB070D7] = typeof(MessageMediaDocument), [0xA32DD600] = typeof(MessageMediaWebPage), @@ -167,16 +167,16 @@ namespace TL [0x4BD6E798] = typeof(MessageMediaPoll), [0x3F7EE58B] = typeof(MessageMediaDice), [0xB6AEF7B0] = typeof(MessageActionEmpty), - [0xA6638B9A] = typeof(MessageActionChatCreate), + [0xBD47CBAD] = typeof(MessageActionChatCreate), [0xB5A1CE5A] = typeof(MessageActionChatEditTitle), [0x7FCB13A8] = typeof(MessageActionChatEditPhoto), [0x95E3FBEF] = typeof(MessageActionChatDeletePhoto), - [0x488A7337] = typeof(MessageActionChatAddUser), - [0xB2AE9B0C] = typeof(MessageActionChatDeleteUser), - [0xF89CF5E8] = typeof(MessageActionChatJoinedByLink), + [0x15CEFD00] = typeof(MessageActionChatAddUser), + [0xA43F30CC] = typeof(MessageActionChatDeleteUser), + [0x031224C3] = typeof(MessageActionChatJoinedByLink), [0x95D2AC92] = typeof(MessageActionChannelCreate), - [0x51BDB021] = typeof(MessageActionChatMigrateTo), - [0xB055EAEE] = typeof(MessageActionChannelMigrateFrom), + [0xE1037F92] = typeof(MessageActionChatMigrateTo), + [0xEA3948E9] = typeof(MessageActionChannelMigrateFrom), [0x94BD38ED] = typeof(MessageActionPinMessage), [0x9FBAB604] = typeof(MessageActionHistoryClear), [0x92A72876] = typeof(MessageActionGameScore), @@ -191,9 +191,10 @@ namespace TL [0xF3F25F76] = typeof(MessageActionContactSignUp), [0x98E0D697] = typeof(MessageActionGeoProximityReached), [0x7A0D7F42] = typeof(MessageActionGroupCall), - [0x76B9F11A] = typeof(MessageActionInviteToGroupCall), + [0x502F92F7] = typeof(MessageActionInviteToGroupCall), [0xAA1AFBFD] = typeof(MessageActionSetMessagesTTL), [0xB3A07661] = typeof(MessageActionGroupCallScheduled), + [0xAA786345] = typeof(MessageActionSetChatTheme), [0x2C171F72] = typeof(Dialog), [0x71BD134C] = typeof(DialogFolder), [0x2331B22D] = typeof(PhotoEmpty), @@ -209,7 +210,7 @@ namespace TL [0x5E002502] = typeof(Auth_SentCode), [0xCD050916] = typeof(Auth_Authorization), [0x44747E9A] = typeof(Auth_AuthorizationSignUpRequired), - [0xDF969C2D] = typeof(Auth_ExportedAuthorization), + [0xB434E2B8] = typeof(Auth_ExportedAuthorization), [0xB8BC5B0C] = typeof(InputNotifyPeer), [0x193B4417] = typeof(InputNotifyUsers), [0x4A95E84E] = typeof(InputNotifyChats), @@ -227,10 +228,10 @@ namespace TL [0x9B89F93A] = typeof(InputReportReasonCopyright), [0xDBD4FEED] = typeof(InputReportReasonGeoIrrelevant), [0xF5DDD6E7] = typeof(InputReportReasonFake), - [0x139A9A77] = typeof(UserFull), - [0xF911C994] = typeof(Contact), - [0xD0028438] = typeof(ImportedContact), - [0xD3680C61] = typeof(ContactStatus), + [0xD697FF05] = typeof(UserFull), + [0x145ADE0B] = typeof(Contact), + [0xC13E3C50] = typeof(ImportedContact), + [0x16D9703B] = typeof(ContactStatus), [0xB74BA9D2] = typeof(Contacts_ContactsNotModified), [0xEAE87E42] = typeof(Contacts_Contacts), [0x77D01C3B] = typeof(Contacts_ImportedContacts), @@ -267,64 +268,64 @@ namespace TL [0x1F2B0AFD] = typeof(UpdateNewMessage), [0x4E90BFD6] = typeof(UpdateMessageID), [0xA20DB0E5] = typeof(UpdateDeleteMessages), - [0x5C486927] = typeof(UpdateUserTyping), - [0x86CADB6C] = typeof(UpdateChatUserTyping), + [0xC01E857F] = typeof(UpdateUserTyping), + [0x83487AF0] = typeof(UpdateChatUserTyping), [0x07761198] = typeof(UpdateChatParticipants), - [0x1BFBD823] = typeof(UpdateUserStatus), - [0xA7332B73] = typeof(UpdateUserName), - [0x95313B0C] = typeof(UpdateUserPhoto), + [0xE5BDF8DE] = typeof(UpdateUserStatus), + [0xC3F202E0] = typeof(UpdateUserName), + [0xF227868C] = typeof(UpdateUserPhoto), [0x12BCBD9A] = typeof(UpdateNewEncryptedMessage), [0x1710F156] = typeof(UpdateEncryptedChatTyping), [0xB4A2E88D] = typeof(UpdateEncryption), [0x38FE25B7] = typeof(UpdateEncryptedMessagesRead), - [0xEA4B0E5C] = typeof(UpdateChatParticipantAdd), - [0x6E5F8C22] = typeof(UpdateChatParticipantDelete), + [0x3DDA5451] = typeof(UpdateChatParticipantAdd), + [0xE32F3D77] = typeof(UpdateChatParticipantDelete), [0x8E5E9873] = typeof(UpdateDcOptions), [0xBEC268EF] = typeof(UpdateNotifySettings), [0xEBE46819] = typeof(UpdateServiceNotification), [0xEE3B272A] = typeof(UpdatePrivacy), - [0x12B9417B] = typeof(UpdateUserPhone), + [0x05492A13] = typeof(UpdateUserPhone), [0x9C974FDF] = typeof(UpdateReadHistoryInbox), [0x2F2F21BF] = typeof(UpdateReadHistoryOutbox), [0x7F891213] = typeof(UpdateWebPage), [0x68C13933] = typeof(UpdateReadMessagesContents), - [0xEB0467FB] = typeof(UpdateChannelTooLong), - [0xB6D45656] = typeof(UpdateChannel), + [0x108D941F] = typeof(UpdateChannelTooLong), + [0x635B4C09] = typeof(UpdateChannel), [0x62BA04D9] = typeof(UpdateNewChannelMessage), - [0x330B5424] = typeof(UpdateReadChannelInbox), - [0xC37521C9] = typeof(UpdateDeleteChannelMessages), - [0x98A12B4B] = typeof(UpdateChannelMessageViews), - [0xB6901959] = typeof(UpdateChatParticipantAdmin), + [0x922E6E10] = typeof(UpdateReadChannelInbox), + [0xC32D5B12] = typeof(UpdateDeleteChannelMessages), + [0xF226AC08] = typeof(UpdateChannelMessageViews), + [0xD7CA61A2] = typeof(UpdateChatParticipantAdmin), [0x688A30AA] = typeof(UpdateNewStickerSet), [0x0BB2D201] = typeof(UpdateStickerSetsOrder), [0x43AE3DEC] = typeof(UpdateStickerSets), [0x9375341E] = typeof(UpdateSavedGifs), - [0x3F2038DB] = typeof(UpdateBotInlineQuery), - [0x0E48F964] = typeof(UpdateBotInlineSend), + [0x496F379C] = typeof(UpdateBotInlineQuery), + [0x12F12A07] = typeof(UpdateBotInlineSend), [0x1B3F4DF7] = typeof(UpdateEditChannelMessage), - [0xE73547E1] = typeof(UpdateBotCallbackQuery), + [0xB9CFC48D] = typeof(UpdateBotCallbackQuery), [0xE40370A3] = typeof(UpdateEditMessage), - [0xF9D27A5A] = typeof(UpdateInlineBotCallbackQuery), - [0x25D6C9C7] = typeof(UpdateReadChannelOutbox), + [0x691E9052] = typeof(UpdateInlineBotCallbackQuery), + [0xB75F99A9] = typeof(UpdateReadChannelOutbox), [0xEE2BB969] = typeof(UpdateDraftMessage), [0x571D2742] = typeof(UpdateReadFeaturedStickers), [0x9A422C20] = typeof(UpdateRecentStickers), [0xA229DD06] = typeof(UpdateConfig), [0x3354678F] = typeof(UpdatePtsChanged), - [0x40771900] = typeof(UpdateChannelWebPage), + [0x2F2BA99F] = typeof(UpdateChannelWebPage), [0x6E6FE51C] = typeof(UpdateDialogPinned), [0xFA0F3CA2] = typeof(UpdatePinnedDialogs), [0x8317C0C3] = typeof(UpdateBotWebhookJSON), [0x9B9240A6] = typeof(UpdateBotWebhookJSONQuery), - [0xE0CDC940] = typeof(UpdateBotShippingQuery), - [0x5D2F3AA9] = typeof(UpdateBotPrecheckoutQuery), + [0xB5AEFD7D] = typeof(UpdateBotShippingQuery), + [0x8CAA9A96] = typeof(UpdateBotPrecheckoutQuery), [0xAB0F6B1E] = typeof(UpdatePhoneCall), [0x46560264] = typeof(UpdateLangPackTooLong), [0x56022F4D] = typeof(UpdateLangPack), [0xE511996D] = typeof(UpdateFavedStickers), - [0x89893B45] = typeof(UpdateChannelReadMessagesContents), + [0x44BDD535] = typeof(UpdateChannelReadMessagesContents), [0x7084A7BE] = typeof(UpdateContactsReset), - [0x70DB6837] = typeof(UpdateChannelAvailableMessages), + [0xB23FC698] = typeof(UpdateChannelAvailableMessages), [0xE16459C3] = typeof(UpdateDialogUnreadMark), [0xACA1657B] = typeof(UpdateMessagePoll), [0x54C01850] = typeof(UpdateChatDefaultBannedRights), @@ -336,35 +337,35 @@ namespace TL [0x8216FBA3] = typeof(UpdateTheme), [0x871FB939] = typeof(UpdateGeoLiveViewed), [0x564FE691] = typeof(UpdateLoginToken), - [0x37F69F0B] = typeof(UpdateMessagePollVote), + [0x106395C9] = typeof(UpdateMessagePollVote), [0x26FFDE7D] = typeof(UpdateDialogFilter), [0xA5D72105] = typeof(UpdateDialogFilterOrder), [0x3504914F] = typeof(UpdateDialogFilters), [0x2661BF09] = typeof(UpdatePhoneCallSignalingData), - [0x6E8A84DF] = typeof(UpdateChannelMessageForwards), - [0x1CC7DE54] = typeof(UpdateReadChannelDiscussionInbox), - [0x4638A26C] = typeof(UpdateReadChannelDiscussionOutbox), + [0xD29A27F4] = typeof(UpdateChannelMessageForwards), + [0xD6B19546] = typeof(UpdateReadChannelDiscussionInbox), + [0x695C9E7C] = typeof(UpdateReadChannelDiscussionOutbox), [0x246A4B22] = typeof(UpdatePeerBlocked), - [0x6B171718] = typeof(UpdateChannelUserTyping), + [0x8C88C923] = typeof(UpdateChannelUserTyping), [0xED85EAB5] = typeof(UpdatePinnedMessages), - [0x8588878B] = typeof(UpdatePinnedChannelMessages), - [0x1330A196] = typeof(UpdateChat), + [0x5BB98608] = typeof(UpdatePinnedChannelMessages), + [0xF89A6A4E] = typeof(UpdateChat), [0xF2EBDB4E] = typeof(UpdateGroupCallParticipants), - [0xA45EB99B] = typeof(UpdateGroupCall), + [0x14B24500] = typeof(UpdateGroupCall), [0xBB9BB9A5] = typeof(UpdatePeerHistoryTTL), - [0xF3B3781F] = typeof(UpdateChatParticipant), - [0x7FECB1EC] = typeof(UpdateChannelParticipant), - [0x07F9488A] = typeof(UpdateBotStopped), + [0xD087663A] = typeof(UpdateChatParticipant), + [0x985D3ABB] = typeof(UpdateChannelParticipant), + [0xC4870A49] = typeof(UpdateBotStopped), [0x0B783982] = typeof(UpdateGroupCallConnection), - [0xCF7E0873] = typeof(UpdateBotCommands), + [0x4D712F2E] = typeof(UpdateBotCommands), [0xA56C2A3E] = typeof(Updates_State), [0x5D75A138] = typeof(Updates_DifferenceEmpty), [0x00F49CA0] = typeof(Updates_Difference), [0xA8FB1981] = typeof(Updates_DifferenceSlice), [0x4AFE8F6D] = typeof(Updates_DifferenceTooLong), [0xE317AF7E] = typeof(UpdatesTooLong), - [0xFAEFF833] = typeof(UpdateShortMessage), - [0x1157B858] = typeof(UpdateShortChatMessage), + [0x313BC7F8] = typeof(UpdateShortMessage), + [0x4D6DEEA5] = typeof(UpdateShortChatMessage), [0x78D4DEC1] = typeof(UpdateShort), [0x725B04C3] = typeof(UpdatesCombined), [0x74AE4240] = typeof(Updates), @@ -381,9 +382,9 @@ namespace TL [0xC45A6536] = typeof(Help_NoAppUpdate), [0x18CB9F78] = typeof(Help_InviteText), [0xAB7EC0A0] = typeof(EncryptedChatEmpty), - [0x3BF703DC] = typeof(EncryptedChatWaiting), - [0x62718A82] = typeof(EncryptedChatRequested), - [0xFA56CE36] = typeof(EncryptedChat), + [0x66B25953] = typeof(EncryptedChatWaiting), + [0x48F1D94C] = typeof(EncryptedChatRequested), + [0x61F0D4C7] = typeof(EncryptedChat), [0x1E1C7C45] = typeof(EncryptedChatDiscarded), [0xF141B5E1] = typeof(InputEncryptedChat), [0xC21F497E] = typeof(EncryptedFileEmpty), @@ -422,6 +423,9 @@ namespace TL [0x243E1C66] = typeof(SendMessageUploadRoundAction), [0xD92C2285] = typeof(SpeakingInGroupCallAction), [0xDBDA9246] = typeof(SendMessageHistoryImportAction), + [0xB05AC6B1] = typeof(SendMessageChooseStickerAction), + [0x6A3233B6] = typeof(SendMessageEmojiInteraction), + [0xB665902E] = typeof(SendMessageEmojiInteractionSeen), [0xB3134D9D] = typeof(Contacts_Found), [0x4F96CB18] = typeof(InputPrivacyKeyStatusTimestamp), [0xBDFB0426] = typeof(InputPrivacyKeyChatInvite), @@ -445,16 +449,16 @@ namespace TL [0x0BA52007] = typeof(InputPrivacyValueDisallowContacts), [0xD66B66C9] = typeof(InputPrivacyValueDisallowAll), [0x90110467] = typeof(InputPrivacyValueDisallowUsers), - [0x4C81C1BA] = typeof(InputPrivacyValueAllowChatParticipants), - [0xD82363AF] = typeof(InputPrivacyValueDisallowChatParticipants), + [0x840649CF] = typeof(InputPrivacyValueAllowChatParticipants), + [0xE94F0F86] = typeof(InputPrivacyValueDisallowChatParticipants), [0xFFFE1BAC] = typeof(PrivacyValueAllowContacts), [0x65427B82] = typeof(PrivacyValueAllowAll), - [0x4D5BBE0C] = typeof(PrivacyValueAllowUsers), + [0xB8905FB2] = typeof(PrivacyValueAllowUsers), [0xF888FA1A] = typeof(PrivacyValueDisallowContacts), [0x8B73E763] = typeof(PrivacyValueDisallowAll), - [0x0C7F49B7] = typeof(PrivacyValueDisallowUsers), - [0x18BE796B] = typeof(PrivacyValueAllowChatParticipants), - [0xACAE0690] = typeof(PrivacyValueDisallowChatParticipants), + [0xE4621141] = typeof(PrivacyValueDisallowUsers), + [0x6B134E8E] = typeof(PrivacyValueAllowChatParticipants), + [0x41C87565] = typeof(PrivacyValueDisallowChatParticipants), [0x50A04E45] = typeof(Account_PrivacyRules), [0xB8D0AFDF] = typeof(AccountDaysTTL), [0x6C37C15C] = typeof(DocumentAttributeImageSize), @@ -465,10 +469,10 @@ namespace TL [0x15590068] = typeof(DocumentAttributeFilename), [0x9801D2F7] = typeof(DocumentAttributeHasStickers), [0xF1749A22] = typeof(Messages_StickersNotModified), - [0xE4599BBD] = typeof(Messages_Stickers), + [0x30A6EC7E] = typeof(Messages_Stickers), [0x12B299D4] = typeof(StickerPack), [0xE86602C3] = typeof(Messages_AllStickersNotModified), - [0xEDFD405F] = typeof(Messages_AllStickers), + [0xCDBBCEBB] = typeof(Messages_AllStickers), [0x84D19185] = typeof(Messages_AffectedMessages), [0xEB1477E8] = typeof(WebPageEmpty), [0xC586DA1C] = typeof(WebPagePending), @@ -481,7 +485,7 @@ namespace TL [0xC23727C9] = typeof(Account_PasswordInputSettings), [0x137948A5] = typeof(Auth_PasswordRecovery), [0xA384B779] = typeof(ReceivedNotifyMessage), - [0x6E24FC9D] = typeof(ChatInviteExported), + [0xB18105E8] = typeof(ChatInviteExported), [0x5A686D7C] = typeof(ChatInviteAlready), [0xDFC2F58E] = typeof(ChatInvite), [0x61695CB0] = typeof(ChatInvitePeek), @@ -493,7 +497,7 @@ namespace TL [0xD7DF217A] = typeof(StickerSet), [0xB60A24A6] = typeof(Messages_StickerSet), [0xC27AC8C7] = typeof(BotCommand), - [0x98E81D3A] = typeof(BotInfo), + [0x1B74B335] = typeof(BotInfo), [0xA2FA4880] = typeof(KeyboardButton), [0x258AFF05] = typeof(KeyboardButtonUrl), [0x35BBDB6B] = typeof(KeyboardButtonCallback), @@ -521,7 +525,7 @@ namespace TL [0x28A20571] = typeof(MessageEntityCode), [0x73924BE0] = typeof(MessageEntityPre), [0x76A6D327] = typeof(MessageEntityTextUrl), - [0x352DCA58] = typeof(MessageEntityMentionName), + [0xDC7B1140] = typeof(MessageEntityMentionName), [0x208E68C9] = typeof(InputMessageEntityMentionName), [0x9B69E34B] = typeof(MessageEntityPhone), [0x4C4E743F] = typeof(MessageEntityCashtag), @@ -530,8 +534,8 @@ namespace TL [0x020DF5D0] = typeof(MessageEntityBlockquote), [0x761E6AF4] = typeof(MessageEntityBankCard), [0xEE8C1E86] = typeof(InputChannelEmpty), - [0xAFEB712E] = typeof(InputChannel), - [0x2A286531] = typeof(InputChannelFromMessage), + [0xF35AEC28] = typeof(InputChannel), + [0x5B934F9D] = typeof(InputChannelFromMessage), [0x7F077AD9] = typeof(Contacts_ResolvedPeer), [0x0AE30253] = typeof(MessageRange), [0x3E11AFFB] = typeof(Updates_ChannelDifferenceEmpty), @@ -539,11 +543,11 @@ namespace TL [0x2064674E] = typeof(Updates_ChannelDifference), [0x94D42EE7] = typeof(ChannelMessagesFilterEmpty), [0xCD77D957] = typeof(ChannelMessagesFilter), - [0x15EBAC1D] = typeof(ChannelParticipant), - [0xA3289A6D] = typeof(ChannelParticipantSelf), - [0x447DCA4B] = typeof(ChannelParticipantCreator), - [0xCCBEBBAF] = typeof(ChannelParticipantAdmin), - [0x50A1DFD6] = typeof(ChannelParticipantBanned), + [0xC00C07C0] = typeof(ChannelParticipant), + [0x28A8BC67] = typeof(ChannelParticipantSelf), + [0x2FE601D3] = typeof(ChannelParticipantCreator), + [0x34C3BB53] = typeof(ChannelParticipantAdmin), + [0x6DF8014E] = typeof(ChannelParticipantBanned), [0x1B03F006] = typeof(ChannelParticipantLeft), [0xDE3F3C79] = typeof(ChannelParticipantsRecent), [0xB4608969] = typeof(ChannelParticipantsAdmins), @@ -558,7 +562,7 @@ namespace TL [0xDFB80317] = typeof(Channels_ChannelParticipant), [0x780A0310] = typeof(Help_TermsOfService), [0xE8025CA2] = typeof(Messages_SavedGifsNotModified), - [0x2E0709A5] = typeof(Messages_SavedGifs), + [0x84A02A0D] = typeof(Messages_SavedGifs), [0x3380C786] = typeof(InputBotInlineMessageMediaAuto), [0x3DCD7A87] = typeof(InputBotInlineMessageText), [0x96929A85] = typeof(InputBotInlineMessageMediaGeo), @@ -591,6 +595,7 @@ namespace TL [0x36585EA4] = typeof(Messages_BotCallbackAnswer), [0x26B5DDE6] = typeof(Messages_MessageEditData), [0x890C3D89] = typeof(InputBotInlineMessageID), + [0xB6D915D7] = typeof(InputBotInlineMessageID64), [0x3C20629F] = typeof(InlineBotSwitchPM), [0x3371C354] = typeof(Messages_PeerDialogs), [0xEDCDC05B] = typeof(TopPeer), @@ -609,9 +614,9 @@ namespace TL [0x1B0C841A] = typeof(DraftMessageEmpty), [0xFD8E711F] = typeof(DraftMessage), [0xC6DC0C66] = typeof(Messages_FeaturedStickersNotModified), - [0xB6ABC341] = typeof(Messages_FeaturedStickers), + [0x84C02310] = typeof(Messages_FeaturedStickers), [0x0B17F890] = typeof(Messages_RecentStickersNotModified), - [0x22F3AFB3] = typeof(Messages_RecentStickers), + [0x88D37C56] = typeof(Messages_RecentStickers), [0x4FCBA9C8] = typeof(Messages_ArchivedStickers), [0x38641628] = typeof(Messages_StickerSetInstallResultSuccess), [0x35E410A8] = typeof(Messages_StickerSetInstallResultArchive), @@ -623,7 +628,7 @@ namespace TL [0xBDF9653B] = typeof(Game), [0x032C3E77] = typeof(InputGameID), [0xC331E80A] = typeof(InputGameShortName), - [0x58FFFCD0] = typeof(HighScore), + [0x73A379EB] = typeof(HighScore), [0x9A3BFD99] = typeof(Messages_HighScores), [0xDC3D824F] = typeof(TextEmpty), [0x744694E0] = typeof(TextPlain), @@ -687,11 +692,11 @@ namespace TL [0xC239D686] = typeof(InputWebFileLocation), [0x9F2221C9] = typeof(InputWebFileGeoPointLocation), [0x21E753BC] = typeof(Upload_WebFile), - [0x8D0B2415] = typeof(Payments_PaymentForm), + [0x1694761B] = typeof(Payments_PaymentForm), [0xD1451883] = typeof(Payments_ValidatedRequestedInfo), [0x4E5F810D] = typeof(Payments_PaymentResult), [0xD8411139] = typeof(Payments_PaymentVerificationNeeded), - [0x10B555D0] = typeof(Payments_PaymentReceipt), + [0x70C4FE03] = typeof(Payments_PaymentReceipt), [0xFB8FE43C] = typeof(Payments_SavedInfo), [0xC10EB2CF] = typeof(InputPaymentCredentialsSaved), [0x3417D728] = typeof(InputPaymentCredentials), @@ -702,10 +707,10 @@ namespace TL [0xFFA0A496] = typeof(InputStickerSetItem), [0x1E36FDED] = typeof(InputPhoneCall), [0x5366C915] = typeof(PhoneCallEmpty), - [0x1B8F4AD1] = typeof(PhoneCallWaiting), - [0x87EABB53] = typeof(PhoneCallRequested), - [0x997C454A] = typeof(PhoneCallAccepted), - [0x8742AE7F] = typeof(PhoneCall), + [0xC5226F17] = typeof(PhoneCallWaiting), + [0x14B0ED0C] = typeof(PhoneCallRequested), + [0x3660C311] = typeof(PhoneCallAccepted), + [0x967F7C67] = typeof(PhoneCall), [0x50CA4DE1] = typeof(PhoneCallDiscarded), [0x9D4C17C0] = typeof(PhoneConnection), [0x635FE375] = typeof(PhoneConnectionWebrtc), @@ -738,7 +743,7 @@ namespace TL [0x5F5C95F1] = typeof(ChannelAdminLogEventActionTogglePreHistoryHidden), [0x2DF5FC0A] = typeof(ChannelAdminLogEventActionDefaultBannedRights), [0x8F079643] = typeof(ChannelAdminLogEventActionStopPoll), - [0xA26F881B] = typeof(ChannelAdminLogEventActionChangeLinkedChat), + [0x050C7AC8] = typeof(ChannelAdminLogEventActionChangeLinkedChat), [0x0E6B76AE] = typeof(ChannelAdminLogEventActionChangeLocation), [0x53909779] = typeof(ChannelAdminLogEventActionToggleSlowMode), [0x23209745] = typeof(ChannelAdminLogEventActionStartGroupCall), @@ -752,20 +757,21 @@ namespace TL [0xE90EBB59] = typeof(ChannelAdminLogEventActionExportedInviteEdit), [0x3E7F6847] = typeof(ChannelAdminLogEventActionParticipantVolume), [0x6E941A38] = typeof(ChannelAdminLogEventActionChangeHistoryTTL), - [0x3B5A3E40] = typeof(ChannelAdminLogEvent), + [0xFE69018D] = typeof(ChannelAdminLogEventActionChangeTheme), + [0x1FAD68CD] = typeof(ChannelAdminLogEvent), [0xED8AF74D] = typeof(Channels_AdminLogResults), [0xEA107AE4] = typeof(ChannelAdminLogEventsFilter), [0x5CE14175] = typeof(PopularContact), [0x9E8FA6D3] = typeof(Messages_FavedStickersNotModified), - [0xF37F2F16] = typeof(Messages_FavedStickers), + [0x2CB51097] = typeof(Messages_FavedStickers), [0x46E1D13D] = typeof(RecentMeUrlUnknown), - [0x8DBC3336] = typeof(RecentMeUrlUser), - [0xA01B22F9] = typeof(RecentMeUrlChat), + [0xB92C09E2] = typeof(RecentMeUrlUser), + [0xB2DA71D2] = typeof(RecentMeUrlChat), [0xEB49081D] = typeof(RecentMeUrlChatInvite), [0xBC0A57DC] = typeof(RecentMeUrlStickerSet), [0x0E0310D7] = typeof(Help_RecentMeUrls), [0x1CC6E91F] = typeof(InputSingleMedia), - [0xCAC943F2] = typeof(WebAuthorization), + [0xA6F8F452] = typeof(WebAuthorization), [0xED56C9FC] = typeof(Account_WebAuthorizations), [0xA676A322] = typeof(InputMessageID), [0xBAD88395] = typeof(InputMessageReplyTo), @@ -776,7 +782,7 @@ namespace TL [0xE56DBF05] = typeof(DialogPeer), [0x514519E2] = typeof(DialogPeerFolder), [0x0D54B65D] = typeof(Messages_FoundStickerSetsNotModified), - [0x5108D648] = typeof(Messages_FoundStickerSets), + [0x8AF09DD2] = typeof(Messages_FoundStickerSets), [0x6242C773] = typeof(FileHash), [0x75588B3F] = typeof(InputClientProxy), [0xE3309F7F] = typeof(Help_TermsOfServiceUpdateEmpty), @@ -855,7 +861,7 @@ namespace TL [0x6CA9C2E9] = typeof(PollAnswer), [0x86E18161] = typeof(Poll), [0x3B6DDAD2] = typeof(PollAnswerVoters), - [0xBADCC1A3] = typeof(PollResults), + [0xDCB82EA3] = typeof(PollResults), [0xF041E250] = typeof(ChatOnlines), [0x47A971E0] = typeof(StatsURL), [0x5FB224D5] = typeof(ChatAdminRights), @@ -864,7 +870,7 @@ namespace TL [0x72091C80] = typeof(InputWallPaperSlug), [0x967A462E] = typeof(InputWallPaperNoFile), [0x1C199183] = typeof(Account_WallPapersNotModified), - [0x702B65A9] = typeof(Account_WallPapers), + [0xCDC3858C] = typeof(Account_WallPapers), [0xDEBEBE83] = typeof(CodeSettings), [0x1DC1BCA4] = typeof(WallPaperSettings), [0xE04232F3] = typeof(AutoDownloadSettings), @@ -888,9 +894,9 @@ namespace TL [0xD072ACB4] = typeof(RestrictionReason), [0x3C5693E9] = typeof(InputTheme), [0xF5890DF1] = typeof(InputThemeSlug), - [0x028F1114] = typeof(Theme), + [0xE802B8DC] = typeof(Theme), [0xF41EB622] = typeof(Account_ThemesNotModified), - [0x7F676421] = typeof(Account_Themes), + [0x9A3D8C6D] = typeof(Account_Themes), [0x629F1980] = typeof(Auth_LoginToken), [0x068E9916] = typeof(Auth_LoginTokenMigrateTo), [0x390D5C5E] = typeof(Auth_LoginTokenSuccess), @@ -901,12 +907,12 @@ namespace TL [0xB7B31EA8] = typeof(BaseThemeNight), [0x6D5F77EE] = typeof(BaseThemeTinted), [0x5B11125A] = typeof(BaseThemeArctic), - [0xBD507CD1] = typeof(InputThemeSettings), - [0x9C14984A] = typeof(ThemeSettings), + [0x8FDE504F] = typeof(InputThemeSettings), + [0xFA58B6D4] = typeof(ThemeSettings), [0x54B56617] = typeof(WebPageAttributeTheme), - [0xA28E5559] = typeof(MessageUserVote), - [0x36377430] = typeof(MessageUserVoteInputOption), - [0x0E8FE0DE] = typeof(MessageUserVoteMultiple), + [0x34D247B4] = typeof(MessageUserVote), + [0x3CA5B0EC] = typeof(MessageUserVoteInputOption), + [0x8A65E557] = typeof(MessageUserVoteMultiple), [0x0823F649] = typeof(Messages_VotesList), [0xF568028A] = typeof(BankCardOpenUrl), [0x3E24E573] = typeof(Payments_BankCardData), @@ -923,9 +929,9 @@ namespace TL [0x98F6AC75] = typeof(Help_PromoDataEmpty), [0x8C39793F] = typeof(Help_PromoData), [0xDE33B094] = typeof(VideoSize), - [0x18F3D0F7] = typeof(StatsGroupTopPoster), - [0x6014F412] = typeof(StatsGroupTopAdmin), - [0x31962A4C] = typeof(StatsGroupTopInviter), + [0x9D04AF9B] = typeof(StatsGroupTopPoster), + [0xD7584C87] = typeof(StatsGroupTopAdmin), + [0x535F779D] = typeof(StatsGroupTopInviter), [0xEF7FF916] = typeof(Stats_MegagroupStats), [0xBEA2F424] = typeof(GlobalPrivacySettings), [0x4203C5EF] = typeof(Help_CountryCode), @@ -934,9 +940,9 @@ namespace TL [0x87D0759E] = typeof(Help_CountriesList), [0x455B853D] = typeof(MessageViews), [0xB6C4F543] = typeof(Messages_MessageViews), - [0xF5DD8F9D] = typeof(Messages_DiscussionMessage), + [0xA6341782] = typeof(Messages_DiscussionMessage), [0xA6D57763] = typeof(MessageReplyHeader), - [0x4128FAAC] = typeof(MessageReplies), + [0x83D60FC2] = typeof(MessageReplies), [0xE8FD8014] = typeof(PeerBlocked), [0x8999F295] = typeof(Stats_MessageStats), [0x7780BCB4] = typeof(GroupCallDiscarded), @@ -953,12 +959,12 @@ namespace TL [0x1662AF0B] = typeof(Messages_HistoryImport), [0x5E0FB7B9] = typeof(Messages_HistoryImportParsed), [0xEF8D3E6C] = typeof(Messages_AffectedFoundMessages), - [0x1E3E6680] = typeof(ChatInviteImporter), + [0x0B5CD5F4] = typeof(ChatInviteImporter), [0xBDC62DCC] = typeof(Messages_ExportedChatInvites), [0x1871BE50] = typeof(Messages_ExportedChatInvite), [0x222600EF] = typeof(Messages_ExportedChatInviteReplaced), [0x81B6B00A] = typeof(Messages_ChatInviteImporters), - [0xDFD2330F] = typeof(ChatAdminWithInvites), + [0xF2ECEF23] = typeof(ChatAdminWithInvites), [0xB69B72D7] = typeof(Messages_ChatAdminsWithInvites), [0xA24DE717] = typeof(Messages_CheckedHistoryImportPeer), [0xAFE5623F] = typeof(Phone_JoinAsPeers), @@ -976,6 +982,11 @@ namespace TL [0xE3779861] = typeof(Account_ResetPasswordFailedWait), [0xE9EFFC7D] = typeof(Account_ResetPasswordRequestedWait), [0xE926D63E] = typeof(Account_ResetPasswordOk), + [0xED0B5C33] = typeof(ChatTheme), + [0xE011E1C4] = typeof(Account_ChatThemesNotModified), + [0xFE4CBEBD] = typeof(Account_ChatThemes), + [0x2A3C381F] = typeof(SponsoredMessage), + [0x65A4C7D5] = typeof(Messages_SponsoredMessages), // from TL.Secret: [0x1F814F1F] = typeof(Layer8.DecryptedMessage), [0xAA48327D] = typeof(Layer8.DecryptedMessageService),