diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java index 382b5a36b..50908d2b3 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java @@ -3445,7 +3445,11 @@ public class MessagesController extends BaseController implements NotificationCe } int reqId = getConnectionsManager().sendRequest(req, (response, error) -> { if (error == null) { - TLRPC.UserFull userFull = (TLRPC.UserFull) response; + TLRPC.TL_users_userFull res = (TLRPC.TL_users_userFull) response; + TLRPC.UserFull userFull = res.full_user; + putUsers(res.users, false); + putChats(res.chats, false); + res.full_user.user = getUser(res.full_user.id); getMessagesStorage().updateUserInfo(userFull, false); AndroidUtilities.runOnUIThread(() -> { @@ -3736,7 +3740,12 @@ public class MessagesController extends BaseController implements NotificationCe getConnectionsManager().sendRequest(req, (response, error) -> AndroidUtilities.runOnUIThread(() -> { loadingPeerSettings.remove(dialogId); if (response != null) { - savePeerSettings(dialogId, (TLRPC.TL_peerSettings) response, false); + TLRPC.TL_messages_peerSettings res = (TLRPC.TL_messages_peerSettings) response; + TLRPC.TL_peerSettings settings = res.settings; + putUsers(res.users, false); + putChats(res.chats, false); + + savePeerSettings(dialogId, settings, false); } })); } @@ -4688,9 +4697,9 @@ public class MessagesController extends BaseController implements NotificationCe if (offset == 0) { getMessagesStorage().deleteUserChatHistory(-chat.id, user.id); } - TLRPC.TL_channels_deleteUserHistory req = new TLRPC.TL_channels_deleteUserHistory(); + TLRPC.TL_channels_deleteParticipantHistory req = new TLRPC.TL_channels_deleteParticipantHistory(); req.channel = getInputChannel(chat); - req.user_id = getInputUser(user); + req.participant = getInputPeer(user); getConnectionsManager().sendRequest(req, (response, error) -> { if (error == null) { TLRPC.TL_messages_affectedHistory res = (TLRPC.TL_messages_affectedHistory) response; diff --git a/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java b/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java index 3523e2b66..e6e12f4a7 100644 --- a/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java +++ b/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java @@ -41,7 +41,7 @@ public class TLRPC { //public static final int USER_FLAG_BOT = 0x00004000; //public static final int USER_FLAG_BOT_READING_HISTORY = 0x00008000; //public static final int USER_FLAG_BOT_CANT_JOIN_GROUP = 0x00010000; - //public static final int USER_FLAG_VERIFIED = 0x00020000; + //public static final int USER_FLAG_VERIFIED = 0x00020000; //public static final int CHAT_FLAG_CREATOR = 0x00000001; //public static final int CHAT_FLAG_USER_KICKED = 0x00000002; @@ -63,8 +63,8 @@ public class TLRPC { public static final int MESSAGE_FLAG_HAS_FROM_ID = 0x00000100; public static final int MESSAGE_FLAG_HAS_MEDIA = 0x00000200; public static final int MESSAGE_FLAG_HAS_VIEWS = 0x00000400; - public static final int MESSAGE_FLAG_HAS_BOT_ID = 0x00000800; - public static final int MESSAGE_FLAG_EDITED = 0x00008000; + public static final int MESSAGE_FLAG_HAS_BOT_ID = 0x00000800; + public static final int MESSAGE_FLAG_EDITED = 0x00008000; public static final int LAYER = 135; @@ -601,71 +601,71 @@ public class TLRPC { } } - public static class TL_help_termsOfService extends TLObject { - public static int constructor = 0x780a0310; + public static class TL_help_termsOfService extends TLObject { + public static int constructor = 0x780a0310; - public int flags; - public boolean popup; - public TL_dataJSON id; - public String text; - public ArrayList entities = new ArrayList<>(); - public int min_age_confirm; + public int flags; + public boolean popup; + public TL_dataJSON id; + public String text; + public ArrayList entities = new ArrayList<>(); + public int min_age_confirm; - public static TL_help_termsOfService TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_help_termsOfService.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_help_termsOfService", constructor)); - } else { - return null; - } - } - TL_help_termsOfService result = new TL_help_termsOfService(); - result.readParams(stream, exception); - return result; - } + public static TL_help_termsOfService TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_help_termsOfService.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_help_termsOfService", constructor)); + } else { + return null; + } + } + TL_help_termsOfService result = new TL_help_termsOfService(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - popup = (flags & 1) != 0; - id = TL_dataJSON.TLdeserialize(stream, stream.readInt32(exception), exception); - text = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - if ((flags & 2) != 0) { - min_age_confirm = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + popup = (flags & 1) != 0; + id = TL_dataJSON.TLdeserialize(stream, stream.readInt32(exception), exception); + text = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + if ((flags & 2) != 0) { + min_age_confirm = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = popup ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - id.serializeToStream(stream); - stream.writeString(text); - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - if ((flags & 2) != 0) { - stream.writeInt32(min_age_confirm); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = popup ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + id.serializeToStream(stream); + stream.writeString(text); + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + if ((flags & 2) != 0) { + stream.writeInt32(min_age_confirm); + } + } + } public static class TL_payments_paymentReceipt extends TLObject { public static int constructor = 0x70c4fe03; @@ -989,90 +989,90 @@ public class TLRPC { } } - public static abstract class messages_SentEncryptedMessage extends TLObject { - public int date; - public EncryptedFile file; + public static abstract class messages_SentEncryptedMessage extends TLObject { + public int date; + public EncryptedFile file; - public static messages_SentEncryptedMessage TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_SentEncryptedMessage result = null; - switch (constructor) { - case 0x560f8935: - result = new TL_messages_sentEncryptedMessage(); - break; - case 0x9493ff32: - result = new TL_messages_sentEncryptedFile(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_SentEncryptedMessage", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static messages_SentEncryptedMessage TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_SentEncryptedMessage result = null; + switch (constructor) { + case 0x560f8935: + result = new TL_messages_sentEncryptedMessage(); + break; + case 0x9493ff32: + result = new TL_messages_sentEncryptedFile(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_SentEncryptedMessage", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messages_sentEncryptedMessage extends messages_SentEncryptedMessage { - public static int constructor = 0x560f8935; + public static class TL_messages_sentEncryptedMessage extends messages_SentEncryptedMessage { + public static int constructor = 0x560f8935; - public void readParams(AbstractSerializedData stream, boolean exception) { - date = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(date); + } + } - public static class TL_messages_sentEncryptedFile extends messages_SentEncryptedMessage { - public static int constructor = 0x9493ff32; + public static class TL_messages_sentEncryptedFile extends messages_SentEncryptedMessage { + public static int constructor = 0x9493ff32; - public void readParams(AbstractSerializedData stream, boolean exception) { - date = stream.readInt32(exception); + public void readParams(AbstractSerializedData stream, boolean exception) { + date = stream.readInt32(exception); file = EncryptedFile.TLdeserialize(stream, stream.readInt32(exception), exception); - } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(date); - file.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(date); + file.serializeToStream(stream); + } + } - public static class TL_error extends TLObject { - public static int constructor = 0xc4b9f9bb; + public static class TL_error extends TLObject { + public static int constructor = 0xc4b9f9bb; - public int code; - public String text; + public int code; + public String text; - public static TL_error TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_error.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_error", constructor)); - } else { - return null; - } - } - TL_error result = new TL_error(); - result.readParams(stream, exception); - return result; - } + public static TL_error TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_error.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_error", constructor)); + } else { + return null; + } + } + TL_error result = new TL_error(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { code = stream.readInt32(exception); - text = stream.readString(exception); - } + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(code); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(code); + stream.writeString(text); + } + } public static abstract class UrlAuthResult extends TLObject { @@ -1147,496 +1147,496 @@ public class TLRPC { } } - public static class TL_messages_chatFull extends TLObject { - public static int constructor = 0xe5d7d19c; - - public ChatFull full_chat; - public ArrayList chats = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); - - public static TL_messages_chatFull TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_chatFull.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_chatFull", constructor)); - } else { - return null; - } - } - TL_messages_chatFull result = new TL_messages_chatFull(); - result.readParams(stream, exception); - return result; - } - - public void readParams(AbstractSerializedData stream, boolean exception) { - full_chat = ChatFull.TLdeserialize(stream, stream.readInt32(exception), exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - full_chat.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } - - public static class TL_account_passwordSettings extends TLObject { - public static int constructor = 0x9a5c33e5; - - public int flags; - public String email; - public TL_secureSecretSettings secure_settings; - - public static TL_account_passwordSettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_account_passwordSettings.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_account_passwordSettings", constructor)); - } else { - return null; - } - } - TL_account_passwordSettings result = new TL_account_passwordSettings(); - result.readParams(stream, exception); - return result; - } - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - if ((flags & 1) != 0) { - email = stream.readString(exception); - } - if ((flags & 2) != 0) { - secure_settings = TL_secureSecretSettings.TLdeserialize(stream, stream.readInt32(exception), exception); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - stream.writeString(email); - } - if ((flags & 2) != 0) { - secure_settings.serializeToStream(stream); - } - } - } - - public static abstract class DocumentAttribute extends TLObject { - public String alt; - public InputStickerSet stickerset; - public int duration; - public int flags; - public TL_maskCoords mask_coords; - public boolean round_message; - public boolean supports_streaming; - public String file_name; - public int w; - public int h; - public boolean mask; - public String title; - public String performer; - public boolean voice; - public byte[] waveform; - - public static DocumentAttribute TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - DocumentAttribute result = null; - switch (constructor) { - case 0x3a556302: - result = new TL_documentAttributeSticker_layer55(); - break; - case 0x51448e5: - result = new TL_documentAttributeAudio_old(); - break; - case 0x6319d612: - result = new TL_documentAttributeSticker(); - break; - case 0x11b58939: - result = new TL_documentAttributeAnimated(); - break; - case 0x15590068: - result = new TL_documentAttributeFilename(); - break; - case 0xef02ce6: - result = new TL_documentAttributeVideo(); - break; - case 0x5910cccb: - result = new TL_documentAttributeVideo_layer65(); - break; - case 0xded218e0: - result = new TL_documentAttributeAudio_layer45(); - break; - case 0xfb0a5727: - result = new TL_documentAttributeSticker_old(); - break; - case 0x9801d2f7: - result = new TL_documentAttributeHasStickers(); - break; - case 0x994c9882: - result = new TL_documentAttributeSticker_old2(); - break; - case 0x6c37c15c: - result = new TL_documentAttributeImageSize(); - break; - case 0x9852f9c6: - result = new TL_documentAttributeAudio(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in DocumentAttribute", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } - - public static class TL_documentAttributeSticker_layer55 extends TL_documentAttributeSticker { - public static int constructor = 0x3a556302; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - alt = stream.readString(exception); - stickerset = InputStickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(alt); - stickerset.serializeToStream(stream); - } - } - - public static class TL_documentAttributeAudio_old extends TL_documentAttributeAudio { - public static int constructor = 0x51448e5; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - duration = stream.readInt32(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(duration); - } - } - - public static class TL_documentAttributeSticker extends DocumentAttribute { - public static int constructor = 0x6319d612; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - mask = (flags & 2) != 0; - alt = stream.readString(exception); - stickerset = InputStickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 1) != 0) { - mask_coords = TL_maskCoords.TLdeserialize(stream, stream.readInt32(exception), exception); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = mask ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - stream.writeString(alt); - stickerset.serializeToStream(stream); - if ((flags & 1) != 0) { - mask_coords.serializeToStream(stream); - } - } - } - - public static class TL_documentAttributeAnimated extends DocumentAttribute { - public static int constructor = 0x11b58939; - - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } - - public static class TL_documentAttributeFilename extends DocumentAttribute { - public static int constructor = 0x15590068; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - file_name = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(file_name); - } - } - - public static class TL_documentAttributeVideo extends DocumentAttribute { - public static int constructor = 0xef02ce6; - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - round_message = (flags & 1) != 0; - supports_streaming = (flags & 2) != 0; - duration = stream.readInt32(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = round_message ? (flags | 1) : (flags &~ 1); - flags = supports_streaming ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - stream.writeInt32(duration); - stream.writeInt32(w); - stream.writeInt32(h); - } - } - - public static class TL_documentAttributeVideo_layer65 extends TL_documentAttributeVideo { - public static int constructor = 0x5910cccb; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - duration = stream.readInt32(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(duration); - stream.writeInt32(w); - stream.writeInt32(h); - } - } - - public static class TL_documentAttributeAudio_layer45 extends TL_documentAttributeAudio { - public static int constructor = 0xded218e0; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - duration = stream.readInt32(exception); - title = stream.readString(exception); - performer = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(duration); - stream.writeString(title); - stream.writeString(performer); - } - } - - public static class TL_documentAttributeSticker_old extends TL_documentAttributeSticker { - public static int constructor = 0xfb0a5727; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } - - public static class TL_documentAttributeHasStickers extends DocumentAttribute { - public static int constructor = 0x9801d2f7; - - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } - - public static class TL_documentAttributeSticker_old2 extends TL_documentAttributeSticker { - public static int constructor = 0x994c9882; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - alt = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(alt); - } - } - - public static class TL_documentAttributeImageSize extends DocumentAttribute { - public static int constructor = 0x6c37c15c; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - w = stream.readInt32(exception); - h = stream.readInt32(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(w); - stream.writeInt32(h); - } - } - - public static class TL_documentAttributeAudio extends DocumentAttribute { - public static int constructor = 0x9852f9c6; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - voice = (flags & 1024) != 0; - duration = stream.readInt32(exception); - if ((flags & 1) != 0) { - title = stream.readString(exception); - } - if ((flags & 2) != 0) { - performer = stream.readString(exception); - } - if ((flags & 4) != 0) { - waveform = stream.readByteArray(exception); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = voice ? (flags | 1024) : (flags &~ 1024); - stream.writeInt32(flags); - stream.writeInt32(duration); - if ((flags & 1) != 0) { - stream.writeString(title); - } - if ((flags & 2) != 0) { - stream.writeString(performer); - } - if ((flags & 4) != 0) { - stream.writeByteArray(waveform); - } - } - } - - public static class TL_textPhone extends RichText { - public static int constructor = 0x1ccb966a; - - public RichText text; - public String phone; - - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - phone = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - stream.writeString(phone); - } - } - - public static class TL_textSuperscript extends RichText { - public static int constructor = 0xc7fb5e01; - - public RichText text; - - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } - - public static class TL_textImage extends RichText { - public static int constructor = 0x81ccf4f; - - public long document_id; - public int w; - public int h; - - public void readParams(AbstractSerializedData stream, boolean exception) { - document_id = stream.readInt64(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(document_id); - stream.writeInt32(w); - stream.writeInt32(h); - } - } - - public static class TL_textEmpty extends RichText { - public static int constructor = 0xdc3d824f; - - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } - - public static class TL_textUrl extends RichText { - public static int constructor = 0x3c2884c1; - - public RichText text; - - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - url = stream.readString(exception); - webpage_id = stream.readInt64(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - stream.writeString(url); - stream.writeInt64(webpage_id); - } - } + public static class TL_messages_chatFull extends TLObject { + public static int constructor = 0xe5d7d19c; + + public ChatFull full_chat; + public ArrayList chats = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); + + public static TL_messages_chatFull TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_chatFull.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_chatFull", constructor)); + } else { + return null; + } + } + TL_messages_chatFull result = new TL_messages_chatFull(); + result.readParams(stream, exception); + return result; + } + + public void readParams(AbstractSerializedData stream, boolean exception) { + full_chat = ChatFull.TLdeserialize(stream, stream.readInt32(exception), exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + full_chat.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } + + public static class TL_account_passwordSettings extends TLObject { + public static int constructor = 0x9a5c33e5; + + public int flags; + public String email; + public TL_secureSecretSettings secure_settings; + + public static TL_account_passwordSettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_account_passwordSettings.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_account_passwordSettings", constructor)); + } else { + return null; + } + } + TL_account_passwordSettings result = new TL_account_passwordSettings(); + result.readParams(stream, exception); + return result; + } + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + if ((flags & 1) != 0) { + email = stream.readString(exception); + } + if ((flags & 2) != 0) { + secure_settings = TL_secureSecretSettings.TLdeserialize(stream, stream.readInt32(exception), exception); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + stream.writeString(email); + } + if ((flags & 2) != 0) { + secure_settings.serializeToStream(stream); + } + } + } + + public static abstract class DocumentAttribute extends TLObject { + public String alt; + public InputStickerSet stickerset; + public int duration; + public int flags; + public TL_maskCoords mask_coords; + public boolean round_message; + public boolean supports_streaming; + public String file_name; + public int w; + public int h; + public boolean mask; + public String title; + public String performer; + public boolean voice; + public byte[] waveform; + + public static DocumentAttribute TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + DocumentAttribute result = null; + switch (constructor) { + case 0x3a556302: + result = new TL_documentAttributeSticker_layer55(); + break; + case 0x51448e5: + result = new TL_documentAttributeAudio_old(); + break; + case 0x6319d612: + result = new TL_documentAttributeSticker(); + break; + case 0x11b58939: + result = new TL_documentAttributeAnimated(); + break; + case 0x15590068: + result = new TL_documentAttributeFilename(); + break; + case 0xef02ce6: + result = new TL_documentAttributeVideo(); + break; + case 0x5910cccb: + result = new TL_documentAttributeVideo_layer65(); + break; + case 0xded218e0: + result = new TL_documentAttributeAudio_layer45(); + break; + case 0xfb0a5727: + result = new TL_documentAttributeSticker_old(); + break; + case 0x9801d2f7: + result = new TL_documentAttributeHasStickers(); + break; + case 0x994c9882: + result = new TL_documentAttributeSticker_old2(); + break; + case 0x6c37c15c: + result = new TL_documentAttributeImageSize(); + break; + case 0x9852f9c6: + result = new TL_documentAttributeAudio(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in DocumentAttribute", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } + + public static class TL_documentAttributeSticker_layer55 extends TL_documentAttributeSticker { + public static int constructor = 0x3a556302; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + alt = stream.readString(exception); + stickerset = InputStickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(alt); + stickerset.serializeToStream(stream); + } + } + + public static class TL_documentAttributeAudio_old extends TL_documentAttributeAudio { + public static int constructor = 0x51448e5; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + duration = stream.readInt32(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(duration); + } + } + + public static class TL_documentAttributeSticker extends DocumentAttribute { + public static int constructor = 0x6319d612; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + mask = (flags & 2) != 0; + alt = stream.readString(exception); + stickerset = InputStickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 1) != 0) { + mask_coords = TL_maskCoords.TLdeserialize(stream, stream.readInt32(exception), exception); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = mask ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + stream.writeString(alt); + stickerset.serializeToStream(stream); + if ((flags & 1) != 0) { + mask_coords.serializeToStream(stream); + } + } + } + + public static class TL_documentAttributeAnimated extends DocumentAttribute { + public static int constructor = 0x11b58939; + + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } + + public static class TL_documentAttributeFilename extends DocumentAttribute { + public static int constructor = 0x15590068; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + file_name = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(file_name); + } + } + + public static class TL_documentAttributeVideo extends DocumentAttribute { + public static int constructor = 0xef02ce6; + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + round_message = (flags & 1) != 0; + supports_streaming = (flags & 2) != 0; + duration = stream.readInt32(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = round_message ? (flags | 1) : (flags &~ 1); + flags = supports_streaming ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + stream.writeInt32(duration); + stream.writeInt32(w); + stream.writeInt32(h); + } + } + + public static class TL_documentAttributeVideo_layer65 extends TL_documentAttributeVideo { + public static int constructor = 0x5910cccb; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + duration = stream.readInt32(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(duration); + stream.writeInt32(w); + stream.writeInt32(h); + } + } + + public static class TL_documentAttributeAudio_layer45 extends TL_documentAttributeAudio { + public static int constructor = 0xded218e0; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + duration = stream.readInt32(exception); + title = stream.readString(exception); + performer = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(duration); + stream.writeString(title); + stream.writeString(performer); + } + } + + public static class TL_documentAttributeSticker_old extends TL_documentAttributeSticker { + public static int constructor = 0xfb0a5727; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } + + public static class TL_documentAttributeHasStickers extends DocumentAttribute { + public static int constructor = 0x9801d2f7; + + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } + + public static class TL_documentAttributeSticker_old2 extends TL_documentAttributeSticker { + public static int constructor = 0x994c9882; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + alt = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(alt); + } + } + + public static class TL_documentAttributeImageSize extends DocumentAttribute { + public static int constructor = 0x6c37c15c; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + w = stream.readInt32(exception); + h = stream.readInt32(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(w); + stream.writeInt32(h); + } + } + + public static class TL_documentAttributeAudio extends DocumentAttribute { + public static int constructor = 0x9852f9c6; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + voice = (flags & 1024) != 0; + duration = stream.readInt32(exception); + if ((flags & 1) != 0) { + title = stream.readString(exception); + } + if ((flags & 2) != 0) { + performer = stream.readString(exception); + } + if ((flags & 4) != 0) { + waveform = stream.readByteArray(exception); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = voice ? (flags | 1024) : (flags &~ 1024); + stream.writeInt32(flags); + stream.writeInt32(duration); + if ((flags & 1) != 0) { + stream.writeString(title); + } + if ((flags & 2) != 0) { + stream.writeString(performer); + } + if ((flags & 4) != 0) { + stream.writeByteArray(waveform); + } + } + } + + public static class TL_textPhone extends RichText { + public static int constructor = 0x1ccb966a; + + public RichText text; + public String phone; + + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + phone = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + stream.writeString(phone); + } + } + + public static class TL_textSuperscript extends RichText { + public static int constructor = 0xc7fb5e01; + + public RichText text; + + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } + + public static class TL_textImage extends RichText { + public static int constructor = 0x81ccf4f; + + public long document_id; + public int w; + public int h; + + public void readParams(AbstractSerializedData stream, boolean exception) { + document_id = stream.readInt64(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(document_id); + stream.writeInt32(w); + stream.writeInt32(h); + } + } + + public static class TL_textEmpty extends RichText { + public static int constructor = 0xdc3d824f; + + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } + + public static class TL_textUrl extends RichText { + public static int constructor = 0x3c2884c1; + + public RichText text; + + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + url = stream.readString(exception); + webpage_id = stream.readInt64(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + stream.writeString(url); + stream.writeInt64(webpage_id); + } + } public static class TL_textAnchor extends RichText { public static int constructor = 0x35553762; @@ -1656,175 +1656,175 @@ public class TLRPC { } } - public static class TL_textStrike extends RichText { - public static int constructor = 0x9bf8bb95; + public static class TL_textStrike extends RichText { + public static int constructor = 0x9bf8bb95; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_textMarked extends RichText { - public static int constructor = 0x34b8621; + public static class TL_textMarked extends RichText { + public static int constructor = 0x34b8621; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_textFixed extends RichText { - public static int constructor = 0x6c3f19b9; + public static class TL_textFixed extends RichText { + public static int constructor = 0x6c3f19b9; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_textEmail extends RichText { - public static int constructor = 0xde5a0dd6; + public static class TL_textEmail extends RichText { + public static int constructor = 0xde5a0dd6; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - email = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + email = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - stream.writeString(email); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + stream.writeString(email); + } + } - public static class TL_textPlain extends RichText { - public static int constructor = 0x744694e0; + public static class TL_textPlain extends RichText { + public static int constructor = 0x744694e0; - public String text; + public String text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(text); + } + } - public static class TL_textConcat extends RichText { - public static int constructor = 0x7e6260d7; + public static class TL_textConcat extends RichText { + public static int constructor = 0x7e6260d7; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - RichText object = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - texts.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + RichText object = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + texts.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = texts.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - texts.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = texts.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + texts.get(a).serializeToStream(stream); + } + } + } - public static class TL_textBold extends RichText { - public static int constructor = 0x6724abc4; + public static class TL_textBold extends RichText { + public static int constructor = 0x6724abc4; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_textItalic extends RichText { - public static int constructor = 0xd912a59c; + public static class TL_textItalic extends RichText { + public static int constructor = 0xd912a59c; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_textUnderline extends RichText { - public static int constructor = 0xc12622c4; + public static class TL_textUnderline extends RichText { + public static int constructor = 0xc12622c4; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_textSubscript extends RichText { - public static int constructor = 0xed6a8504; + public static class TL_textSubscript extends RichText { + public static int constructor = 0xed6a8504; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } public static class TL_statsURL extends TLObject { public static int constructor = 0x47a971e0; @@ -1885,87 +1885,87 @@ public class TLRPC { } } - public static class TL_messages_botCallbackAnswer extends TLObject { - public static int constructor = 0x36585ea4; + public static class TL_messages_botCallbackAnswer extends TLObject { + public static int constructor = 0x36585ea4; - public int flags; - public boolean alert; - public boolean has_url; - public boolean native_ui; - public String message; - public String url; - public int cache_time; + public int flags; + public boolean alert; + public boolean has_url; + public boolean native_ui; + public String message; + public String url; + public int cache_time; - public static TL_messages_botCallbackAnswer TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_botCallbackAnswer.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_botCallbackAnswer", constructor)); - } else { - return null; - } - } - TL_messages_botCallbackAnswer result = new TL_messages_botCallbackAnswer(); - result.readParams(stream, exception); - return result; - } + public static TL_messages_botCallbackAnswer TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_botCallbackAnswer.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_botCallbackAnswer", constructor)); + } else { + return null; + } + } + TL_messages_botCallbackAnswer result = new TL_messages_botCallbackAnswer(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - alert = (flags & 2) != 0; - has_url = (flags & 8) != 0; - native_ui = (flags & 16) != 0; - if ((flags & 1) != 0) { - message = stream.readString(exception); - } - if ((flags & 4) != 0) { - url = stream.readString(exception); - } - cache_time = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + alert = (flags & 2) != 0; + has_url = (flags & 8) != 0; + native_ui = (flags & 16) != 0; + if ((flags & 1) != 0) { + message = stream.readString(exception); + } + if ((flags & 4) != 0) { + url = stream.readString(exception); + } + cache_time = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = alert ? (flags | 2) : (flags &~ 2); - flags = has_url ? (flags | 8) : (flags &~ 8); - flags = native_ui ? (flags | 16) : (flags &~ 16); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - stream.writeString(message); - } - if ((flags & 4) != 0) { - stream.writeString(url); - } - stream.writeInt32(cache_time); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = alert ? (flags | 2) : (flags &~ 2); + flags = has_url ? (flags | 8) : (flags &~ 8); + flags = native_ui ? (flags | 16) : (flags &~ 16); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + stream.writeString(message); + } + if ((flags & 4) != 0) { + stream.writeString(url); + } + stream.writeInt32(cache_time); + } + } - public static class TL_dataJSON extends TLObject { - public static int constructor = 0x7d748d04; + public static class TL_dataJSON extends TLObject { + public static int constructor = 0x7d748d04; - public String data; + public String data; - public static TL_dataJSON TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_dataJSON.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_dataJSON", constructor)); - } else { - return null; - } - } - TL_dataJSON result = new TL_dataJSON(); - result.readParams(stream, exception); - return result; - } + public static TL_dataJSON TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_dataJSON.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_dataJSON", constructor)); + } else { + return null; + } + } + TL_dataJSON result = new TL_dataJSON(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - data = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + data = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(data); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(data); + } + } public static class TL_contactStatus extends TLObject { public static int constructor = 0x16d9703b; @@ -2059,7 +2059,7 @@ public class TLRPC { public static class TL_groupCall extends GroupCall { public static int constructor = 0xd597650c; - + public void readParams(AbstractSerializedData stream, boolean exception) { flags = stream.readInt32(exception); @@ -2124,59 +2124,59 @@ public class TLRPC { } public static class TL_channelBannedRights_layer92 extends TLObject { - public static int constructor = 0x58cf4249; + public static int constructor = 0x58cf4249; - public int flags; - public boolean view_messages; - public boolean send_messages; - public boolean send_media; - public boolean send_stickers; - public boolean send_gifs; - public boolean send_games; - public boolean send_inline; - public boolean embed_links; - public int until_date; + public int flags; + public boolean view_messages; + public boolean send_messages; + public boolean send_media; + public boolean send_stickers; + public boolean send_gifs; + public boolean send_games; + public boolean send_inline; + public boolean embed_links; + public int until_date; - public static TL_channelBannedRights_layer92 TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_channelBannedRights_layer92.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_channelBannedRights_layer92", constructor)); - } else { - return null; - } - } - TL_channelBannedRights_layer92 result = new TL_channelBannedRights_layer92(); - result.readParams(stream, exception); - return result; - } + public static TL_channelBannedRights_layer92 TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_channelBannedRights_layer92.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_channelBannedRights_layer92", constructor)); + } else { + return null; + } + } + TL_channelBannedRights_layer92 result = new TL_channelBannedRights_layer92(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - view_messages = (flags & 1) != 0; - send_messages = (flags & 2) != 0; - send_media = (flags & 4) != 0; - send_stickers = (flags & 8) != 0; - send_gifs = (flags & 16) != 0; - send_games = (flags & 32) != 0; - send_inline = (flags & 64) != 0; - embed_links = (flags & 128) != 0; - until_date = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + view_messages = (flags & 1) != 0; + send_messages = (flags & 2) != 0; + send_media = (flags & 4) != 0; + send_stickers = (flags & 8) != 0; + send_gifs = (flags & 16) != 0; + send_games = (flags & 32) != 0; + send_inline = (flags & 64) != 0; + embed_links = (flags & 128) != 0; + until_date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = view_messages ? (flags | 1) : (flags &~ 1); - flags = send_messages ? (flags | 2) : (flags &~ 2); - flags = send_media ? (flags | 4) : (flags &~ 4); - flags = send_stickers ? (flags | 8) : (flags &~ 8); - flags = send_gifs ? (flags | 16) : (flags &~ 16); - flags = send_games ? (flags | 32) : (flags &~ 32); - flags = send_inline ? (flags | 64) : (flags &~ 64); - flags = embed_links ? (flags | 128) : (flags &~ 128); - stream.writeInt32(flags); - stream.writeInt32(until_date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = view_messages ? (flags | 1) : (flags &~ 1); + flags = send_messages ? (flags | 2) : (flags &~ 2); + flags = send_media ? (flags | 4) : (flags &~ 4); + flags = send_stickers ? (flags | 8) : (flags &~ 8); + flags = send_gifs ? (flags | 16) : (flags &~ 16); + flags = send_games ? (flags | 32) : (flags &~ 32); + flags = send_inline ? (flags | 64) : (flags &~ 64); + flags = embed_links ? (flags | 128) : (flags &~ 128); + stream.writeInt32(flags); + stream.writeInt32(until_date); + } + } public static abstract class DialogPeer extends TLObject { @@ -3213,62 +3213,62 @@ public class TLRPC { } public static abstract class EncryptedFile extends TLObject { - public long id; - public long access_hash; - public int size; - public int dc_id; - public int key_fingerprint; + public long id; + public long access_hash; + public int size; + public int dc_id; + public int key_fingerprint; - public static EncryptedFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - EncryptedFile result = null; - switch (constructor) { - case 0x4a70994c: - result = new TL_encryptedFile(); - break; - case 0xc21f497e: - result = new TL_encryptedFileEmpty(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in EncryptedFile", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static EncryptedFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + EncryptedFile result = null; + switch (constructor) { + case 0x4a70994c: + result = new TL_encryptedFile(); + break; + case 0xc21f497e: + result = new TL_encryptedFileEmpty(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in EncryptedFile", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_encryptedFile extends EncryptedFile { - public static int constructor = 0x4a70994c; + public static class TL_encryptedFile extends EncryptedFile { + public static int constructor = 0x4a70994c; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - size = stream.readInt32(exception); - dc_id = stream.readInt32(exception); - key_fingerprint = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + size = stream.readInt32(exception); + dc_id = stream.readInt32(exception); + key_fingerprint = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32(size); - stream.writeInt32(dc_id); - stream.writeInt32(key_fingerprint); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32(size); + stream.writeInt32(dc_id); + stream.writeInt32(key_fingerprint); + } + } - public static class TL_encryptedFileEmpty extends EncryptedFile { - public static int constructor = 0xc21f497e; + public static class TL_encryptedFileEmpty extends EncryptedFile { + public static int constructor = 0xc21f497e; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static abstract class Peer extends TLObject { @@ -3392,36 +3392,36 @@ public class TLRPC { } } - public static class TL_labeledPrice extends TLObject { - public static int constructor = 0xcb296bf8; + public static class TL_labeledPrice extends TLObject { + public static int constructor = 0xcb296bf8; - public String label; - public long amount; + public String label; + public long amount; - public static TL_labeledPrice TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_labeledPrice.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_labeledPrice", constructor)); - } else { - return null; - } - } - TL_labeledPrice result = new TL_labeledPrice(); - result.readParams(stream, exception); - return result; - } + public static TL_labeledPrice TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_labeledPrice.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_labeledPrice", constructor)); + } else { + return null; + } + } + TL_labeledPrice result = new TL_labeledPrice(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - label = stream.readString(exception); - amount = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + label = stream.readString(exception); + amount = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(label); - stream.writeInt64(amount); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(label); + stream.writeInt64(amount); + } + } public static class TL_messages_exportedChatInvites extends TLObject { public static int constructor = 0xbdc62dcc; @@ -3536,139 +3536,139 @@ public class TLRPC { } } - public static class TL_langPackDifference extends TLObject { - public static int constructor = 0xf385c1f6; + public static class TL_langPackDifference extends TLObject { + public static int constructor = 0xf385c1f6; - public String lang_code; - public int from_version; - public int version; - public ArrayList strings = new ArrayList<>(); + public String lang_code; + public int from_version; + public int version; + public ArrayList strings = new ArrayList<>(); - public static TL_langPackDifference TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_langPackDifference.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_langPackDifference", constructor)); - } else { - return null; - } - } - TL_langPackDifference result = new TL_langPackDifference(); - result.readParams(stream, exception); - return result; - } + public static TL_langPackDifference TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_langPackDifference.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_langPackDifference", constructor)); + } else { + return null; + } + } + TL_langPackDifference result = new TL_langPackDifference(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - lang_code = stream.readString(exception); - from_version = stream.readInt32(exception); - version = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - LangPackString object = LangPackString.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - strings.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + lang_code = stream.readString(exception); + from_version = stream.readInt32(exception); + version = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + LangPackString object = LangPackString.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + strings.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(lang_code); - stream.writeInt32(from_version); - stream.writeInt32(version); - stream.writeInt32(0x1cb5c415); - int count = strings.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - strings.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(lang_code); + stream.writeInt32(from_version); + stream.writeInt32(version); + stream.writeInt32(0x1cb5c415); + int count = strings.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + strings.get(a).serializeToStream(stream); + } + } + } - public static abstract class help_DeepLinkInfo extends TLObject { + public static abstract class help_DeepLinkInfo extends TLObject { - public static help_DeepLinkInfo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - help_DeepLinkInfo result = null; - switch (constructor) { - case 0x66afa166: - result = new TL_help_deepLinkInfoEmpty(); - break; - case 0x6a4ee832: - result = new TL_help_deepLinkInfo(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in help_DeepLinkInfo", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static help_DeepLinkInfo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + help_DeepLinkInfo result = null; + switch (constructor) { + case 0x66afa166: + result = new TL_help_deepLinkInfoEmpty(); + break; + case 0x6a4ee832: + result = new TL_help_deepLinkInfo(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in help_DeepLinkInfo", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_help_deepLinkInfoEmpty extends help_DeepLinkInfo { - public static int constructor = 0x66afa166; + public static class TL_help_deepLinkInfoEmpty extends help_DeepLinkInfo { + public static int constructor = 0x66afa166; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_help_deepLinkInfo extends help_DeepLinkInfo { - public static int constructor = 0x6a4ee832; + public static class TL_help_deepLinkInfo extends help_DeepLinkInfo { + public static int constructor = 0x6a4ee832; - public int flags; - public boolean update_app; - public String message; - public ArrayList entities = new ArrayList<>(); + public int flags; + public boolean update_app; + public String message; + public ArrayList entities = new ArrayList<>(); - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - update_app = (flags & 1) != 0; - message = stream.readString(exception); - if ((flags & 2) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + update_app = (flags & 1) != 0; + message = stream.readString(exception); + if ((flags & 2) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = update_app ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeString(message); - if ((flags & 2) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = update_app ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeString(message); + if ((flags & 2) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + } + } public static class TL_chatAdminRights extends TLObject { public static int constructor = 0x5fb224d5; @@ -4111,100 +4111,100 @@ public class TLRPC { } } - public static abstract class SecureFile extends TLObject { + public static abstract class SecureFile extends TLObject { - public static SecureFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - SecureFile result = null; - switch (constructor) { - case 0x64199744: - result = new TL_secureFileEmpty(); - break; - case 0xe0277a62: - result = new TL_secureFile(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in SecureFile", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static SecureFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + SecureFile result = null; + switch (constructor) { + case 0x64199744: + result = new TL_secureFileEmpty(); + break; + case 0xe0277a62: + result = new TL_secureFile(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in SecureFile", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_secureFileEmpty extends SecureFile { - public static int constructor = 0x64199744; + public static class TL_secureFileEmpty extends SecureFile { + public static int constructor = 0x64199744; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureFile extends SecureFile { - public static int constructor = 0xe0277a62; + public static class TL_secureFile extends SecureFile { + public static int constructor = 0xe0277a62; - public long id; - public long access_hash; - public int size; - public int dc_id; - public int date; - public byte[] file_hash; - public byte[] secret; + public long id; + public long access_hash; + public int size; + public int dc_id; + public int date; + public byte[] file_hash; + public byte[] secret; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - size = stream.readInt32(exception); - dc_id = stream.readInt32(exception); - date = stream.readInt32(exception); - file_hash = stream.readByteArray(exception); - secret = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + size = stream.readInt32(exception); + dc_id = stream.readInt32(exception); + date = stream.readInt32(exception); + file_hash = stream.readByteArray(exception); + secret = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32(size); - stream.writeInt32(dc_id); - stream.writeInt32(date); - stream.writeByteArray(file_hash); - stream.writeByteArray(secret); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32(size); + stream.writeInt32(dc_id); + stream.writeInt32(date); + stream.writeByteArray(file_hash); + stream.writeByteArray(secret); + } + } - public static class TL_messages_affectedMessages extends TLObject { - public static int constructor = 0x84d19185; + public static class TL_messages_affectedMessages extends TLObject { + public static int constructor = 0x84d19185; - public int pts; - public int pts_count; + public int pts; + public int pts_count; - public static TL_messages_affectedMessages TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_affectedMessages.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_affectedMessages", constructor)); - } else { - return null; - } - } - TL_messages_affectedMessages result = new TL_messages_affectedMessages(); - result.readParams(stream, exception); - return result; - } + public static TL_messages_affectedMessages TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_affectedMessages.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_affectedMessages", constructor)); + } else { + return null; + } + } + TL_messages_affectedMessages result = new TL_messages_affectedMessages(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - pts = stream.readInt32(exception); - pts_count = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + pts = stream.readInt32(exception); + pts_count = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(pts); - stream.writeInt32(pts_count); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(pts); + stream.writeInt32(pts_count); + } + } public static class TL_messages_chatInviteImporters extends TLObject { public static int constructor = 0x81b6b00a; @@ -4397,6 +4397,7 @@ public class TLRPC { public boolean current; public boolean official_app; public boolean password_pending; + public boolean encrypted_requests_disabled; public long hash; public String device_model; public String platform; @@ -4428,6 +4429,7 @@ public class TLRPC { current = (flags & 1) != 0; official_app = (flags & 2) != 0; password_pending = (flags & 4) != 0; + encrypted_requests_disabled = (flags & 8) != 0; hash = stream.readInt64(exception); device_model = stream.readString(exception); platform = stream.readString(exception); @@ -4447,6 +4449,7 @@ public class TLRPC { flags = current ? (flags | 1) : (flags &~ 1); flags = official_app ? (flags | 2) : (flags &~ 2); flags = password_pending ? (flags | 4) : (flags &~ 4); + flags = encrypted_requests_disabled ? (flags | 8) : (flags &~ 8); stream.writeInt32(flags); stream.writeInt64(hash); stream.writeString(device_model); @@ -4577,311 +4580,311 @@ public class TLRPC { } } - public static abstract class updates_Difference extends TLObject { - public ArrayList new_messages = new ArrayList<>(); - public ArrayList new_encrypted_messages = new ArrayList<>(); - public ArrayList other_updates = new ArrayList<>(); - public ArrayList chats = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); - public TL_updates_state state; - public TL_updates_state intermediate_state; - public int pts; - public int date; - public int seq; + public static abstract class updates_Difference extends TLObject { + public ArrayList new_messages = new ArrayList<>(); + public ArrayList new_encrypted_messages = new ArrayList<>(); + public ArrayList other_updates = new ArrayList<>(); + public ArrayList chats = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); + public TL_updates_state state; + public TL_updates_state intermediate_state; + public int pts; + public int date; + public int seq; - public static updates_Difference TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - updates_Difference result = null; - switch (constructor) { - case 0xf49ca0: - result = new TL_updates_difference(); - break; - case 0xa8fb1981: - result = new TL_updates_differenceSlice(); - break; - case 0x4afe8f6d: - result = new TL_updates_differenceTooLong(); - break; - case 0x5d75a138: - result = new TL_updates_differenceEmpty(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in updates_Difference", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static updates_Difference TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + updates_Difference result = null; + switch (constructor) { + case 0xf49ca0: + result = new TL_updates_difference(); + break; + case 0xa8fb1981: + result = new TL_updates_differenceSlice(); + break; + case 0x4afe8f6d: + result = new TL_updates_differenceTooLong(); + break; + case 0x5d75a138: + result = new TL_updates_differenceEmpty(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in updates_Difference", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_updates_difference extends updates_Difference { - public static int constructor = 0xf49ca0; + public static class TL_updates_difference extends updates_Difference { + public static int constructor = 0xf49ca0; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Message object = Message.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - new_messages.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - EncryptedMessage object = EncryptedMessage.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - new_encrypted_messages.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Update object = Update.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - other_updates.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - state = TL_updates_state.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Message object = Message.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + new_messages.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + EncryptedMessage object = EncryptedMessage.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + new_encrypted_messages.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Update object = Update.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + other_updates.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + state = TL_updates_state.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = new_messages.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - new_messages.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = new_encrypted_messages.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - new_encrypted_messages.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = other_updates.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - other_updates.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - state.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = new_messages.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + new_messages.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = new_encrypted_messages.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + new_encrypted_messages.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = other_updates.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + other_updates.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + state.serializeToStream(stream); + } + } - public static class TL_updates_differenceSlice extends updates_Difference { - public static int constructor = 0xa8fb1981; + public static class TL_updates_differenceSlice extends updates_Difference { + public static int constructor = 0xa8fb1981; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Message object = Message.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - new_messages.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - EncryptedMessage object = EncryptedMessage.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - new_encrypted_messages.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Update object = Update.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - other_updates.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - intermediate_state = TL_updates_state.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Message object = Message.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + new_messages.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + EncryptedMessage object = EncryptedMessage.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + new_encrypted_messages.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Update object = Update.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + other_updates.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + intermediate_state = TL_updates_state.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = new_messages.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - new_messages.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = new_encrypted_messages.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - new_encrypted_messages.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = other_updates.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - other_updates.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - intermediate_state.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = new_messages.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + new_messages.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = new_encrypted_messages.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + new_encrypted_messages.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = other_updates.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + other_updates.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + intermediate_state.serializeToStream(stream); + } + } - public static class TL_updates_differenceTooLong extends updates_Difference { - public static int constructor = 0x4afe8f6d; + public static class TL_updates_differenceTooLong extends updates_Difference { + public static int constructor = 0x4afe8f6d; - public void readParams(AbstractSerializedData stream, boolean exception) { - pts = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + pts = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(pts); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(pts); + } + } - public static class TL_updates_differenceEmpty extends updates_Difference { - public static int constructor = 0x5d75a138; + public static class TL_updates_differenceEmpty extends updates_Difference { + public static int constructor = 0x5d75a138; - public void readParams(AbstractSerializedData stream, boolean exception) { - date = stream.readInt32(exception); - seq = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + date = stream.readInt32(exception); + seq = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(date); - stream.writeInt32(seq); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(date); + stream.writeInt32(seq); + } + } public static abstract class PrivacyKey extends TLObject { @@ -4995,81 +4998,81 @@ public class TLRPC { } } - public static abstract class GeoPoint extends TLObject { + public static abstract class GeoPoint extends TLObject { public int flags; public double _long; public double lat; public int accuracy_radius; - public long access_hash; + public long access_hash; - public static GeoPoint TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - GeoPoint result = null; - switch (constructor) { - case 0x296f104: - result = new TL_geoPoint_layer119(); - break; - case 0x2049d70c: - result = new TL_geoPoint_layer81(); - break; - case 0x1117dd5f: - result = new TL_geoPointEmpty(); - break; + public static GeoPoint TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + GeoPoint result = null; + switch (constructor) { + case 0x296f104: + result = new TL_geoPoint_layer119(); + break; + case 0x2049d70c: + result = new TL_geoPoint_layer81(); + break; + case 0x1117dd5f: + result = new TL_geoPointEmpty(); + break; case 0xb2a2f663: result = new TL_geoPoint(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in GeoPoint", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in GeoPoint", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_geoPoint_layer119 extends TL_geoPoint { - public static int constructor = 0x296f104; + public static class TL_geoPoint_layer119 extends TL_geoPoint { + public static int constructor = 0x296f104; - public void readParams(AbstractSerializedData stream, boolean exception) { - _long = stream.readDouble(exception); - lat = stream.readDouble(exception); - access_hash = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + _long = stream.readDouble(exception); + lat = stream.readDouble(exception); + access_hash = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeDouble(_long); - stream.writeDouble(lat); - stream.writeInt64(access_hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeDouble(_long); + stream.writeDouble(lat); + stream.writeInt64(access_hash); + } + } - public static class TL_geoPoint_layer81 extends TL_geoPoint { - public static int constructor = 0x2049d70c; + public static class TL_geoPoint_layer81 extends TL_geoPoint { + public static int constructor = 0x2049d70c; - public void readParams(AbstractSerializedData stream, boolean exception) { - _long = stream.readDouble(exception); - lat = stream.readDouble(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + _long = stream.readDouble(exception); + lat = stream.readDouble(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeDouble(_long); - stream.writeDouble(lat); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeDouble(_long); + stream.writeDouble(lat); + } + } - public static class TL_geoPointEmpty extends GeoPoint { - public static int constructor = 0x1117dd5f; + public static class TL_geoPointEmpty extends GeoPoint { + public static int constructor = 0x1117dd5f; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_geoPoint extends GeoPoint { public static int constructor = 0xb2a2f663; @@ -5319,36 +5322,36 @@ public class TLRPC { } } - public static class TL_inputGroupCall extends TLObject { - public static int constructor = 0xd8aa840f; + public static class TL_inputGroupCall extends TLObject { + public static int constructor = 0xd8aa840f; - public long id; - public long access_hash; + public long id; + public long access_hash; - public static TL_inputGroupCall TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_inputGroupCall.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_inputGroupCall", constructor)); - } else { - return null; - } - } - TL_inputGroupCall result = new TL_inputGroupCall(); - result.readParams(stream, exception); - return result; - } + public static TL_inputGroupCall TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_inputGroupCall.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_inputGroupCall", constructor)); + } else { + return null; + } + } + TL_inputGroupCall result = new TL_inputGroupCall(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + } + } public static abstract class help_AppUpdate extends TLObject { @@ -5540,39 +5543,39 @@ public class TLRPC { } } - public static abstract class messages_FavedStickers extends TLObject { + public static abstract class messages_FavedStickers extends TLObject { public long hash; public ArrayList packs = new ArrayList<>(); public ArrayList stickers = new ArrayList<>(); - public static messages_FavedStickers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_FavedStickers result = null; - switch (constructor) { - case 0x9e8fa6d3: - result = new TL_messages_favedStickersNotModified(); - break; + public static messages_FavedStickers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_FavedStickers result = null; + switch (constructor) { + case 0x9e8fa6d3: + result = new TL_messages_favedStickersNotModified(); + break; case 0x2cb51097: result = new TL_messages_favedStickers(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_FavedStickers", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_FavedStickers", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messages_favedStickersNotModified extends messages_FavedStickers { - public static int constructor = 0x9e8fa6d3; + public static class TL_messages_favedStickersNotModified extends messages_FavedStickers { + public static int constructor = 0x9e8fa6d3; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messages_favedStickers extends messages_FavedStickers { public static int constructor = 0x2cb51097; @@ -5743,118 +5746,118 @@ public class TLRPC { } } - public static abstract class SendMessageAction extends TLObject { - public int progress; + public static abstract class SendMessageAction extends TLObject { + public int progress; - public static SendMessageAction TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - SendMessageAction result = null; - switch (constructor) { - case 0xdd6a8f48: - result = new TL_sendMessageGamePlayAction(); - break; - case 0xd52f73f7: - result = new TL_sendMessageRecordAudioAction(); - break; - case 0x92042ff7: - result = new TL_sendMessageUploadVideoAction_old(); - break; - case 0xe6ac8a6f: - result = new TL_sendMessageUploadAudioAction_old(); - break; - case 0xf351d7ab: - result = new TL_sendMessageUploadAudioAction(); - break; - case 0xd1d34a26: - result = new TL_sendMessageUploadPhotoAction(); - break; - case 0x8faee98e: - result = new TL_sendMessageUploadDocumentAction_old(); - break; - case 0xe9763aec: - result = new TL_sendMessageUploadVideoAction(); - break; - case 0xfd5ec8f5: - result = new TL_sendMessageCancelAction(); - break; - case 0x176f8ba1: - result = new TL_sendMessageGeoLocationAction(); - break; - case 0x628cbc6f: - result = new TL_sendMessageChooseContactAction(); - break; + public static SendMessageAction TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + SendMessageAction result = null; + switch (constructor) { + case 0xdd6a8f48: + result = new TL_sendMessageGamePlayAction(); + break; + case 0xd52f73f7: + result = new TL_sendMessageRecordAudioAction(); + break; + case 0x92042ff7: + result = new TL_sendMessageUploadVideoAction_old(); + break; + case 0xe6ac8a6f: + result = new TL_sendMessageUploadAudioAction_old(); + break; + case 0xf351d7ab: + result = new TL_sendMessageUploadAudioAction(); + break; + case 0xd1d34a26: + result = new TL_sendMessageUploadPhotoAction(); + break; + case 0x8faee98e: + result = new TL_sendMessageUploadDocumentAction_old(); + break; + case 0xe9763aec: + result = new TL_sendMessageUploadVideoAction(); + break; + case 0xfd5ec8f5: + result = new TL_sendMessageCancelAction(); + break; + case 0x176f8ba1: + result = new TL_sendMessageGeoLocationAction(); + break; + case 0x628cbc6f: + result = new TL_sendMessageChooseContactAction(); + break; case 0xb05ac6b1: result = new TL_sendMessageChooseStickerAction(); break; - case 0x88f27fbc: - result = new TL_sendMessageRecordRoundAction(); - break; - case 0x243e1c66: - result = new TL_sendMessageUploadRoundAction(); - break; - case 0x16bf744e: - result = new TL_sendMessageTypingAction(); - break; + case 0x88f27fbc: + result = new TL_sendMessageRecordRoundAction(); + break; + case 0x243e1c66: + result = new TL_sendMessageUploadRoundAction(); + break; + case 0x16bf744e: + result = new TL_sendMessageTypingAction(); + break; case 0xdbda9246: result = new TL_sendMessageHistoryImportAction(); break; - case 0x990a3c1a: - result = new TL_sendMessageUploadPhotoAction_old(); - break; - case 0xaa0cd9e4: - result = new TL_sendMessageUploadDocumentAction(); - break; + case 0x990a3c1a: + result = new TL_sendMessageUploadPhotoAction_old(); + break; + case 0xaa0cd9e4: + result = new TL_sendMessageUploadDocumentAction(); + break; case 0xd92c2285: result = new TL_speakingInGroupCallAction(); break; - case 0xa187d66f: - result = new TL_sendMessageRecordVideoAction(); - break; + case 0xa187d66f: + result = new TL_sendMessageRecordVideoAction(); + break; case 0x25972bcb: result = new TL_sendMessageEmojiInteraction(); break; case 0xb665902e: result = new TL_sendMessageEmojiInteractionSeen(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in SendMessageAction", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in SendMessageAction", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_sendMessageGamePlayAction extends SendMessageAction { - public static int constructor = 0xdd6a8f48; + public static class TL_sendMessageGamePlayAction extends SendMessageAction { + public static int constructor = 0xdd6a8f48; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_sendMessageRecordAudioAction extends SendMessageAction { - public static int constructor = 0xd52f73f7; + public static class TL_sendMessageRecordAudioAction extends SendMessageAction { + public static int constructor = 0xd52f73f7; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_sendMessageUploadVideoAction_old extends TL_sendMessageUploadVideoAction { - public static int constructor = 0x92042ff7; + public static class TL_sendMessageUploadVideoAction_old extends TL_sendMessageUploadVideoAction { + public static int constructor = 0x92042ff7; - public void readParams(AbstractSerializedData stream, boolean exception) { - } + public void readParams(AbstractSerializedData stream, boolean exception) { + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_sendMessageEmojiInteraction extends SendMessageAction { public static int constructor = 0x25972bcb; @@ -5878,97 +5881,97 @@ public class TLRPC { } public static class TL_sendMessageUploadAudioAction_old extends TL_sendMessageUploadAudioAction { - public static int constructor = 0xe6ac8a6f; + public static int constructor = 0xe6ac8a6f; - public void readParams(AbstractSerializedData stream, boolean exception) { - } + public void readParams(AbstractSerializedData stream, boolean exception) { + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_sendMessageUploadAudioAction extends SendMessageAction { - public static int constructor = 0xf351d7ab; + public static class TL_sendMessageUploadAudioAction extends SendMessageAction { + public static int constructor = 0xf351d7ab; - public void readParams(AbstractSerializedData stream, boolean exception) { - progress = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + progress = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(progress); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(progress); + } + } - public static class TL_sendMessageUploadPhotoAction extends SendMessageAction { - public static int constructor = 0xd1d34a26; + public static class TL_sendMessageUploadPhotoAction extends SendMessageAction { + public static int constructor = 0xd1d34a26; - public void readParams(AbstractSerializedData stream, boolean exception) { - progress = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + progress = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(progress); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(progress); + } + } - public static class TL_sendMessageUploadDocumentAction_old extends TL_sendMessageUploadDocumentAction { - public static int constructor = 0x8faee98e; + public static class TL_sendMessageUploadDocumentAction_old extends TL_sendMessageUploadDocumentAction { + public static int constructor = 0x8faee98e; - public void readParams(AbstractSerializedData stream, boolean exception) { - } + public void readParams(AbstractSerializedData stream, boolean exception) { + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_sendMessageUploadVideoAction extends SendMessageAction { - public static int constructor = 0xe9763aec; + public static class TL_sendMessageUploadVideoAction extends SendMessageAction { + public static int constructor = 0xe9763aec; - public void readParams(AbstractSerializedData stream, boolean exception) { - progress = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + progress = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(progress); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(progress); + } + } - public static class TL_sendMessageCancelAction extends SendMessageAction { - public static int constructor = 0xfd5ec8f5; + public static class TL_sendMessageCancelAction extends SendMessageAction { + public static int constructor = 0xfd5ec8f5; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_sendMessageGeoLocationAction extends SendMessageAction { - public static int constructor = 0x176f8ba1; + public static class TL_sendMessageGeoLocationAction extends SendMessageAction { + public static int constructor = 0x176f8ba1; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_sendMessageChooseContactAction extends SendMessageAction { - public static int constructor = 0x628cbc6f; + public static class TL_sendMessageChooseContactAction extends SendMessageAction { + public static int constructor = 0x628cbc6f; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_sendMessageChooseStickerAction extends SendMessageAction { public static int constructor = 0xb05ac6b1; @@ -5979,28 +5982,28 @@ public class TLRPC { } } - public static class TL_sendMessageRecordRoundAction extends SendMessageAction { - public static int constructor = 0x88f27fbc; + public static class TL_sendMessageRecordRoundAction extends SendMessageAction { + public static int constructor = 0x88f27fbc; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_sendMessageUploadRoundAction extends SendMessageAction { - public static int constructor = 0x243e1c66; + public static class TL_sendMessageUploadRoundAction extends SendMessageAction { + public static int constructor = 0x243e1c66; - public void readParams(AbstractSerializedData stream, boolean exception) { - progress = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + progress = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(progress); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(progress); + } + } public static class TL_sendMessageEmojiInteractionSeen extends SendMessageAction { public static int constructor = 0xb665902e; @@ -6017,14 +6020,14 @@ public class TLRPC { } } - public static class TL_sendMessageTypingAction extends SendMessageAction { - public static int constructor = 0x16bf744e; + public static class TL_sendMessageTypingAction extends SendMessageAction { + public static int constructor = 0x16bf744e; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_sendMessageHistoryImportAction extends SendMessageAction { public static int constructor = 0xdbda9246; @@ -6041,31 +6044,31 @@ public class TLRPC { } } - public static class TL_sendMessageUploadPhotoAction_old extends TL_sendMessageUploadPhotoAction { - public static int constructor = 0x990a3c1a; + public static class TL_sendMessageUploadPhotoAction_old extends TL_sendMessageUploadPhotoAction { + public static int constructor = 0x990a3c1a; - public void readParams(AbstractSerializedData stream, boolean exception) { - } + public void readParams(AbstractSerializedData stream, boolean exception) { + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_sendMessageUploadDocumentAction extends SendMessageAction { - public static int constructor = 0xaa0cd9e4; + public static class TL_sendMessageUploadDocumentAction extends SendMessageAction { + public static int constructor = 0xaa0cd9e4; - public void readParams(AbstractSerializedData stream, boolean exception) { - progress = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + progress = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(progress); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(progress); + } + } public static class TL_speakingInGroupCallAction extends SendMessageAction { public static int constructor = 0xd92c2285; @@ -6076,168 +6079,168 @@ public class TLRPC { } } - public static class TL_sendMessageRecordVideoAction extends SendMessageAction { - public static int constructor = 0xa187d66f; + public static class TL_sendMessageRecordVideoAction extends SendMessageAction { + public static int constructor = 0xa187d66f; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static abstract class auth_SentCodeType extends TLObject { - public int length; - public String pattern; + public static abstract class auth_SentCodeType extends TLObject { + public int length; + public String pattern; - public static auth_SentCodeType TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - auth_SentCodeType result = null; - switch (constructor) { - case 0x3dbb5986: - result = new TL_auth_sentCodeTypeApp(); - break; - case 0x5353e5a7: - result = new TL_auth_sentCodeTypeCall(); - break; - case 0xab03c6d9: - result = new TL_auth_sentCodeTypeFlashCall(); - break; - case 0xc000bba2: - result = new TL_auth_sentCodeTypeSms(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in auth_SentCodeType", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static auth_SentCodeType TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + auth_SentCodeType result = null; + switch (constructor) { + case 0x3dbb5986: + result = new TL_auth_sentCodeTypeApp(); + break; + case 0x5353e5a7: + result = new TL_auth_sentCodeTypeCall(); + break; + case 0xab03c6d9: + result = new TL_auth_sentCodeTypeFlashCall(); + break; + case 0xc000bba2: + result = new TL_auth_sentCodeTypeSms(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in auth_SentCodeType", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_auth_sentCodeTypeApp extends auth_SentCodeType { - public static int constructor = 0x3dbb5986; + public static class TL_auth_sentCodeTypeApp extends auth_SentCodeType { + public static int constructor = 0x3dbb5986; - public void readParams(AbstractSerializedData stream, boolean exception) { - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(length); + } + } - public static class TL_auth_sentCodeTypeCall extends auth_SentCodeType { - public static int constructor = 0x5353e5a7; + public static class TL_auth_sentCodeTypeCall extends auth_SentCodeType { + public static int constructor = 0x5353e5a7; - public void readParams(AbstractSerializedData stream, boolean exception) { - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(length); + } + } - public static class TL_auth_sentCodeTypeFlashCall extends auth_SentCodeType { - public static int constructor = 0xab03c6d9; + public static class TL_auth_sentCodeTypeFlashCall extends auth_SentCodeType { + public static int constructor = 0xab03c6d9; - public void readParams(AbstractSerializedData stream, boolean exception) { - pattern = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + pattern = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(pattern); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(pattern); + } + } - public static class TL_auth_sentCodeTypeSms extends auth_SentCodeType { - public static int constructor = 0xc000bba2; + public static class TL_auth_sentCodeTypeSms extends auth_SentCodeType { + public static int constructor = 0xc000bba2; - public void readParams(AbstractSerializedData stream, boolean exception) { - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(length); + } + } - public static abstract class messages_StickerSetInstallResult extends TLObject { - public ArrayList sets = new ArrayList<>(); + public static abstract class messages_StickerSetInstallResult extends TLObject { + public ArrayList sets = new ArrayList<>(); - public static messages_StickerSetInstallResult TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_StickerSetInstallResult result = null; - switch (constructor) { - case 0x38641628: - result = new TL_messages_stickerSetInstallResultSuccess(); - break; - case 0x35e410a8: - result = new TL_messages_stickerSetInstallResultArchive(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_StickerSetInstallResult", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static messages_StickerSetInstallResult TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_StickerSetInstallResult result = null; + switch (constructor) { + case 0x38641628: + result = new TL_messages_stickerSetInstallResultSuccess(); + break; + case 0x35e410a8: + result = new TL_messages_stickerSetInstallResultArchive(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_StickerSetInstallResult", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messages_stickerSetInstallResultSuccess extends messages_StickerSetInstallResult { - public static int constructor = 0x38641628; + public static class TL_messages_stickerSetInstallResultSuccess extends messages_StickerSetInstallResult { + public static int constructor = 0x38641628; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_messages_stickerSetInstallResultArchive extends messages_StickerSetInstallResult { - public static int constructor = 0x35e410a8; + public static class TL_messages_stickerSetInstallResultArchive extends messages_StickerSetInstallResult { + public static int constructor = 0x35e410a8; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - StickerSetCovered object = StickerSetCovered.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - sets.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + StickerSetCovered object = StickerSetCovered.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + sets.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = sets.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - sets.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = sets.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + sets.get(a).serializeToStream(stream); + } + } + } public static class TL_peerSettings extends TLObject { - public static int constructor = 0x733f2961; + public static int constructor = 0xa8228d2e; public int flags; public boolean report_spam; @@ -6249,6 +6252,8 @@ public class TLRPC { public boolean autoarchived; public boolean invite_members; public int geo_distance; + public Peer request_chat; + public int request_chat_date; public static TL_peerSettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { if (TL_peerSettings.constructor != constructor) { @@ -6276,6 +6281,12 @@ public class TLRPC { if ((flags & 64) != 0) { geo_distance = stream.readInt32(exception); } + if ((flags & 512) != 0) { + request_chat = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 512) != 0) { + request_chat_date = stream.readInt32(exception); + } } public void serializeToStream(AbstractSerializedData stream) { @@ -6292,6 +6303,12 @@ public class TLRPC { if ((flags & 64) != 0) { stream.writeInt32(geo_distance); } + if ((flags & 512) != 0) { + request_chat.serializeToStream(stream); + } + if ((flags & 512) != 0) { + stream.writeInt32(request_chat_date); + } } } @@ -6430,133 +6447,133 @@ public class TLRPC { } } - public static class TL_channels_adminLogResults extends TLObject { - public static int constructor = 0xed8af74d; + public static class TL_channels_adminLogResults extends TLObject { + public static int constructor = 0xed8af74d; - public ArrayList events = new ArrayList<>(); - public ArrayList chats = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); + public ArrayList events = new ArrayList<>(); + public ArrayList chats = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); - public static TL_channels_adminLogResults TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_channels_adminLogResults.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_channels_adminLogResults", constructor)); - } else { - return null; - } - } - TL_channels_adminLogResults result = new TL_channels_adminLogResults(); - result.readParams(stream, exception); - return result; - } + public static TL_channels_adminLogResults TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_channels_adminLogResults.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_channels_adminLogResults", constructor)); + } else { + return null; + } + } + TL_channels_adminLogResults result = new TL_channels_adminLogResults(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_channelAdminLogEvent object = TL_channelAdminLogEvent.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - events.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_channelAdminLogEvent object = TL_channelAdminLogEvent.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + events.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = events.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - events.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = events.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + events.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } - public static class TL_inputPhoneContact extends TLObject { - public static int constructor = 0xf392b7f4; + public static class TL_inputPhoneContact extends TLObject { + public static int constructor = 0xf392b7f4; - public long client_id; - public String phone; - public String first_name; - public String last_name; + public long client_id; + public String phone; + public String first_name; + public String last_name; - public static TL_inputPhoneContact TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_inputPhoneContact.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_inputPhoneContact", constructor)); - } else { - return null; - } - } - TL_inputPhoneContact result = new TL_inputPhoneContact(); - result.readParams(stream, exception); - return result; - } + public static TL_inputPhoneContact TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_inputPhoneContact.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_inputPhoneContact", constructor)); + } else { + return null; + } + } + TL_inputPhoneContact result = new TL_inputPhoneContact(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - client_id = stream.readInt64(exception); - phone = stream.readString(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + client_id = stream.readInt64(exception); + phone = stream.readString(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(client_id); - stream.writeString(phone); - stream.writeString(first_name); - stream.writeString(last_name); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(client_id); + stream.writeString(phone); + stream.writeString(first_name); + stream.writeString(last_name); + } + } public static abstract class ThemeSettings extends TLObject { @@ -6745,36 +6762,36 @@ public class TLRPC { } } - public static class TL_pageCaption extends TLObject { - public static int constructor = 0x6f747657; + public static class TL_pageCaption extends TLObject { + public static int constructor = 0x6f747657; - public RichText text; - public RichText credit; + public RichText text; + public RichText credit; - public static TL_pageCaption TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_pageCaption.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_pageCaption", constructor)); - } else { - return null; - } - } - TL_pageCaption result = new TL_pageCaption(); - result.readParams(stream, exception); - return result; - } + public static TL_pageCaption TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_pageCaption.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_pageCaption", constructor)); + } else { + return null; + } + } + TL_pageCaption result = new TL_pageCaption(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - credit = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + credit = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - credit.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + credit.serializeToStream(stream); + } + } public static abstract class PrivacyRule extends TLObject { @@ -7036,194 +7053,194 @@ public class TLRPC { } } - public static class TL_messageMediaUnsupported_old extends TL_messageMediaUnsupported { - public static int constructor = 0x29632a36; + public static class TL_messageMediaUnsupported_old extends TL_messageMediaUnsupported { + public static int constructor = 0x29632a36; - public void readParams(AbstractSerializedData stream, boolean exception) { - bytes = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + bytes = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(bytes); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(bytes); + } + } - public static class TL_messageMediaAudio_layer45 extends MessageMedia { - public static int constructor = 0xc6b68300; + public static class TL_messageMediaAudio_layer45 extends MessageMedia { + public static int constructor = 0xc6b68300; - public void readParams(AbstractSerializedData stream, boolean exception) { - audio_unused = Audio.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + audio_unused = Audio.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - audio_unused.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + audio_unused.serializeToStream(stream); + } + } - public static class TL_messageMediaPhoto_old extends TL_messageMediaPhoto { - public static int constructor = 0xc8c45a2a; + public static class TL_messageMediaPhoto_old extends TL_messageMediaPhoto { + public static int constructor = 0xc8c45a2a; - public void readParams(AbstractSerializedData stream, boolean exception) { - photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - photo.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + photo.serializeToStream(stream); + } + } - public static class TL_messageMediaInvoice extends MessageMedia { - public static int constructor = 0x84551347; + public static class TL_messageMediaInvoice extends MessageMedia { + public static int constructor = 0x84551347; - public WebDocument photo; + public WebDocument photo; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - shipping_address_requested = (flags & 2) != 0; - test = (flags & 8) != 0; - title = stream.readString(exception); - description = stream.readString(exception); - if ((flags & 1) != 0) { - photo = WebDocument.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 4) != 0) { - receipt_msg_id = stream.readInt32(exception); - } - currency = stream.readString(exception); - total_amount = stream.readInt64(exception); - start_param = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + shipping_address_requested = (flags & 2) != 0; + test = (flags & 8) != 0; + title = stream.readString(exception); + description = stream.readString(exception); + if ((flags & 1) != 0) { + photo = WebDocument.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 4) != 0) { + receipt_msg_id = stream.readInt32(exception); + } + currency = stream.readString(exception); + total_amount = stream.readInt64(exception); + start_param = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = shipping_address_requested ? (flags | 2) : (flags &~ 2); - flags = test ? (flags | 8) : (flags &~ 8); - stream.writeInt32(flags); - stream.writeString(title); - stream.writeString(description); - if ((flags & 1) != 0) { - photo.serializeToStream(stream); - } - if ((flags & 4) != 0) { - stream.writeInt32(receipt_msg_id); - } - stream.writeString(currency); - stream.writeInt64(total_amount); - stream.writeString(start_param); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = shipping_address_requested ? (flags | 2) : (flags &~ 2); + flags = test ? (flags | 8) : (flags &~ 8); + stream.writeInt32(flags); + stream.writeString(title); + stream.writeString(description); + if ((flags & 1) != 0) { + photo.serializeToStream(stream); + } + if ((flags & 4) != 0) { + stream.writeInt32(receipt_msg_id); + } + stream.writeString(currency); + stream.writeInt64(total_amount); + stream.writeString(start_param); + } + } - public static class TL_messageMediaUnsupported extends MessageMedia { - public static int constructor = 0x9f84f49e; + public static class TL_messageMediaUnsupported extends MessageMedia { + public static int constructor = 0x9f84f49e; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_messageMediaEmpty extends MessageMedia { - public static int constructor = 0x3ded6320; + public static class TL_messageMediaEmpty extends MessageMedia { + public static int constructor = 0x3ded6320; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_messageMediaVenue extends MessageMedia { - public static int constructor = 0x2ec0533f; + public static class TL_messageMediaVenue extends MessageMedia { + public static int constructor = 0x2ec0533f; - public void readParams(AbstractSerializedData stream, boolean exception) { - geo = GeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); - title = stream.readString(exception); - address = stream.readString(exception); - provider = stream.readString(exception); - venue_id = stream.readString(exception); - venue_type = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + geo = GeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); + title = stream.readString(exception); + address = stream.readString(exception); + provider = stream.readString(exception); + venue_id = stream.readString(exception); + venue_type = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - geo.serializeToStream(stream); - stream.writeString(title); - stream.writeString(address); - stream.writeString(provider); - stream.writeString(venue_id); - stream.writeString(venue_type); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + geo.serializeToStream(stream); + stream.writeString(title); + stream.writeString(address); + stream.writeString(provider); + stream.writeString(venue_id); + stream.writeString(venue_type); + } + } - public static class TL_messageMediaVenue_layer71 extends MessageMedia { - public static int constructor = 0x7912b71f; + public static class TL_messageMediaVenue_layer71 extends MessageMedia { + public static int constructor = 0x7912b71f; - public void readParams(AbstractSerializedData stream, boolean exception) { - geo = GeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); - title = stream.readString(exception); - address = stream.readString(exception); - provider = stream.readString(exception); - venue_id = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + geo = GeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); + title = stream.readString(exception); + address = stream.readString(exception); + provider = stream.readString(exception); + venue_id = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - geo.serializeToStream(stream); - stream.writeString(title); - stream.writeString(address); - stream.writeString(provider); - stream.writeString(venue_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + geo.serializeToStream(stream); + stream.writeString(title); + stream.writeString(address); + stream.writeString(provider); + stream.writeString(venue_id); + } + } - public static class TL_messageMediaVideo_old extends TL_messageMediaVideo_layer45 { - public static int constructor = 0xa2d24290; + public static class TL_messageMediaVideo_old extends TL_messageMediaVideo_layer45 { + public static int constructor = 0xa2d24290; - public void readParams(AbstractSerializedData stream, boolean exception) { - video_unused = Video.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + video_unused = Video.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - video_unused.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + video_unused.serializeToStream(stream); + } + } - public static class TL_messageMediaDocument extends MessageMedia { - public static int constructor = 0x9cb070d7; + public static class TL_messageMediaDocument extends MessageMedia { + public static int constructor = 0x9cb070d7; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - if ((flags & 1) != 0) { - document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); - } else { - document = new TL_documentEmpty(); - } - if ((flags & 4) != 0) { - ttl_seconds = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + if ((flags & 1) != 0) { + document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); + } else { + document = new TL_documentEmpty(); + } + if ((flags & 4) != 0) { + ttl_seconds = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - document.serializeToStream(stream); - } - if ((flags & 4) != 0) { - stream.writeInt32(ttl_seconds); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + document.serializeToStream(stream); + } + if ((flags & 4) != 0) { + stream.writeInt32(ttl_seconds); + } + } + } public static class TL_messageMediaDocument_layer74 extends TL_messageMediaDocument { public static int constructor = 0x7c4414d3; @@ -7234,8 +7251,8 @@ public class TLRPC { if ((flags & 1) != 0) { document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); } else { - document = new TL_documentEmpty(); - } + document = new TL_documentEmpty(); + } if ((flags & 2) != 0) { captionLegacy = stream.readString(exception); } @@ -7259,62 +7276,62 @@ public class TLRPC { } } - public static class TL_messageMediaDocument_old extends TL_messageMediaDocument { - public static int constructor = 0x2fda2204; + public static class TL_messageMediaDocument_old extends TL_messageMediaDocument { + public static int constructor = 0x2fda2204; - public void readParams(AbstractSerializedData stream, boolean exception) { - document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - document.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + document.serializeToStream(stream); + } + } - public static class TL_messageMediaDocument_layer68 extends TL_messageMediaDocument { - public static int constructor = 0xf3e02ea8; + public static class TL_messageMediaDocument_layer68 extends TL_messageMediaDocument { + public static int constructor = 0xf3e02ea8; - public void readParams(AbstractSerializedData stream, boolean exception) { - document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); - captionLegacy = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); + captionLegacy = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - document.serializeToStream(stream); - stream.writeString(captionLegacy); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + document.serializeToStream(stream); + stream.writeString(captionLegacy); + } + } - public static class TL_messageMediaPhoto extends MessageMedia { - public static int constructor = 0x695150d7; + public static class TL_messageMediaPhoto extends MessageMedia { + public static int constructor = 0x695150d7; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - if ((flags & 1) != 0) { - photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - } else { - photo = new TL_photoEmpty(); - } - if ((flags & 4) != 0) { - ttl_seconds = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + if ((flags & 1) != 0) { + photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + } else { + photo = new TL_photoEmpty(); + } + if ((flags & 4) != 0) { + ttl_seconds = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - photo.serializeToStream(stream); - } - if ((flags & 4) != 0) { - stream.writeInt32(ttl_seconds); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + photo.serializeToStream(stream); + } + if ((flags & 4) != 0) { + stream.writeInt32(ttl_seconds); + } + } + } public static class TL_messageMediaPoll extends MessageMedia { public static int constructor = 0x4bd6e798; @@ -7342,8 +7359,8 @@ public class TLRPC { if ((flags & 1) != 0) { photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); } else { - photo = new TL_photoEmpty(); - } + photo = new TL_photoEmpty(); + } if ((flags & 2) != 0) { captionLegacy = stream.readString(exception); } @@ -7397,108 +7414,108 @@ public class TLRPC { } } - public static class TL_messageMediaGeoLive_layer119 extends TL_messageMediaGeoLive { - public static int constructor = 0x7c3c2609; + public static class TL_messageMediaGeoLive_layer119 extends TL_messageMediaGeoLive { + public static int constructor = 0x7c3c2609; - public void readParams(AbstractSerializedData stream, boolean exception) { - geo = GeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); - period = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + geo = GeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); + period = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - geo.serializeToStream(stream); - stream.writeInt32(period); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + geo.serializeToStream(stream); + stream.writeInt32(period); + } + } - public static class TL_messageMediaGame extends MessageMedia { - public static int constructor = 0xfdb19008; + public static class TL_messageMediaGame extends MessageMedia { + public static int constructor = 0xfdb19008; - public void readParams(AbstractSerializedData stream, boolean exception) { - game = TL_game.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + game = TL_game.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - game.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + game.serializeToStream(stream); + } + } - public static class TL_messageMediaContact_layer81 extends TL_messageMediaContact { - public static int constructor = 0x5e7d2f39; + public static class TL_messageMediaContact_layer81 extends TL_messageMediaContact { + public static int constructor = 0x5e7d2f39; - public void readParams(AbstractSerializedData stream, boolean exception) { - phone_number = stream.readString(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - user_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + phone_number = stream.readString(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + user_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(phone_number); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeInt32((int) user_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(phone_number); + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeInt32((int) user_id); + } + } - public static class TL_messageMediaPhoto_layer68 extends TL_messageMediaPhoto { - public static int constructor = 0x3d8ce53d; + public static class TL_messageMediaPhoto_layer68 extends TL_messageMediaPhoto { + public static int constructor = 0x3d8ce53d; - public void readParams(AbstractSerializedData stream, boolean exception) { - photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - captionLegacy = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + captionLegacy = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - photo.serializeToStream(stream); - stream.writeString(captionLegacy); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + photo.serializeToStream(stream); + stream.writeString(captionLegacy); + } + } - public static class TL_messageMediaVideo_layer45 extends MessageMedia { - public static int constructor = 0x5bcf1675; + public static class TL_messageMediaVideo_layer45 extends MessageMedia { + public static int constructor = 0x5bcf1675; - public void readParams(AbstractSerializedData stream, boolean exception) { - video_unused = Video.TLdeserialize(stream, stream.readInt32(exception), exception); - captionLegacy = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + video_unused = Video.TLdeserialize(stream, stream.readInt32(exception), exception); + captionLegacy = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - video_unused.serializeToStream(stream); - stream.writeString(captionLegacy); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + video_unused.serializeToStream(stream); + stream.writeString(captionLegacy); + } + } - public static class TL_messageMediaContact_layer131 extends TL_messageMediaContact { - public static int constructor = 0xcbf24940; + public static class TL_messageMediaContact_layer131 extends TL_messageMediaContact { + public static int constructor = 0xcbf24940; - public void readParams(AbstractSerializedData stream, boolean exception) { - phone_number = stream.readString(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - vcard = stream.readString(exception); - user_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + phone_number = stream.readString(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + vcard = stream.readString(exception); + user_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(phone_number); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeString(vcard); - stream.writeInt32((int) user_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(phone_number); + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeString(vcard); + stream.writeInt32((int) user_id); + } + } public static class TL_messageMediaContact extends MessageMedia { public static int constructor = 0x70322949; @@ -7553,145 +7570,145 @@ public class TLRPC { } } - public static class TL_messageMediaGeo extends MessageMedia { - public static int constructor = 0x56e0d474; + public static class TL_messageMediaGeo extends MessageMedia { + public static int constructor = 0x56e0d474; - public void readParams(AbstractSerializedData stream, boolean exception) { - geo = GeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + geo = GeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - geo.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + geo.serializeToStream(stream); + } + } - public static class TL_messageMediaWebPage extends MessageMedia { - public static int constructor = 0xa32dd600; + public static class TL_messageMediaWebPage extends MessageMedia { + public static int constructor = 0xa32dd600; - public void readParams(AbstractSerializedData stream, boolean exception) { - webpage = WebPage.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + webpage = WebPage.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - webpage.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + webpage.serializeToStream(stream); + } + } - public static abstract class LangPackString extends TLObject { - public int flags; - public String key; - public String zero_value; - public String one_value; - public String two_value; - public String few_value; - public String many_value; - public String other_value; - public String value; + public static abstract class LangPackString extends TLObject { + public int flags; + public String key; + public String zero_value; + public String one_value; + public String two_value; + public String few_value; + public String many_value; + public String other_value; + public String value; - public static LangPackString TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - LangPackString result = null; - switch (constructor) { - case 0x6c47ac9f: - result = new TL_langPackStringPluralized(); - break; - case 0xcad181f6: - result = new TL_langPackString(); - break; - case 0x2979eeb2: - result = new TL_langPackStringDeleted(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in LangPackString", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static LangPackString TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + LangPackString result = null; + switch (constructor) { + case 0x6c47ac9f: + result = new TL_langPackStringPluralized(); + break; + case 0xcad181f6: + result = new TL_langPackString(); + break; + case 0x2979eeb2: + result = new TL_langPackStringDeleted(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in LangPackString", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_langPackStringPluralized extends LangPackString { - public static int constructor = 0x6c47ac9f; + public static class TL_langPackStringPluralized extends LangPackString { + public static int constructor = 0x6c47ac9f; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - key = stream.readString(exception); - if ((flags & 1) != 0) { - zero_value = stream.readString(exception); - } - if ((flags & 2) != 0) { - one_value = stream.readString(exception); - } - if ((flags & 4) != 0) { - two_value = stream.readString(exception); - } - if ((flags & 8) != 0) { - few_value = stream.readString(exception); - } - if ((flags & 16) != 0) { - many_value = stream.readString(exception); - } - other_value = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + key = stream.readString(exception); + if ((flags & 1) != 0) { + zero_value = stream.readString(exception); + } + if ((flags & 2) != 0) { + one_value = stream.readString(exception); + } + if ((flags & 4) != 0) { + two_value = stream.readString(exception); + } + if ((flags & 8) != 0) { + few_value = stream.readString(exception); + } + if ((flags & 16) != 0) { + many_value = stream.readString(exception); + } + other_value = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeString(key); - if ((flags & 1) != 0) { - stream.writeString(zero_value); - } - if ((flags & 2) != 0) { - stream.writeString(one_value); - } - if ((flags & 4) != 0) { - stream.writeString(two_value); - } - if ((flags & 8) != 0) { - stream.writeString(few_value); - } - if ((flags & 16) != 0) { - stream.writeString(many_value); - } - stream.writeString(other_value); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeString(key); + if ((flags & 1) != 0) { + stream.writeString(zero_value); + } + if ((flags & 2) != 0) { + stream.writeString(one_value); + } + if ((flags & 4) != 0) { + stream.writeString(two_value); + } + if ((flags & 8) != 0) { + stream.writeString(few_value); + } + if ((flags & 16) != 0) { + stream.writeString(many_value); + } + stream.writeString(other_value); + } + } - public static class TL_langPackString extends LangPackString { - public static int constructor = 0xcad181f6; + public static class TL_langPackString extends LangPackString { + public static int constructor = 0xcad181f6; - public void readParams(AbstractSerializedData stream, boolean exception) { - key = stream.readString(exception); - value = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + key = stream.readString(exception); + value = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(key); - stream.writeString(value); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(key); + stream.writeString(value); + } + } - public static class TL_langPackStringDeleted extends LangPackString { - public static int constructor = 0x2979eeb2; + public static class TL_langPackStringDeleted extends LangPackString { + public static int constructor = 0x2979eeb2; - public void readParams(AbstractSerializedData stream, boolean exception) { - key = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + key = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(key); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(key); + } + } public static class TL_auth_sentCode extends TLObject { public static int constructor = 0x5e002502; @@ -7741,252 +7758,252 @@ public class TLRPC { } } - public static abstract class BotInlineResult extends TLObject { + public static abstract class BotInlineResult extends TLObject { - public int flags; - public String id; - public String type; - public Photo photo; - public Document document; - public String title; - public String description; - public String url; - public WebDocument thumb; - public WebDocument content; - public BotInlineMessage send_message; - public long query_id; + public int flags; + public String id; + public String type; + public Photo photo; + public Document document; + public String title; + public String description; + public String url; + public WebDocument thumb; + public WebDocument content; + public BotInlineMessage send_message; + public long query_id; - public static BotInlineResult TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - BotInlineResult result = null; - switch (constructor) { - case 0x11965f3a: - result = new TL_botInlineResult(); - break; - case 0x17db940b: - result = new TL_botInlineMediaResult(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in BotInlineResult", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static BotInlineResult TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + BotInlineResult result = null; + switch (constructor) { + case 0x11965f3a: + result = new TL_botInlineResult(); + break; + case 0x17db940b: + result = new TL_botInlineMediaResult(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in BotInlineResult", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_botInlineResult extends BotInlineResult { - public static int constructor = 0x11965f3a; + public static class TL_botInlineResult extends BotInlineResult { + public static int constructor = 0x11965f3a; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - id = stream.readString(exception); - type = stream.readString(exception); - if ((flags & 2) != 0) { - title = stream.readString(exception); - } - if ((flags & 4) != 0) { - description = stream.readString(exception); - } - if ((flags & 8) != 0) { - url = stream.readString(exception); - } - if ((flags & 16) != 0) { - thumb = WebDocument.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 32) != 0) { - content = WebDocument.TLdeserialize(stream, stream.readInt32(exception), exception); - } - send_message = BotInlineMessage.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + id = stream.readString(exception); + type = stream.readString(exception); + if ((flags & 2) != 0) { + title = stream.readString(exception); + } + if ((flags & 4) != 0) { + description = stream.readString(exception); + } + if ((flags & 8) != 0) { + url = stream.readString(exception); + } + if ((flags & 16) != 0) { + thumb = WebDocument.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 32) != 0) { + content = WebDocument.TLdeserialize(stream, stream.readInt32(exception), exception); + } + send_message = BotInlineMessage.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeString(id); - stream.writeString(type); - if ((flags & 2) != 0) { - stream.writeString(title); - } - if ((flags & 4) != 0) { - stream.writeString(description); - } - if ((flags & 8) != 0) { - stream.writeString(url); - } - if ((flags & 16) != 0) { - thumb.serializeToStream(stream); - } - if ((flags & 32) != 0) { - content.serializeToStream(stream); - } - send_message.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeString(id); + stream.writeString(type); + if ((flags & 2) != 0) { + stream.writeString(title); + } + if ((flags & 4) != 0) { + stream.writeString(description); + } + if ((flags & 8) != 0) { + stream.writeString(url); + } + if ((flags & 16) != 0) { + thumb.serializeToStream(stream); + } + if ((flags & 32) != 0) { + content.serializeToStream(stream); + } + send_message.serializeToStream(stream); + } + } - public static class TL_botInlineMediaResult extends BotInlineResult { - public static int constructor = 0x17db940b; + public static class TL_botInlineMediaResult extends BotInlineResult { + public static int constructor = 0x17db940b; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - id = stream.readString(exception); - type = stream.readString(exception); - if ((flags & 1) != 0) { - photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 2) != 0) { - document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 4) != 0) { - title = stream.readString(exception); - } - if ((flags & 8) != 0) { - description = stream.readString(exception); - } - send_message = BotInlineMessage.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + id = stream.readString(exception); + type = stream.readString(exception); + if ((flags & 1) != 0) { + photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 2) != 0) { + document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 4) != 0) { + title = stream.readString(exception); + } + if ((flags & 8) != 0) { + description = stream.readString(exception); + } + send_message = BotInlineMessage.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeString(id); - stream.writeString(type); - if ((flags & 1) != 0) { - photo.serializeToStream(stream); - } - if ((flags & 2) != 0) { - document.serializeToStream(stream); - } - if ((flags & 4) != 0) { - stream.writeString(title); - } - if ((flags & 8) != 0) { - stream.writeString(description); - } - send_message.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeString(id); + stream.writeString(type); + if ((flags & 1) != 0) { + photo.serializeToStream(stream); + } + if ((flags & 2) != 0) { + document.serializeToStream(stream); + } + if ((flags & 4) != 0) { + stream.writeString(title); + } + if ((flags & 8) != 0) { + stream.writeString(description); + } + send_message.serializeToStream(stream); + } + } - public static abstract class PeerNotifySettings extends TLObject { - public int flags; - public int mute_until; - public String sound; - public boolean show_previews; - public int events_mask; - public boolean silent; + public static abstract class PeerNotifySettings extends TLObject { + public int flags; + public int mute_until; + public String sound; + public boolean show_previews; + public int events_mask; + public boolean silent; - public static PeerNotifySettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - PeerNotifySettings result = null; - switch (constructor) { - case 0x9acda4c0: - result = new TL_peerNotifySettings_layer77(); - break; - case 0xaf509d20: - result = new TL_peerNotifySettings(); - break; - case 0x8d5e11ee: - result = new TL_peerNotifySettings_layer47(); - break; - case 0x70a68512: - result = new TL_peerNotifySettingsEmpty_layer77(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in PeerNotifySettings", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static PeerNotifySettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + PeerNotifySettings result = null; + switch (constructor) { + case 0x9acda4c0: + result = new TL_peerNotifySettings_layer77(); + break; + case 0xaf509d20: + result = new TL_peerNotifySettings(); + break; + case 0x8d5e11ee: + result = new TL_peerNotifySettings_layer47(); + break; + case 0x70a68512: + result = new TL_peerNotifySettingsEmpty_layer77(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in PeerNotifySettings", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_peerNotifySettings_layer77 extends TL_peerNotifySettings { - public static int constructor = 0x9acda4c0; + public static class TL_peerNotifySettings_layer77 extends TL_peerNotifySettings { + public static int constructor = 0x9acda4c0; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - show_previews = (flags & 1) != 0; - silent = (flags & 2) != 0; - mute_until = stream.readInt32(exception); - sound = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + show_previews = (flags & 1) != 0; + silent = (flags & 2) != 0; + mute_until = stream.readInt32(exception); + sound = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = show_previews ? (flags | 1) : (flags &~ 1); - flags = silent ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - stream.writeInt32(mute_until); - stream.writeString(sound); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = show_previews ? (flags | 1) : (flags &~ 1); + flags = silent ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + stream.writeInt32(mute_until); + stream.writeString(sound); + } + } - public static class TL_peerNotifySettings extends PeerNotifySettings { - public static int constructor = 0xaf509d20; + public static class TL_peerNotifySettings extends PeerNotifySettings { + public static int constructor = 0xaf509d20; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - if ((flags & 1) != 0) { - show_previews = stream.readBool(exception); - } - if ((flags & 2) != 0) { - silent = stream.readBool(exception); - } - if ((flags & 4) != 0) { - mute_until = stream.readInt32(exception); - } - if ((flags & 8) != 0) { - sound = stream.readString(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + if ((flags & 1) != 0) { + show_previews = stream.readBool(exception); + } + if ((flags & 2) != 0) { + silent = stream.readBool(exception); + } + if ((flags & 4) != 0) { + mute_until = stream.readInt32(exception); + } + if ((flags & 8) != 0) { + sound = stream.readString(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - stream.writeBool(show_previews); - } - if ((flags & 2) != 0) { - stream.writeBool(silent); - } - if ((flags & 4) != 0) { - stream.writeInt32(mute_until); - } - if ((flags & 8) != 0) { - stream.writeString(sound); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + stream.writeBool(show_previews); + } + if ((flags & 2) != 0) { + stream.writeBool(silent); + } + if ((flags & 4) != 0) { + stream.writeInt32(mute_until); + } + if ((flags & 8) != 0) { + stream.writeString(sound); + } + } + } - public static class TL_peerNotifySettings_layer47 extends TL_peerNotifySettings { - public static int constructor = 0x8d5e11ee; + public static class TL_peerNotifySettings_layer47 extends TL_peerNotifySettings { + public static int constructor = 0x8d5e11ee; - public void readParams(AbstractSerializedData stream, boolean exception) { - mute_until = stream.readInt32(exception); - sound = stream.readString(exception); - show_previews = stream.readBool(exception); - events_mask = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + mute_until = stream.readInt32(exception); + sound = stream.readString(exception); + show_previews = stream.readBool(exception); + events_mask = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(mute_until); - stream.writeString(sound); - stream.writeBool(show_previews); - stream.writeInt32(events_mask); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(mute_until); + stream.writeString(sound); + stream.writeBool(show_previews); + stream.writeInt32(events_mask); + } + } - public static class TL_peerNotifySettingsEmpty_layer77 extends PeerNotifySettings { - public static int constructor = 0x70a68512; + public static class TL_peerNotifySettingsEmpty_layer77 extends PeerNotifySettings { + public static int constructor = 0x70a68512; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static abstract class contacts_Blocked extends TLObject { @@ -8167,183 +8184,183 @@ public class TLRPC { } } - public static class TL_inputSecureValue extends TLObject { - public static int constructor = 0xdb21d0a7; + public static class TL_inputSecureValue extends TLObject { + public static int constructor = 0xdb21d0a7; - public int flags; - public SecureValueType type; - public TL_secureData data; - public InputSecureFile front_side; - public InputSecureFile reverse_side; - public InputSecureFile selfie; - public ArrayList translation = new ArrayList<>(); - public ArrayList files = new ArrayList<>(); - public SecurePlainData plain_data; + public int flags; + public SecureValueType type; + public TL_secureData data; + public InputSecureFile front_side; + public InputSecureFile reverse_side; + public InputSecureFile selfie; + public ArrayList translation = new ArrayList<>(); + public ArrayList files = new ArrayList<>(); + public SecurePlainData plain_data; - public static TL_inputSecureValue TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_inputSecureValue.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_inputSecureValue", constructor)); - } else { - return null; - } - } - TL_inputSecureValue result = new TL_inputSecureValue(); - result.readParams(stream, exception); - return result; - } + public static TL_inputSecureValue TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_inputSecureValue.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_inputSecureValue", constructor)); + } else { + return null; + } + } + TL_inputSecureValue result = new TL_inputSecureValue(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 1) != 0) { - data = TL_secureData.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 2) != 0) { - front_side = InputSecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 4) != 0) { - reverse_side = InputSecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 8) != 0) { - selfie = InputSecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 64) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - InputSecureFile object = InputSecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - translation.add(object); - } - } - if ((flags & 16) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - InputSecureFile object = InputSecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - files.add(object); - } - } - if ((flags & 32) != 0) { - plain_data = SecurePlainData.TLdeserialize(stream, stream.readInt32(exception), exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 1) != 0) { + data = TL_secureData.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 2) != 0) { + front_side = InputSecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 4) != 0) { + reverse_side = InputSecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 8) != 0) { + selfie = InputSecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 64) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + InputSecureFile object = InputSecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + translation.add(object); + } + } + if ((flags & 16) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + InputSecureFile object = InputSecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + files.add(object); + } + } + if ((flags & 32) != 0) { + plain_data = SecurePlainData.TLdeserialize(stream, stream.readInt32(exception), exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - type.serializeToStream(stream); - if ((flags & 1) != 0) { - data.serializeToStream(stream); - } - if ((flags & 2) != 0) { - front_side.serializeToStream(stream); - } - if ((flags & 4) != 0) { - reverse_side.serializeToStream(stream); - } - if ((flags & 8) != 0) { - selfie.serializeToStream(stream); - } - if ((flags & 64) != 0) { - stream.writeInt32(0x1cb5c415); - int count = translation.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - translation.get(a).serializeToStream(stream); - } - } - if ((flags & 16) != 0) { - stream.writeInt32(0x1cb5c415); - int count = files.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - files.get(a).serializeToStream(stream); - } - } - if ((flags & 32) != 0) { - plain_data.serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + type.serializeToStream(stream); + if ((flags & 1) != 0) { + data.serializeToStream(stream); + } + if ((flags & 2) != 0) { + front_side.serializeToStream(stream); + } + if ((flags & 4) != 0) { + reverse_side.serializeToStream(stream); + } + if ((flags & 8) != 0) { + selfie.serializeToStream(stream); + } + if ((flags & 64) != 0) { + stream.writeInt32(0x1cb5c415); + int count = translation.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + translation.get(a).serializeToStream(stream); + } + } + if ((flags & 16) != 0) { + stream.writeInt32(0x1cb5c415); + int count = files.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + files.get(a).serializeToStream(stream); + } + } + if ((flags & 32) != 0) { + plain_data.serializeToStream(stream); + } + } + } - public static abstract class messages_DhConfig extends TLObject { - public byte[] random; - public int g; - public byte[] p; - public int version; + public static abstract class messages_DhConfig extends TLObject { + public byte[] random; + public int g; + public byte[] p; + public int version; - public static messages_DhConfig TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_DhConfig result = null; - switch (constructor) { - case 0xc0e24635: - result = new TL_messages_dhConfigNotModified(); - break; - case 0x2c221edd: - result = new TL_messages_dhConfig(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_DhConfig", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static messages_DhConfig TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_DhConfig result = null; + switch (constructor) { + case 0xc0e24635: + result = new TL_messages_dhConfigNotModified(); + break; + case 0x2c221edd: + result = new TL_messages_dhConfig(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_DhConfig", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messages_dhConfigNotModified extends messages_DhConfig { - public static int constructor = 0xc0e24635; + public static class TL_messages_dhConfigNotModified extends messages_DhConfig { + public static int constructor = 0xc0e24635; - public void readParams(AbstractSerializedData stream, boolean exception) { - random = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + random = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(random); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(random); + } + } - public static class TL_messages_dhConfig extends messages_DhConfig { - public static int constructor = 0x2c221edd; + public static class TL_messages_dhConfig extends messages_DhConfig { + public static int constructor = 0x2c221edd; - public void readParams(AbstractSerializedData stream, boolean exception) { - g = stream.readInt32(exception); - p = stream.readByteArray(exception); - version = stream.readInt32(exception); - random = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + g = stream.readInt32(exception); + p = stream.readByteArray(exception); + version = stream.readInt32(exception); + random = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(g); - stream.writeByteArray(p); - stream.writeInt32(version); - stream.writeByteArray(random); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(g); + stream.writeByteArray(p); + stream.writeInt32(version); + stream.writeByteArray(random); + } + } public static class TL_globalPrivacySettings extends TLObject { public static int constructor = 0xbea2f424; @@ -8454,36 +8471,36 @@ public class TLRPC { } } - public static class TL_secureValueHash extends TLObject { - public static int constructor = 0xed1ecdb0; + public static class TL_secureValueHash extends TLObject { + public static int constructor = 0xed1ecdb0; - public SecureValueType type; - public byte[] hash; + public SecureValueType type; + public byte[] hash; - public static TL_secureValueHash TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_secureValueHash.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_secureValueHash", constructor)); - } else { - return null; - } - } - TL_secureValueHash result = new TL_secureValueHash(); - result.readParams(stream, exception); - return result; - } + public static TL_secureValueHash TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_secureValueHash.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_secureValueHash", constructor)); + } else { + return null; + } + } + TL_secureValueHash result = new TL_secureValueHash(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - hash = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + hash = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeByteArray(hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeByteArray(hash); + } + } public static class TL_messageReactionsList extends TLObject { public static int constructor = 0xe3ae6108; @@ -8567,79 +8584,96 @@ public class TLRPC { } } - public static class TL_messages_stickerSet extends TLObject { - public static int constructor = 0xb60a24a6; + public static abstract class messages_StickerSet extends TLObject { - public StickerSet set; - public ArrayList packs = new ArrayList<>(); - public ArrayList documents = new ArrayList<>(); + public StickerSet set; + public ArrayList packs = new ArrayList<>(); + public ArrayList documents = new ArrayList<>(); - public static TL_messages_stickerSet TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_stickerSet.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_stickerSet", constructor)); - } else { - return null; - } - } - TL_messages_stickerSet result = new TL_messages_stickerSet(); - result.readParams(stream, exception); - return result; - } + public static TL_messages_stickerSet TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + TL_messages_stickerSet result = null; + switch (constructor) { + case 0xb60a24a6: + result = new TL_messages_stickerSet(); + break; + case 0xd3f924eb: + result = new TL_messages_stickerSetNotModified(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_StickerSet", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public void readParams(AbstractSerializedData stream, boolean exception) { - set = StickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_stickerPack object = TL_stickerPack.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - packs.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Document object = Document.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - documents.add(object); - } - } + public static class TL_messages_stickerSet extends messages_StickerSet { + public static int constructor = 0xb60a24a6; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - set.serializeToStream(stream); + public void readParams(AbstractSerializedData stream, boolean exception) { + set = StickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_stickerPack object = TL_stickerPack.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + packs.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Document object = Document.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + documents.add(object); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + set.serializeToStream(stream); stream.writeInt32(0x1cb5c415); - int count = packs.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - packs.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = documents.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - documents.get(a).serializeToStream(stream); - } - } - } + int count = packs.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + packs.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = documents.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + documents.get(a).serializeToStream(stream); + } + } + } - public static abstract class InputGeoPoint extends TLObject { + public static class TL_messages_stickerSetNotModified extends TL_messages_stickerSet { + public static int constructor = 0xd3f924eb; + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } + + public static abstract class InputGeoPoint extends TLObject { public int flags; public double lat; @@ -8647,24 +8681,24 @@ public class TLRPC { public int accuracy_radius; public static InputGeoPoint TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - InputGeoPoint result = null; - switch (constructor) { + InputGeoPoint result = null; + switch (constructor) { case 0x48222faf: result = new TL_inputGeoPoint(); break; - case 0xe4c123d6: - result = new TL_inputGeoPointEmpty(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in InputGeoPoint", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0xe4c123d6: + result = new TL_inputGeoPointEmpty(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in InputGeoPoint", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } public static class TL_inputGeoPoint extends InputGeoPoint { public static int constructor = 0x48222faf; @@ -8690,207 +8724,207 @@ public class TLRPC { } } - public static class TL_inputGeoPointEmpty extends InputGeoPoint { - public static int constructor = 0xe4c123d6; + public static class TL_inputGeoPointEmpty extends InputGeoPoint { + public static int constructor = 0xe4c123d6; - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - } - } + } + } - public static class TL_help_inviteText extends TLObject { - public static int constructor = 0x18cb9f78; + public static class TL_help_inviteText extends TLObject { + public static int constructor = 0x18cb9f78; - public String message; + public String message; - public static TL_help_inviteText TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_help_inviteText.constructor != constructor) { - if (exception) { + public static TL_help_inviteText TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_help_inviteText.constructor != constructor) { + if (exception) { throw new RuntimeException(String.format("can't parse magic %x in TL_help_inviteText", constructor)); - } else { + } else { return null; - } - } + } + } TL_help_inviteText result = new TL_help_inviteText(); - result.readParams(stream, exception); - return result; - } + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - message = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + message = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - stream.writeString(message); - } - } + stream.writeString(message); + } + } - public static abstract class Audio extends TLObject { - public long id; - public long access_hash; - public int date; - public int duration; - public String mime_type; - public int size; - public int dc_id; - public long user_id; - public byte[] key; - public byte[] iv; + public static abstract class Audio extends TLObject { + public long id; + public long access_hash; + public int date; + public int duration; + public String mime_type; + public int size; + public int dc_id; + public long user_id; + public byte[] key; + public byte[] iv; - public static Audio TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - Audio result = null; - switch (constructor) { - case 0x586988d8: - result = new TL_audioEmpty_layer45(); - break; - case 0xf9e35055: - result = new TL_audio_layer45(); - break; - case 0x427425e7: - result = new TL_audio_old(); - break; - case 0x555555F6: - result = new TL_audioEncrypted(); - break; - case 0xc7ac6496: - result = new TL_audio_old2(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in Audio", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static Audio TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + Audio result = null; + switch (constructor) { + case 0x586988d8: + result = new TL_audioEmpty_layer45(); + break; + case 0xf9e35055: + result = new TL_audio_layer45(); + break; + case 0x427425e7: + result = new TL_audio_old(); + break; + case 0x555555F6: + result = new TL_audioEncrypted(); + break; + case 0xc7ac6496: + result = new TL_audio_old2(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in Audio", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_audioEmpty_layer45 extends Audio { - public static int constructor = 0x586988d8; + public static class TL_audioEmpty_layer45 extends Audio { + public static int constructor = 0x586988d8; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + } + } - public static class TL_audio_layer45 extends Audio { - public static int constructor = 0xf9e35055; + public static class TL_audio_layer45 extends Audio { + public static int constructor = 0xf9e35055; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); - duration = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - dc_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + date = stream.readInt32(exception); + duration = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + dc_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32(date); - stream.writeInt32(duration); - stream.writeString(mime_type); - stream.writeInt32(size); - stream.writeInt32(dc_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32(date); + stream.writeInt32(duration); + stream.writeString(mime_type); + stream.writeInt32(size); + stream.writeInt32(dc_id); + } + } - public static class TL_audio_old extends TL_audio_layer45 { - public static int constructor = 0x427425e7; + public static class TL_audio_old extends TL_audio_layer45 { + public static int constructor = 0x427425e7; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - user_id = stream.readInt32(exception); - date = stream.readInt32(exception); - duration = stream.readInt32(exception); - size = stream.readInt32(exception); - dc_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + user_id = stream.readInt32(exception); + date = stream.readInt32(exception); + duration = stream.readInt32(exception); + size = stream.readInt32(exception); + dc_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32((int) user_id); - stream.writeInt32(date); - stream.writeInt32(duration); - stream.writeInt32(size); - stream.writeInt32(dc_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32((int) user_id); + stream.writeInt32(date); + stream.writeInt32(duration); + stream.writeInt32(size); + stream.writeInt32(dc_id); + } + } - public static class TL_audioEncrypted extends TL_audio_layer45 { - public static int constructor = 0x555555F6; + public static class TL_audioEncrypted extends TL_audio_layer45 { + public static int constructor = 0x555555F6; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - user_id = stream.readInt32(exception); - date = stream.readInt32(exception); - duration = stream.readInt32(exception); - size = stream.readInt32(exception); - dc_id = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + user_id = stream.readInt32(exception); + date = stream.readInt32(exception); + duration = stream.readInt32(exception); + size = stream.readInt32(exception); + dc_id = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32((int) user_id); - stream.writeInt32(date); - stream.writeInt32(duration); - stream.writeInt32(size); - stream.writeInt32(dc_id); - stream.writeByteArray(key); - stream.writeByteArray(iv); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32((int) user_id); + stream.writeInt32(date); + stream.writeInt32(duration); + stream.writeInt32(size); + stream.writeInt32(dc_id); + stream.writeByteArray(key); + stream.writeByteArray(iv); + } + } - public static class TL_audio_old2 extends TL_audio_layer45 { - public static int constructor = 0xc7ac6496; + public static class TL_audio_old2 extends TL_audio_layer45 { + public static int constructor = 0xc7ac6496; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - user_id = stream.readInt32(exception); - date = stream.readInt32(exception); - duration = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - dc_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + user_id = stream.readInt32(exception); + date = stream.readInt32(exception); + duration = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + dc_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32((int) user_id); - stream.writeInt32(date); - stream.writeInt32(duration); - stream.writeString(mime_type); - stream.writeInt32(size); - stream.writeInt32(dc_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32((int) user_id); + stream.writeInt32(date); + stream.writeInt32(duration); + stream.writeString(mime_type); + stream.writeInt32(size); + stream.writeInt32(dc_id); + } + } public static class TL_help_country extends TLObject { public static int constructor = 0xc3878e23; @@ -8958,69 +8992,69 @@ public class TLRPC { } } - public static abstract class SecurePasswordKdfAlgo extends TLObject { + public static abstract class SecurePasswordKdfAlgo extends TLObject { - public static SecurePasswordKdfAlgo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - SecurePasswordKdfAlgo result = null; - switch (constructor) { - case 0xbbf2dda0: - result = new TL_securePasswordKdfAlgoPBKDF2HMACSHA512iter100000(); - break; - case 0x86471d92: - result = new TL_securePasswordKdfAlgoSHA512(); - break; - case 0x4a8537: - result = new TL_securePasswordKdfAlgoUnknown(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in SecurePasswordKdfAlgo", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static SecurePasswordKdfAlgo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + SecurePasswordKdfAlgo result = null; + switch (constructor) { + case 0xbbf2dda0: + result = new TL_securePasswordKdfAlgoPBKDF2HMACSHA512iter100000(); + break; + case 0x86471d92: + result = new TL_securePasswordKdfAlgoSHA512(); + break; + case 0x4a8537: + result = new TL_securePasswordKdfAlgoUnknown(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in SecurePasswordKdfAlgo", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 extends SecurePasswordKdfAlgo { - public static int constructor = 0xbbf2dda0; + public static class TL_securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 extends SecurePasswordKdfAlgo { + public static int constructor = 0xbbf2dda0; - public byte[] salt; + public byte[] salt; - public void readParams(AbstractSerializedData stream, boolean exception) { - salt = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + salt = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(salt); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(salt); + } + } - public static class TL_securePasswordKdfAlgoSHA512 extends SecurePasswordKdfAlgo { - public static int constructor = 0x86471d92; + public static class TL_securePasswordKdfAlgoSHA512 extends SecurePasswordKdfAlgo { + public static int constructor = 0x86471d92; - public byte[] salt; + public byte[] salt; - public void readParams(AbstractSerializedData stream, boolean exception) { - salt = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + salt = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(salt); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(salt); + } + } - public static class TL_securePasswordKdfAlgoUnknown extends SecurePasswordKdfAlgo { - public static int constructor = 0x4a8537; + public static class TL_securePasswordKdfAlgoUnknown extends SecurePasswordKdfAlgo { + public static int constructor = 0x4a8537; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messages_historyImport extends TLObject { public static int constructor = 0x1662af0b; @@ -9050,124 +9084,124 @@ public class TLRPC { } } - public static abstract class BotInfo extends TLObject { - public long user_id; - public String description; - public ArrayList commands = new ArrayList<>(); - public int version; + public static abstract class BotInfo extends TLObject { + public long user_id; + public String description; + public ArrayList commands = new ArrayList<>(); + public int version; - public static BotInfo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - BotInfo result = null; - switch (constructor) { - case 0xbb2e37ce: - result = new TL_botInfoEmpty_layer48(); - break; - case 0x98e81d3a: - result = new TL_botInfo_layer131(); - break; - case 0x9cf585d: - result = new TL_botInfo_layer48(); - break; + public static BotInfo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + BotInfo result = null; + switch (constructor) { + case 0xbb2e37ce: + result = new TL_botInfoEmpty_layer48(); + break; + case 0x98e81d3a: + result = new TL_botInfo_layer131(); + break; + case 0x9cf585d: + result = new TL_botInfo_layer48(); + break; case 0x1b74b335: result = new TL_botInfo(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in BotInfo", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in BotInfo", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_botInfoEmpty_layer48 extends TL_botInfo { - public static int constructor = 0xbb2e37ce; + public static class TL_botInfoEmpty_layer48 extends TL_botInfo { + public static int constructor = 0xbb2e37ce; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_botInfo_layer131 extends TL_botInfo { - public static int constructor = 0x98e81d3a; + public static class TL_botInfo_layer131 extends TL_botInfo { + public static int constructor = 0x98e81d3a; - public void readParams(AbstractSerializedData stream, boolean exception) { - user_id = stream.readInt32(exception); - description = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_botCommand object = TL_botCommand.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - commands.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + user_id = stream.readInt32(exception); + description = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_botCommand object = TL_botCommand.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + commands.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) user_id); - stream.writeString(description); - stream.writeInt32(0x1cb5c415); - int count = commands.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - commands.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) user_id); + stream.writeString(description); + stream.writeInt32(0x1cb5c415); + int count = commands.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + commands.get(a).serializeToStream(stream); + } + } + } - public static class TL_botInfo_layer48 extends TL_botInfo { - public static int constructor = 0x9cf585d; + public static class TL_botInfo_layer48 extends TL_botInfo { + public static int constructor = 0x9cf585d; - public void readParams(AbstractSerializedData stream, boolean exception) { - user_id = stream.readInt32(exception); - version = stream.readInt32(exception); - stream.readString(exception); - description = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_botCommand object = TL_botCommand.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - commands.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + user_id = stream.readInt32(exception); + version = stream.readInt32(exception); + stream.readString(exception); + description = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_botCommand object = TL_botCommand.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + commands.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) user_id); - stream.writeInt32(version); - stream.writeString(""); - stream.writeString(description); - stream.writeInt32(0x1cb5c415); - int count = commands.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - commands.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) user_id); + stream.writeInt32(version); + stream.writeString(""); + stream.writeString(description); + stream.writeInt32(0x1cb5c415); + int count = commands.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + commands.get(a).serializeToStream(stream); + } + } + } public static class TL_botInfo extends BotInfo { public static int constructor = 0x1b74b335; @@ -9206,63 +9240,63 @@ public class TLRPC { } } - public static abstract class InputGame extends TLObject { - public InputUser bot_id; - public String short_name; - public long id; - public long access_hash; + public static abstract class InputGame extends TLObject { + public InputUser bot_id; + public String short_name; + public long id; + public long access_hash; - public static InputGame TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - InputGame result = null; - switch (constructor) { - case 0xc331e80a: - result = new TL_inputGameShortName(); - break; - case 0x32c3e77: - result = new TL_inputGameID(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in InputGame", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static InputGame TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + InputGame result = null; + switch (constructor) { + case 0xc331e80a: + result = new TL_inputGameShortName(); + break; + case 0x32c3e77: + result = new TL_inputGameID(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in InputGame", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_inputGameShortName extends InputGame { - public static int constructor = 0xc331e80a; + public static class TL_inputGameShortName extends InputGame { + public static int constructor = 0xc331e80a; - public void readParams(AbstractSerializedData stream, boolean exception) { - bot_id = InputUser.TLdeserialize(stream, stream.readInt32(exception), exception); - short_name = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + bot_id = InputUser.TLdeserialize(stream, stream.readInt32(exception), exception); + short_name = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - bot_id.serializeToStream(stream); - stream.writeString(short_name); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + bot_id.serializeToStream(stream); + stream.writeString(short_name); + } + } - public static class TL_inputGameID extends InputGame { - public static int constructor = 0x32c3e77; + public static class TL_inputGameID extends InputGame { + public static int constructor = 0x32c3e77; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + } + } public static abstract class MessageReplies extends TLObject { @@ -9842,178 +9876,178 @@ public class TLRPC { } } - public static abstract class contacts_Contacts extends TLObject { - public ArrayList contacts = new ArrayList<>(); - public int saved_count; - public ArrayList users = new ArrayList<>(); + public static abstract class contacts_Contacts extends TLObject { + public ArrayList contacts = new ArrayList<>(); + public int saved_count; + public ArrayList users = new ArrayList<>(); - public static contacts_Contacts TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - contacts_Contacts result = null; - switch (constructor) { - case 0xb74ba9d2: - result = new TL_contacts_contactsNotModified(); - break; - case 0xeae87e42: - result = new TL_contacts_contacts(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in contacts_Contacts", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static contacts_Contacts TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + contacts_Contacts result = null; + switch (constructor) { + case 0xb74ba9d2: + result = new TL_contacts_contactsNotModified(); + break; + case 0xeae87e42: + result = new TL_contacts_contacts(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in contacts_Contacts", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_contacts_contactsNotModified extends contacts_Contacts { - public static int constructor = 0xb74ba9d2; + public static class TL_contacts_contactsNotModified extends contacts_Contacts { + public static int constructor = 0xb74ba9d2; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_contacts_contacts extends contacts_Contacts { - public static int constructor = 0xeae87e42; + public static class TL_contacts_contacts extends contacts_Contacts { + public static int constructor = 0xeae87e42; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_contact object = TL_contact.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - contacts.add(object); - } - saved_count = stream.readInt32(exception); - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_contact object = TL_contact.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + contacts.add(object); + } + saved_count = stream.readInt32(exception); + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = contacts.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - contacts.get(a).serializeToStream(stream); - } - stream.writeInt32(saved_count); - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = contacts.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + contacts.get(a).serializeToStream(stream); + } + stream.writeInt32(saved_count); + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } - public static abstract class SecureRequiredType extends TLObject { + public static abstract class SecureRequiredType extends TLObject { - public static SecureRequiredType TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - SecureRequiredType result = null; - switch (constructor) { - case 0x829d99da: - result = new TL_secureRequiredType(); - break; - case 0x27477b4: - result = new TL_secureRequiredTypeOneOf(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in SecureRequiredType", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static SecureRequiredType TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + SecureRequiredType result = null; + switch (constructor) { + case 0x829d99da: + result = new TL_secureRequiredType(); + break; + case 0x27477b4: + result = new TL_secureRequiredTypeOneOf(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in SecureRequiredType", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_secureRequiredType extends SecureRequiredType { - public static int constructor = 0x829d99da; + public static class TL_secureRequiredType extends SecureRequiredType { + public static int constructor = 0x829d99da; - public int flags; - public boolean native_names; - public boolean selfie_required; - public boolean translation_required; - public SecureValueType type; + public int flags; + public boolean native_names; + public boolean selfie_required; + public boolean translation_required; + public SecureValueType type; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - native_names = (flags & 1) != 0; - selfie_required = (flags & 2) != 0; - translation_required = (flags & 4) != 0; - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + native_names = (flags & 1) != 0; + selfie_required = (flags & 2) != 0; + translation_required = (flags & 4) != 0; + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = native_names ? (flags | 1) : (flags &~ 1); - flags = selfie_required ? (flags | 2) : (flags &~ 2); - flags = translation_required ? (flags | 4) : (flags &~ 4); - stream.writeInt32(flags); - type.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = native_names ? (flags | 1) : (flags &~ 1); + flags = selfie_required ? (flags | 2) : (flags &~ 2); + flags = translation_required ? (flags | 4) : (flags &~ 4); + stream.writeInt32(flags); + type.serializeToStream(stream); + } + } - public static class TL_secureRequiredTypeOneOf extends SecureRequiredType { - public static int constructor = 0x27477b4; + public static class TL_secureRequiredTypeOneOf extends SecureRequiredType { + public static int constructor = 0x27477b4; - public ArrayList types = new ArrayList<>(); + public ArrayList types = new ArrayList<>(); - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - SecureRequiredType object = SecureRequiredType.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - types.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + SecureRequiredType object = SecureRequiredType.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + types.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = types.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - types.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = types.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + types.get(a).serializeToStream(stream); + } + } + } public static abstract class InputPrivacyKey extends TLObject { @@ -10280,137 +10314,137 @@ public class TLRPC { } } - public static abstract class photos_Photos extends TLObject { - public ArrayList photos = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); - public int count; + public static abstract class photos_Photos extends TLObject { + public ArrayList photos = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); + public int count; - public static photos_Photos TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - photos_Photos result = null; - switch (constructor) { - case 0x8dca6aa5: - result = new TL_photos_photos(); - break; - case 0x15051f54: - result = new TL_photos_photosSlice(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in photos_Photos", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static photos_Photos TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + photos_Photos result = null; + switch (constructor) { + case 0x8dca6aa5: + result = new TL_photos_photos(); + break; + case 0x15051f54: + result = new TL_photos_photosSlice(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in photos_Photos", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_photos_photos extends photos_Photos { - public static int constructor = 0x8dca6aa5; + public static class TL_photos_photos extends photos_Photos { + public static int constructor = 0x8dca6aa5; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Photo object = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - photos.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = photos.size(); - stream.writeInt32(count); + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); for (int a = 0; a < count; a++) { - photos.get(a).serializeToStream(stream); + Photo object = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + photos.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = photos.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + photos.get(a).serializeToStream(stream); } stream.writeInt32(0x1cb5c415); count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } - public static class TL_photos_photosSlice extends photos_Photos { - public static int constructor = 0x15051f54; + public static class TL_photos_photosSlice extends photos_Photos { + public static int constructor = 0x15051f54; - public void readParams(AbstractSerializedData stream, boolean exception) { - count = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + public void readParams(AbstractSerializedData stream, boolean exception) { + count = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); } return; - } - int count = stream.readInt32(exception); + } + int count = stream.readInt32(exception); for (int a = 0; a < count; a++) { Photo object = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; + if (object == null) { + return; } photos.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(count); - stream.writeInt32(0x1cb5c415); - int count = photos.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(count); + stream.writeInt32(0x1cb5c415); + int count = photos.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { photos.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); + } + stream.writeInt32(0x1cb5c415); count = users.size(); stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); } } } @@ -14808,61 +14842,61 @@ public class TLRPC { } } - public static class TL_inputPeerNotifySettings extends TLObject { - public static int constructor = 0x9c3d198e; + public static class TL_inputPeerNotifySettings extends TLObject { + public static int constructor = 0x9c3d198e; - public int flags; - public boolean show_previews; - public boolean silent; - public int mute_until; - public String sound; + public int flags; + public boolean show_previews; + public boolean silent; + public int mute_until; + public String sound; - public static TL_inputPeerNotifySettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_inputPeerNotifySettings.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_inputPeerNotifySettings", constructor)); - } else { - return null; - } - } - TL_inputPeerNotifySettings result = new TL_inputPeerNotifySettings(); - result.readParams(stream, exception); - return result; - } + public static TL_inputPeerNotifySettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_inputPeerNotifySettings.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_inputPeerNotifySettings", constructor)); + } else { + return null; + } + } + TL_inputPeerNotifySettings result = new TL_inputPeerNotifySettings(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - if ((flags & 1) != 0) { - show_previews = stream.readBool(exception); - } - if ((flags & 2) != 0) { - silent = stream.readBool(exception); - } - if ((flags & 4) != 0) { - mute_until = stream.readInt32(exception); - } - if ((flags & 8) != 0) { - sound = stream.readString(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + if ((flags & 1) != 0) { + show_previews = stream.readBool(exception); + } + if ((flags & 2) != 0) { + silent = stream.readBool(exception); + } + if ((flags & 4) != 0) { + mute_until = stream.readInt32(exception); + } + if ((flags & 8) != 0) { + sound = stream.readString(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - stream.writeBool(show_previews); - } - if ((flags & 2) != 0) { - stream.writeBool(silent); - } - if ((flags & 4) != 0) { - stream.writeInt32(mute_until); - } - if ((flags & 8) != 0) { - stream.writeString(sound); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + stream.writeBool(show_previews); + } + if ((flags & 2) != 0) { + stream.writeBool(silent); + } + if ((flags & 4) != 0) { + stream.writeInt32(mute_until); + } + if ((flags & 8) != 0) { + stream.writeString(sound); + } + } + } public static abstract class auth_LoginToken extends TLObject { @@ -15081,27 +15115,27 @@ public class TLRPC { } } - public static class TL_null extends TLObject { - public static int constructor = 0x56730bcc; + public static class TL_null extends TLObject { + public static int constructor = 0x56730bcc; - public static TL_null TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_null.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_null", constructor)); - } else { - return null; - } - } - TL_null result = new TL_null(); - result.readParams(stream, exception); - return result; + public static TL_null TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_null.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_null", constructor)); + } else { + return null; + } + } + TL_null result = new TL_null(); + result.readParams(stream, exception); + return result; } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + stream.writeInt32(constructor); + } + } public static abstract class Page extends TLObject { @@ -15621,58 +15655,58 @@ public class TLRPC { } } - public static class TL_topPeerCategoryPeers extends TLObject { - public static int constructor = 0xfb834291; + public static class TL_topPeerCategoryPeers extends TLObject { + public static int constructor = 0xfb834291; - public TopPeerCategory category; - public int count; - public ArrayList peers = new ArrayList<>(); + public TopPeerCategory category; + public int count; + public ArrayList peers = new ArrayList<>(); - public static TL_topPeerCategoryPeers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_topPeerCategoryPeers.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_topPeerCategoryPeers", constructor)); - } else { - return null; - } - } - TL_topPeerCategoryPeers result = new TL_topPeerCategoryPeers(); - result.readParams(stream, exception); - return result; - } + public static TL_topPeerCategoryPeers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_topPeerCategoryPeers.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_topPeerCategoryPeers", constructor)); + } else { + return null; + } + } + TL_topPeerCategoryPeers result = new TL_topPeerCategoryPeers(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - category = TopPeerCategory.TLdeserialize(stream, stream.readInt32(exception), exception); - count = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_topPeer object = TL_topPeer.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - peers.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + category = TopPeerCategory.TLdeserialize(stream, stream.readInt32(exception), exception); + count = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_topPeer object = TL_topPeer.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + peers.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - category.serializeToStream(stream); - stream.writeInt32(count); - stream.writeInt32(0x1cb5c415); - int count = peers.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - peers.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + category.serializeToStream(stream); + stream.writeInt32(count); + stream.writeInt32(0x1cb5c415); + int count = peers.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + peers.get(a).serializeToStream(stream); + } + } + } public static abstract class InputUser extends TLObject { @@ -15759,38 +15793,38 @@ public class TLRPC { } } - public static abstract class KeyboardButton extends TLObject { - public String text; - public String url; - public int flags; - public boolean same_peer; - public String query; - public byte[] data; - public int button_id; + public static abstract class KeyboardButton extends TLObject { + public String text; + public String url; + public int flags; + public boolean same_peer; + public String query; + public byte[] data; + public int button_id; public boolean request_write_access; public InputUser bot; public String fwd_text; public boolean quiz; public boolean requires_password; - public static KeyboardButton TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - KeyboardButton result = null; - switch (constructor) { - case 0xb16a6c29: - result = new TL_keyboardButtonRequestPhone(); - break; - case 0x50f41ccf: - result = new TL_keyboardButtonGame(); - break; - case 0x258aff05: - result = new TL_keyboardButtonUrl(); - break; - case 0x568a748: - result = new TL_keyboardButtonSwitchInline(); - break; - case 0xfc796b3f: - result = new TL_keyboardButtonRequestGeoLocation(); - break; + public static KeyboardButton TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + KeyboardButton result = null; + switch (constructor) { + case 0xb16a6c29: + result = new TL_keyboardButtonRequestPhone(); + break; + case 0x50f41ccf: + result = new TL_keyboardButtonGame(); + break; + case 0x258aff05: + result = new TL_keyboardButtonUrl(); + break; + case 0x568a748: + result = new TL_keyboardButtonSwitchInline(); + break; + case 0xfc796b3f: + result = new TL_keyboardButtonRequestGeoLocation(); + break; case 0x10b78d29: result = new TL_keyboardButtonUrlAuth(); break; @@ -15800,106 +15834,106 @@ public class TLRPC { case 0xbbc7515d: result = new TL_keyboardButtonRequestPoll(); break; - case 0xafd93fbb: - result = new TL_keyboardButtonBuy(); - break; - case 0x683a5e46: - result = new TL_keyboardButtonCallback_layer117(); - break; - case 0xa2fa4880: - result = new TL_keyboardButton(); - break; + case 0xafd93fbb: + result = new TL_keyboardButtonBuy(); + break; + case 0x683a5e46: + result = new TL_keyboardButtonCallback_layer117(); + break; + case 0xa2fa4880: + result = new TL_keyboardButton(); + break; case 0x35bbdb6b: result = new TL_keyboardButtonCallback(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in KeyboardButton", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in KeyboardButton", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_keyboardButtonRequestPhone extends KeyboardButton { - public static int constructor = 0xb16a6c29; + public static class TL_keyboardButtonRequestPhone extends KeyboardButton { + public static int constructor = 0xb16a6c29; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(text); + } + } - public static class TL_keyboardButtonGame extends KeyboardButton { - public static int constructor = 0x50f41ccf; + public static class TL_keyboardButtonGame extends KeyboardButton { + public static int constructor = 0x50f41ccf; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(text); + } + } - public static class TL_keyboardButtonUrl extends KeyboardButton { - public static int constructor = 0x258aff05; + public static class TL_keyboardButtonUrl extends KeyboardButton { + public static int constructor = 0x258aff05; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = stream.readString(exception); - url = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = stream.readString(exception); + url = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(text); - stream.writeString(url); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(text); + stream.writeString(url); + } + } - public static class TL_keyboardButtonSwitchInline extends KeyboardButton { - public static int constructor = 0x568a748; + public static class TL_keyboardButtonSwitchInline extends KeyboardButton { + public static int constructor = 0x568a748; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - same_peer = (flags & 1) != 0; - text = stream.readString(exception); - query = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + same_peer = (flags & 1) != 0; + text = stream.readString(exception); + query = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = same_peer ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeString(text); - stream.writeString(query); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = same_peer ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeString(text); + stream.writeString(query); + } + } - public static class TL_keyboardButtonRequestGeoLocation extends KeyboardButton { - public static int constructor = 0xfc796b3f; + public static class TL_keyboardButtonRequestGeoLocation extends KeyboardButton { + public static int constructor = 0xfc796b3f; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(text); + } + } public static class TL_keyboardButtonUrlAuth extends KeyboardButton { public static int constructor = 0x10b78d29; @@ -15977,19 +16011,19 @@ public class TLRPC { } } - public static class TL_keyboardButtonBuy extends KeyboardButton { - public static int constructor = 0xafd93fbb; + public static class TL_keyboardButtonBuy extends KeyboardButton { + public static int constructor = 0xafd93fbb; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(text); + } + } public static class TL_keyboardButtonCallback extends KeyboardButton { public static int constructor = 0x35bbdb6b; @@ -16011,35 +16045,35 @@ public class TLRPC { } } - public static class TL_keyboardButtonCallback_layer117 extends TL_keyboardButtonCallback { - public static int constructor = 0x683a5e46; + public static class TL_keyboardButtonCallback_layer117 extends TL_keyboardButtonCallback { + public static int constructor = 0x683a5e46; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = stream.readString(exception); - data = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = stream.readString(exception); + data = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(text); - stream.writeByteArray(data); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(text); + stream.writeByteArray(data); + } + } - public static class TL_keyboardButton extends KeyboardButton { - public static int constructor = 0xa2fa4880; + public static class TL_keyboardButton extends KeyboardButton { + public static int constructor = 0xa2fa4880; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(text); + } + } public static abstract class VideoSize extends TLObject { @@ -16597,92 +16631,92 @@ public class TLRPC { } } - public static class TL_keyboardButtonRow extends TLObject { - public static int constructor = 0x77608b83; + public static class TL_keyboardButtonRow extends TLObject { + public static int constructor = 0x77608b83; - public ArrayList buttons = new ArrayList<>(); + public ArrayList buttons = new ArrayList<>(); - public static TL_keyboardButtonRow TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_keyboardButtonRow.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_keyboardButtonRow", constructor)); - } else { - return null; - } - } - TL_keyboardButtonRow result = new TL_keyboardButtonRow(); - result.readParams(stream, exception); - return result; - } + public static TL_keyboardButtonRow TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_keyboardButtonRow.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_keyboardButtonRow", constructor)); + } else { + return null; + } + } + TL_keyboardButtonRow result = new TL_keyboardButtonRow(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - KeyboardButton object = KeyboardButton.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - buttons.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + KeyboardButton object = KeyboardButton.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + buttons.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = buttons.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - buttons.get(a).serializeToStream(stream); - } - } - } + stream.writeInt32(0x1cb5c415); + int count = buttons.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + buttons.get(a).serializeToStream(stream); + } + } + } - public static abstract class Bool extends TLObject { + public static abstract class Bool extends TLObject { - public static Bool TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - Bool result = null; - switch (constructor) { - case 0x997275b5: - result = new TL_boolTrue(); + public static Bool TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + Bool result = null; + switch (constructor) { + case 0x997275b5: + result = new TL_boolTrue(); break; case 0xbc799737: - result = new TL_boolFalse(); + result = new TL_boolFalse(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in Bool", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in Bool", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_boolTrue extends Bool { - public static int constructor = 0x997275b5; + public static class TL_boolTrue extends Bool { + public static int constructor = 0x997275b5; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_boolFalse extends Bool { - public static int constructor = 0xbc799737; + public static class TL_boolFalse extends Bool { + public static int constructor = 0xbc799737; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messages_discussionMessage extends TLObject { public static int constructor = 0xa6341782; @@ -16907,71 +16941,71 @@ public class TLRPC { } } - public static abstract class WebPage extends TLObject { - public int flags; - public long id; - public String url; - public String display_url; - public int hash; - public String type; - public String site_name; - public String title; - public String description; - public Photo photo; - public String embed_url; - public String embed_type; - public int embed_width; - public int embed_height; - public int duration; - public String author; - public Document document; - public Page cached_page; - public int date; + public static abstract class WebPage extends TLObject { + public int flags; + public long id; + public String url; + public String display_url; + public int hash; + public String type; + public String site_name; + public String title; + public String description; + public Photo photo; + public String embed_url; + public String embed_type; + public int embed_width; + public int embed_height; + public int duration; + public String author; + public Document document; + public Page cached_page; + public int date; public ArrayList attributes = new ArrayList<>(); - public static WebPage TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - WebPage result = null; - switch (constructor) { + public static WebPage TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + WebPage result = null; + switch (constructor) { case 0xe89c45b2: result = new TL_webPage(); break; case 0xfa64e172: result = new TL_webPage_layer107(); break; - case 0x5f07b4bc: - result = new TL_webPage_layer104(); - break; - case 0xa31ea0b5: - result = new TL_webPage_old(); - break; - case 0xeb1477e8: - result = new TL_webPageEmpty(); - break; - case 0xd41a5167: - result = new TL_webPageUrlPending(); - break; + case 0x5f07b4bc: + result = new TL_webPage_layer104(); + break; + case 0xa31ea0b5: + result = new TL_webPage_old(); + break; + case 0xeb1477e8: + result = new TL_webPageEmpty(); + break; + case 0xd41a5167: + result = new TL_webPageUrlPending(); + break; case 0x7311ca11: result = new TL_webPageNotModified(); break; - case 0xc586da1c: - result = new TL_webPagePending(); - break; - case 0x85849473: - result = new TL_webPageNotModified_layer110(); - break; - case 0xca820ed7: - result = new TL_webPage_layer58(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in WebPage", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0xc586da1c: + result = new TL_webPagePending(); + break; + case 0x85849473: + result = new TL_webPageNotModified_layer110(); + break; + case 0xca820ed7: + result = new TL_webPage_layer58(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in WebPage", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } public static class TL_webPage extends WebPage { public static int constructor = 0xe89c45b2; @@ -17221,244 +17255,244 @@ public class TLRPC { } } - public static class TL_webPage_layer104 extends TL_webPage { - public static int constructor = 0x5f07b4bc; + public static class TL_webPage_layer104 extends TL_webPage { + public static int constructor = 0x5f07b4bc; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - id = stream.readInt64(exception); - url = stream.readString(exception); - display_url = stream.readString(exception); - hash = stream.readInt32(exception); - if ((flags & 1) != 0) { - type = stream.readString(exception); - } - if ((flags & 2) != 0) { - site_name = stream.readString(exception); - } - if ((flags & 4) != 0) { - title = stream.readString(exception); - } - if ((flags & 8) != 0) { - description = stream.readString(exception); - } - if ((flags & 16) != 0) { - photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 32) != 0) { - embed_url = stream.readString(exception); - } - if ((flags & 32) != 0) { - embed_type = stream.readString(exception); - } - if ((flags & 64) != 0) { - embed_width = stream.readInt32(exception); - } - if ((flags & 64) != 0) { - embed_height = stream.readInt32(exception); - } - if ((flags & 128) != 0) { - duration = stream.readInt32(exception); - } - if ((flags & 256) != 0) { - author = stream.readString(exception); - } - if ((flags & 512) != 0) { - document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 1024) != 0) { - cached_page = Page.TLdeserialize(stream, stream.readInt32(exception), exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + id = stream.readInt64(exception); + url = stream.readString(exception); + display_url = stream.readString(exception); + hash = stream.readInt32(exception); + if ((flags & 1) != 0) { + type = stream.readString(exception); + } + if ((flags & 2) != 0) { + site_name = stream.readString(exception); + } + if ((flags & 4) != 0) { + title = stream.readString(exception); + } + if ((flags & 8) != 0) { + description = stream.readString(exception); + } + if ((flags & 16) != 0) { + photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 32) != 0) { + embed_url = stream.readString(exception); + } + if ((flags & 32) != 0) { + embed_type = stream.readString(exception); + } + if ((flags & 64) != 0) { + embed_width = stream.readInt32(exception); + } + if ((flags & 64) != 0) { + embed_height = stream.readInt32(exception); + } + if ((flags & 128) != 0) { + duration = stream.readInt32(exception); + } + if ((flags & 256) != 0) { + author = stream.readString(exception); + } + if ((flags & 512) != 0) { + document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 1024) != 0) { + cached_page = Page.TLdeserialize(stream, stream.readInt32(exception), exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeInt64(id); - stream.writeString(url); - stream.writeString(display_url); - stream.writeInt32(hash); - if ((flags & 1) != 0) { - stream.writeString(type); - } - if ((flags & 2) != 0) { - stream.writeString(site_name); - } - if ((flags & 4) != 0) { - stream.writeString(title); - } - if ((flags & 8) != 0) { - stream.writeString(description); - } - if ((flags & 16) != 0) { - photo.serializeToStream(stream); - } - if ((flags & 32) != 0) { - stream.writeString(embed_url); - } - if ((flags & 32) != 0) { - stream.writeString(embed_type); - } - if ((flags & 64) != 0) { - stream.writeInt32(embed_width); - } - if ((flags & 64) != 0) { - stream.writeInt32(embed_height); - } - if ((flags & 128) != 0) { - stream.writeInt32(duration); - } - if ((flags & 256) != 0) { - stream.writeString(author); - } - if ((flags & 512) != 0) { - document.serializeToStream(stream); - } - if ((flags & 1024) != 0) { - cached_page.serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeInt64(id); + stream.writeString(url); + stream.writeString(display_url); + stream.writeInt32(hash); + if ((flags & 1) != 0) { + stream.writeString(type); + } + if ((flags & 2) != 0) { + stream.writeString(site_name); + } + if ((flags & 4) != 0) { + stream.writeString(title); + } + if ((flags & 8) != 0) { + stream.writeString(description); + } + if ((flags & 16) != 0) { + photo.serializeToStream(stream); + } + if ((flags & 32) != 0) { + stream.writeString(embed_url); + } + if ((flags & 32) != 0) { + stream.writeString(embed_type); + } + if ((flags & 64) != 0) { + stream.writeInt32(embed_width); + } + if ((flags & 64) != 0) { + stream.writeInt32(embed_height); + } + if ((flags & 128) != 0) { + stream.writeInt32(duration); + } + if ((flags & 256) != 0) { + stream.writeString(author); + } + if ((flags & 512) != 0) { + document.serializeToStream(stream); + } + if ((flags & 1024) != 0) { + cached_page.serializeToStream(stream); + } + } + } - public static class TL_webPage_old extends TL_webPage { - public static int constructor = 0xa31ea0b5; + public static class TL_webPage_old extends TL_webPage { + public static int constructor = 0xa31ea0b5; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - id = stream.readInt64(exception); - url = stream.readString(exception); - display_url = stream.readString(exception); - if ((flags & 1) != 0) { - type = stream.readString(exception); - } - if ((flags & 2) != 0) { - site_name = stream.readString(exception); - } - if ((flags & 4) != 0) { - title = stream.readString(exception); - } - if ((flags & 8) != 0) { - description = stream.readString(exception); - } - if ((flags & 16) != 0) { - photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 32) != 0) { - embed_url = stream.readString(exception); - } - if ((flags & 32) != 0) { - embed_type = stream.readString(exception); - } - if ((flags & 64) != 0) { - embed_width = stream.readInt32(exception); - } - if ((flags & 64) != 0) { - embed_height = stream.readInt32(exception); - } - if ((flags & 128) != 0) { - duration = stream.readInt32(exception); - } - if ((flags & 256) != 0) { - author = stream.readString(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + id = stream.readInt64(exception); + url = stream.readString(exception); + display_url = stream.readString(exception); + if ((flags & 1) != 0) { + type = stream.readString(exception); + } + if ((flags & 2) != 0) { + site_name = stream.readString(exception); + } + if ((flags & 4) != 0) { + title = stream.readString(exception); + } + if ((flags & 8) != 0) { + description = stream.readString(exception); + } + if ((flags & 16) != 0) { + photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 32) != 0) { + embed_url = stream.readString(exception); + } + if ((flags & 32) != 0) { + embed_type = stream.readString(exception); + } + if ((flags & 64) != 0) { + embed_width = stream.readInt32(exception); + } + if ((flags & 64) != 0) { + embed_height = stream.readInt32(exception); + } + if ((flags & 128) != 0) { + duration = stream.readInt32(exception); + } + if ((flags & 256) != 0) { + author = stream.readString(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeInt64(id); - stream.writeString(url); - stream.writeString(display_url); - if ((flags & 1) != 0) { - stream.writeString(type); - } - if ((flags & 2) != 0) { - stream.writeString(site_name); - } - if ((flags & 4) != 0) { - stream.writeString(title); - } - if ((flags & 8) != 0) { - stream.writeString(description); - } - if ((flags & 16) != 0) { - photo.serializeToStream(stream); - } - if ((flags & 32) != 0) { - stream.writeString(embed_url); - } - if ((flags & 32) != 0) { - stream.writeString(embed_type); - } - if ((flags & 64) != 0) { - stream.writeInt32(embed_width); - } - if ((flags & 64) != 0) { - stream.writeInt32(embed_height); - } - if ((flags & 128) != 0) { - stream.writeInt32(duration); - } - if ((flags & 256) != 0) { - stream.writeString(author); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeInt64(id); + stream.writeString(url); + stream.writeString(display_url); + if ((flags & 1) != 0) { + stream.writeString(type); + } + if ((flags & 2) != 0) { + stream.writeString(site_name); + } + if ((flags & 4) != 0) { + stream.writeString(title); + } + if ((flags & 8) != 0) { + stream.writeString(description); + } + if ((flags & 16) != 0) { + photo.serializeToStream(stream); + } + if ((flags & 32) != 0) { + stream.writeString(embed_url); + } + if ((flags & 32) != 0) { + stream.writeString(embed_type); + } + if ((flags & 64) != 0) { + stream.writeInt32(embed_width); + } + if ((flags & 64) != 0) { + stream.writeInt32(embed_height); + } + if ((flags & 128) != 0) { + stream.writeInt32(duration); + } + if ((flags & 256) != 0) { + stream.writeString(author); + } + } + } - public static class TL_webPageEmpty extends WebPage { - public static int constructor = 0xeb1477e8; + public static class TL_webPageEmpty extends WebPage { + public static int constructor = 0xeb1477e8; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + } + } - public static class TL_webPageUrlPending extends WebPage { - public static int constructor = 0xd41a5167; + public static class TL_webPageUrlPending extends WebPage { + public static int constructor = 0xd41a5167; - public void readParams(AbstractSerializedData stream, boolean exception) { - url = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + url = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(url); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(url); + } + } - public static class TL_webPagePending extends WebPage { - public static int constructor = 0xc586da1c; + public static class TL_webPagePending extends WebPage { + public static int constructor = 0xc586da1c; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - date = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt32(date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt32(date); + } + } - public static class TL_webPageNotModified_layer110 extends TL_webPageNotModified { - public static int constructor = 0x85849473; + public static class TL_webPageNotModified_layer110 extends TL_webPageNotModified { + public static int constructor = 0x85849473; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_webPageNotModified extends WebPage { public static int constructor = 0x7311ca11; @@ -17481,97 +17515,97 @@ public class TLRPC { } } - public static class TL_webPage_layer58 extends TL_webPage { - public static int constructor = 0xca820ed7; + public static class TL_webPage_layer58 extends TL_webPage { + public static int constructor = 0xca820ed7; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - id = stream.readInt64(exception); - url = stream.readString(exception); - display_url = stream.readString(exception); - if ((flags & 1) != 0) { - type = stream.readString(exception); - } - if ((flags & 2) != 0) { - site_name = stream.readString(exception); - } - if ((flags & 4) != 0) { - title = stream.readString(exception); - } - if ((flags & 8) != 0) { - description = stream.readString(exception); - } - if ((flags & 16) != 0) { - photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 32) != 0) { - embed_url = stream.readString(exception); - } - if ((flags & 32) != 0) { - embed_type = stream.readString(exception); - } - if ((flags & 64) != 0) { - embed_width = stream.readInt32(exception); - } - if ((flags & 64) != 0) { - embed_height = stream.readInt32(exception); - } - if ((flags & 128) != 0) { - duration = stream.readInt32(exception); - } - if ((flags & 256) != 0) { - author = stream.readString(exception); - } - if ((flags & 512) != 0) { - document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + id = stream.readInt64(exception); + url = stream.readString(exception); + display_url = stream.readString(exception); + if ((flags & 1) != 0) { + type = stream.readString(exception); + } + if ((flags & 2) != 0) { + site_name = stream.readString(exception); + } + if ((flags & 4) != 0) { + title = stream.readString(exception); + } + if ((flags & 8) != 0) { + description = stream.readString(exception); + } + if ((flags & 16) != 0) { + photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 32) != 0) { + embed_url = stream.readString(exception); + } + if ((flags & 32) != 0) { + embed_type = stream.readString(exception); + } + if ((flags & 64) != 0) { + embed_width = stream.readInt32(exception); + } + if ((flags & 64) != 0) { + embed_height = stream.readInt32(exception); + } + if ((flags & 128) != 0) { + duration = stream.readInt32(exception); + } + if ((flags & 256) != 0) { + author = stream.readString(exception); + } + if ((flags & 512) != 0) { + document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeInt64(id); - stream.writeString(url); - stream.writeString(display_url); - if ((flags & 1) != 0) { - stream.writeString(type); - } - if ((flags & 2) != 0) { - stream.writeString(site_name); - } - if ((flags & 4) != 0) { - stream.writeString(title); - } - if ((flags & 8) != 0) { - stream.writeString(description); - } - if ((flags & 16) != 0) { - photo.serializeToStream(stream); - } - if ((flags & 32) != 0) { - stream.writeString(embed_url); - } - if ((flags & 32) != 0) { - stream.writeString(embed_type); - } - if ((flags & 64) != 0) { - stream.writeInt32(embed_width); - } - if ((flags & 64) != 0) { - stream.writeInt32(embed_height); - } - if ((flags & 128) != 0) { - stream.writeInt32(duration); - } - if ((flags & 256) != 0) { - stream.writeString(author); - } - if ((flags & 512) != 0) { - document.serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeInt64(id); + stream.writeString(url); + stream.writeString(display_url); + if ((flags & 1) != 0) { + stream.writeString(type); + } + if ((flags & 2) != 0) { + stream.writeString(site_name); + } + if ((flags & 4) != 0) { + stream.writeString(title); + } + if ((flags & 8) != 0) { + stream.writeString(description); + } + if ((flags & 16) != 0) { + photo.serializeToStream(stream); + } + if ((flags & 32) != 0) { + stream.writeString(embed_url); + } + if ((flags & 32) != 0) { + stream.writeString(embed_type); + } + if ((flags & 64) != 0) { + stream.writeInt32(embed_width); + } + if ((flags & 64) != 0) { + stream.writeInt32(embed_height); + } + if ((flags & 128) != 0) { + stream.writeInt32(duration); + } + if ((flags & 256) != 0) { + stream.writeString(author); + } + if ((flags & 512) != 0) { + document.serializeToStream(stream); + } + } + } public static abstract class messages_FeaturedStickers extends TLObject { @@ -17668,456 +17702,456 @@ public class TLRPC { } } - public static abstract class SecureValueError extends TLObject { + public static abstract class SecureValueError extends TLObject { - public static SecureValueError TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - SecureValueError result = null; - switch (constructor) { - case 0x7a700873: - result = new TL_secureValueErrorFile(); - break; - case 0xbe3dfa: - result = new TL_secureValueErrorFrontSide(); - break; - case 0x666220e9: - result = new TL_secureValueErrorFiles(); - break; - case 0x868a2aa5: - result = new TL_secureValueErrorReverseSide(); - break; - case 0xa1144770: - result = new TL_secureValueErrorTranslationFile(); - break; - case 0x869d758f: - result = new TL_secureValueError(); - break; - case 0xe8a40bd9: - result = new TL_secureValueErrorData(); - break; - case 0x34636dd8: - result = new TL_secureValueErrorTranslationFiles(); - break; - case 0xe537ced6: - result = new TL_secureValueErrorSelfie(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in SecureValueError", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static SecureValueError TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + SecureValueError result = null; + switch (constructor) { + case 0x7a700873: + result = new TL_secureValueErrorFile(); + break; + case 0xbe3dfa: + result = new TL_secureValueErrorFrontSide(); + break; + case 0x666220e9: + result = new TL_secureValueErrorFiles(); + break; + case 0x868a2aa5: + result = new TL_secureValueErrorReverseSide(); + break; + case 0xa1144770: + result = new TL_secureValueErrorTranslationFile(); + break; + case 0x869d758f: + result = new TL_secureValueError(); + break; + case 0xe8a40bd9: + result = new TL_secureValueErrorData(); + break; + case 0x34636dd8: + result = new TL_secureValueErrorTranslationFiles(); + break; + case 0xe537ced6: + result = new TL_secureValueErrorSelfie(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in SecureValueError", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_secureValueErrorFile extends SecureValueError { - public static int constructor = 0x7a700873; + public static class TL_secureValueErrorFile extends SecureValueError { + public static int constructor = 0x7a700873; - public SecureValueType type; - public byte[] file_hash; - public String text; + public SecureValueType type; + public byte[] file_hash; + public String text; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - file_hash = stream.readByteArray(exception); - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + file_hash = stream.readByteArray(exception); + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeByteArray(file_hash); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeByteArray(file_hash); + stream.writeString(text); + } + } - public static class TL_secureValueErrorFrontSide extends SecureValueError { - public static int constructor = 0xbe3dfa; + public static class TL_secureValueErrorFrontSide extends SecureValueError { + public static int constructor = 0xbe3dfa; - public SecureValueType type; - public byte[] file_hash; - public String text; + public SecureValueType type; + public byte[] file_hash; + public String text; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - file_hash = stream.readByteArray(exception); - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + file_hash = stream.readByteArray(exception); + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeByteArray(file_hash); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeByteArray(file_hash); + stream.writeString(text); + } + } - public static class TL_secureValueErrorFiles extends SecureValueError { - public static int constructor = 0x666220e9; + public static class TL_secureValueErrorFiles extends SecureValueError { + public static int constructor = 0x666220e9; - public SecureValueType type; - public ArrayList file_hash = new ArrayList<>(); - public String text; + public SecureValueType type; + public ArrayList file_hash = new ArrayList<>(); + public String text; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - file_hash.add(stream.readByteArray(exception)); - } - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + file_hash.add(stream.readByteArray(exception)); + } + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = file_hash.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeByteArray(file_hash.get(a)); - } - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = file_hash.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeByteArray(file_hash.get(a)); + } + stream.writeString(text); + } + } - public static class TL_secureValueErrorReverseSide extends SecureValueError { - public static int constructor = 0x868a2aa5; + public static class TL_secureValueErrorReverseSide extends SecureValueError { + public static int constructor = 0x868a2aa5; - public SecureValueType type; - public byte[] file_hash; - public String text; + public SecureValueType type; + public byte[] file_hash; + public String text; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - file_hash = stream.readByteArray(exception); - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + file_hash = stream.readByteArray(exception); + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeByteArray(file_hash); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeByteArray(file_hash); + stream.writeString(text); + } + } - public static class TL_secureValueErrorTranslationFile extends SecureValueError { - public static int constructor = 0xa1144770; + public static class TL_secureValueErrorTranslationFile extends SecureValueError { + public static int constructor = 0xa1144770; - public SecureValueType type; - public byte[] file_hash; - public String text; + public SecureValueType type; + public byte[] file_hash; + public String text; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - file_hash = stream.readByteArray(exception); - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + file_hash = stream.readByteArray(exception); + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeByteArray(file_hash); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeByteArray(file_hash); + stream.writeString(text); + } + } - public static class TL_secureValueError extends SecureValueError { - public static int constructor = 0x869d758f; + public static class TL_secureValueError extends SecureValueError { + public static int constructor = 0x869d758f; - public SecureValueType type; - public byte[] hash; - public String text; + public SecureValueType type; + public byte[] hash; + public String text; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - hash = stream.readByteArray(exception); - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + hash = stream.readByteArray(exception); + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeByteArray(hash); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeByteArray(hash); + stream.writeString(text); + } + } - public static class TL_secureValueErrorData extends SecureValueError { - public static int constructor = 0xe8a40bd9; + public static class TL_secureValueErrorData extends SecureValueError { + public static int constructor = 0xe8a40bd9; - public SecureValueType type; - public byte[] data_hash; - public String field; - public String text; + public SecureValueType type; + public byte[] data_hash; + public String field; + public String text; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - data_hash = stream.readByteArray(exception); - field = stream.readString(exception); - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + data_hash = stream.readByteArray(exception); + field = stream.readString(exception); + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeByteArray(data_hash); - stream.writeString(field); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeByteArray(data_hash); + stream.writeString(field); + stream.writeString(text); + } + } - public static class TL_secureValueErrorTranslationFiles extends SecureValueError { - public static int constructor = 0x34636dd8; + public static class TL_secureValueErrorTranslationFiles extends SecureValueError { + public static int constructor = 0x34636dd8; - public SecureValueType type; - public ArrayList file_hash = new ArrayList<>(); - public String text; + public SecureValueType type; + public ArrayList file_hash = new ArrayList<>(); + public String text; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - file_hash.add(stream.readByteArray(exception)); - } - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + file_hash.add(stream.readByteArray(exception)); + } + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = file_hash.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeByteArray(file_hash.get(a)); - } - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = file_hash.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeByteArray(file_hash.get(a)); + } + stream.writeString(text); + } + } - public static class TL_secureValueErrorSelfie extends SecureValueError { - public static int constructor = 0xe537ced6; + public static class TL_secureValueErrorSelfie extends SecureValueError { + public static int constructor = 0xe537ced6; - public SecureValueType type; - public byte[] file_hash; - public String text; + public SecureValueType type; + public byte[] file_hash; + public String text; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - file_hash = stream.readByteArray(exception); - text = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + file_hash = stream.readByteArray(exception); + text = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeByteArray(file_hash); - stream.writeString(text); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeByteArray(file_hash); + stream.writeString(text); + } + } - public static class TL_secureValue extends TLObject { - public static int constructor = 0x187fa0ca; + public static class TL_secureValue extends TLObject { + public static int constructor = 0x187fa0ca; - public int flags; - public SecureValueType type; - public TL_secureData data; - public SecureFile front_side; - public SecureFile reverse_side; - public SecureFile selfie; - public ArrayList translation = new ArrayList<>(); - public ArrayList files = new ArrayList<>(); - public SecurePlainData plain_data; - public byte[] hash; + public int flags; + public SecureValueType type; + public TL_secureData data; + public SecureFile front_side; + public SecureFile reverse_side; + public SecureFile selfie; + public ArrayList translation = new ArrayList<>(); + public ArrayList files = new ArrayList<>(); + public SecurePlainData plain_data; + public byte[] hash; - public static TL_secureValue TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_secureValue.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_secureValue", constructor)); - } else { - return null; - } - } - TL_secureValue result = new TL_secureValue(); - result.readParams(stream, exception); - return result; - } + public static TL_secureValue TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_secureValue.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_secureValue", constructor)); + } else { + return null; + } + } + TL_secureValue result = new TL_secureValue(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 1) != 0) { - data = TL_secureData.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 2) != 0) { - front_side = SecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 4) != 0) { - reverse_side = SecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 8) != 0) { - selfie = SecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 64) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - SecureFile object = SecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - translation.add(object); - } - } - if ((flags & 16) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - SecureFile object = SecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - files.add(object); - } - } - if ((flags & 32) != 0) { - plain_data = SecurePlainData.TLdeserialize(stream, stream.readInt32(exception), exception); - } - hash = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 1) != 0) { + data = TL_secureData.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 2) != 0) { + front_side = SecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 4) != 0) { + reverse_side = SecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 8) != 0) { + selfie = SecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 64) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + SecureFile object = SecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + translation.add(object); + } + } + if ((flags & 16) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + SecureFile object = SecureFile.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + files.add(object); + } + } + if ((flags & 32) != 0) { + plain_data = SecurePlainData.TLdeserialize(stream, stream.readInt32(exception), exception); + } + hash = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - type.serializeToStream(stream); - if ((flags & 1) != 0) { - data.serializeToStream(stream); - } - if ((flags & 2) != 0) { - front_side.serializeToStream(stream); - } - if ((flags & 4) != 0) { - reverse_side.serializeToStream(stream); - } - if ((flags & 8) != 0) { - selfie.serializeToStream(stream); - } - if ((flags & 64) != 0) { - stream.writeInt32(0x1cb5c415); - int count = translation.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - translation.get(a).serializeToStream(stream); - } - } - if ((flags & 16) != 0) { - stream.writeInt32(0x1cb5c415); - int count = files.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - files.get(a).serializeToStream(stream); - } - } - if ((flags & 32) != 0) { - plain_data.serializeToStream(stream); - } - stream.writeByteArray(hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + type.serializeToStream(stream); + if ((flags & 1) != 0) { + data.serializeToStream(stream); + } + if ((flags & 2) != 0) { + front_side.serializeToStream(stream); + } + if ((flags & 4) != 0) { + reverse_side.serializeToStream(stream); + } + if ((flags & 8) != 0) { + selfie.serializeToStream(stream); + } + if ((flags & 64) != 0) { + stream.writeInt32(0x1cb5c415); + int count = translation.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + translation.get(a).serializeToStream(stream); + } + } + if ((flags & 16) != 0) { + stream.writeInt32(0x1cb5c415); + int count = files.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + files.get(a).serializeToStream(stream); + } + } + if ((flags & 32) != 0) { + plain_data.serializeToStream(stream); + } + stream.writeByteArray(hash); + } + } - public static abstract class PhoneCallDiscardReason extends TLObject { - public byte[] encrypted_key; + public static abstract class PhoneCallDiscardReason extends TLObject { + public byte[] encrypted_key; - public static PhoneCallDiscardReason TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - PhoneCallDiscardReason result = null; - switch (constructor) { - case 0x57adc690: - result = new TL_phoneCallDiscardReasonHangup(); - break; - case 0xfaf7e8c9: - result = new TL_phoneCallDiscardReasonBusy(); - break; - case 0x85e42301: - result = new TL_phoneCallDiscardReasonMissed(); - break; - case 0xe095c1a0: - result = new TL_phoneCallDiscardReasonDisconnect(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in PhoneCallDiscardReason", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static PhoneCallDiscardReason TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + PhoneCallDiscardReason result = null; + switch (constructor) { + case 0x57adc690: + result = new TL_phoneCallDiscardReasonHangup(); + break; + case 0xfaf7e8c9: + result = new TL_phoneCallDiscardReasonBusy(); + break; + case 0x85e42301: + result = new TL_phoneCallDiscardReasonMissed(); + break; + case 0xe095c1a0: + result = new TL_phoneCallDiscardReasonDisconnect(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in PhoneCallDiscardReason", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_phoneCallDiscardReasonHangup extends PhoneCallDiscardReason { - public static int constructor = 0x57adc690; + public static class TL_phoneCallDiscardReasonHangup extends PhoneCallDiscardReason { + public static int constructor = 0x57adc690; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_phoneCallDiscardReasonBusy extends PhoneCallDiscardReason { - public static int constructor = 0xfaf7e8c9; + public static class TL_phoneCallDiscardReasonBusy extends PhoneCallDiscardReason { + public static int constructor = 0xfaf7e8c9; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_phoneCallDiscardReasonMissed extends PhoneCallDiscardReason { - public static int constructor = 0x85e42301; + public static class TL_phoneCallDiscardReasonMissed extends PhoneCallDiscardReason { + public static int constructor = 0x85e42301; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_phoneCallDiscardReasonDisconnect extends PhoneCallDiscardReason { - public static int constructor = 0xe095c1a0; + public static class TL_phoneCallDiscardReasonDisconnect extends PhoneCallDiscardReason { + public static int constructor = 0xe095c1a0; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_dialogFilter extends TLObject { public static int constructor = 0x7438f7e8; @@ -18250,64 +18284,64 @@ public class TLRPC { } } - public static class TL_auth_passwordRecovery extends TLObject { - public static int constructor = 0x137948a5; + public static class TL_auth_passwordRecovery extends TLObject { + public static int constructor = 0x137948a5; - public String email_pattern; + public String email_pattern; - public static TL_auth_passwordRecovery TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_auth_passwordRecovery.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_auth_passwordRecovery", constructor)); - } else { - return null; - } - } - TL_auth_passwordRecovery result = new TL_auth_passwordRecovery(); - result.readParams(stream, exception); - return result; - } + public static TL_auth_passwordRecovery TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_auth_passwordRecovery.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_auth_passwordRecovery", constructor)); + } else { + return null; + } + } + TL_auth_passwordRecovery result = new TL_auth_passwordRecovery(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - email_pattern = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(email_pattern); - } - } - - public static class TL_botCommand extends TLObject { - public static int constructor = 0xc27ac8c7; - - public String command; - public String description; - - public static TL_botCommand TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_botCommand.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_botCommand", constructor)); - } else { - return null; - } - } - TL_botCommand result = new TL_botCommand(); - result.readParams(stream, exception); - return result; - } - - public void readParams(AbstractSerializedData stream, boolean exception) { - command = stream.readString(exception); - description = stream.readString(exception); + public void readParams(AbstractSerializedData stream, boolean exception) { + email_pattern = stream.readString(exception); } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(command); - stream.writeString(description); - } - } + stream.writeInt32(constructor); + stream.writeString(email_pattern); + } + } + + public static class TL_botCommand extends TLObject { + public static int constructor = 0xc27ac8c7; + + public String command; + public String description; + + public static TL_botCommand TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_botCommand.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_botCommand", constructor)); + } else { + return null; + } + } + TL_botCommand result = new TL_botCommand(); + result.readParams(stream, exception); + return result; + } + + public void readParams(AbstractSerializedData stream, boolean exception) { + command = stream.readString(exception); + description = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(command); + stream.writeString(description); + } + } public static abstract class InputNotifyPeer extends TLObject { @@ -18599,110 +18633,110 @@ public class TLRPC { } } - public static class TL_photos_photo extends TLObject { - public static int constructor = 0x20212ca8; + public static class TL_photos_photo extends TLObject { + public static int constructor = 0x20212ca8; - public Photo photo; - public ArrayList users = new ArrayList<>(); + public Photo photo; + public ArrayList users = new ArrayList<>(); public static TL_photos_photo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_photos_photo.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_photos_photo", constructor)); - } else { - return null; - } - } - TL_photos_photo result = new TL_photos_photo(); - result.readParams(stream, exception); - return result; + if (TL_photos_photo.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_photos_photo", constructor)); + } else { + return null; + } + } + TL_photos_photo result = new TL_photos_photo(); + result.readParams(stream, exception); + return result; } public void readParams(AbstractSerializedData stream, boolean exception) { - photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); photo.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = users.size(); - stream.writeInt32(count); + stream.writeInt32(0x1cb5c415); + int count = users.size(); + stream.writeInt32(count); for (int a = 0; a < count; a++) { users.get(a).serializeToStream(stream); - } - } - } + } + } + } - public static abstract class help_TermsOfServiceUpdate extends TLObject { + public static abstract class help_TermsOfServiceUpdate extends TLObject { - public static help_TermsOfServiceUpdate TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - help_TermsOfServiceUpdate result = null; - switch (constructor) { - case 0x28ecf961: - result = new TL_help_termsOfServiceUpdate(); - break; - case 0xe3309f7f: - result = new TL_help_termsOfServiceUpdateEmpty(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in help_TermsOfServiceUpdate", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static help_TermsOfServiceUpdate TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + help_TermsOfServiceUpdate result = null; + switch (constructor) { + case 0x28ecf961: + result = new TL_help_termsOfServiceUpdate(); + break; + case 0xe3309f7f: + result = new TL_help_termsOfServiceUpdateEmpty(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in help_TermsOfServiceUpdate", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_help_termsOfServiceUpdate extends help_TermsOfServiceUpdate { - public static int constructor = 0x28ecf961; + public static class TL_help_termsOfServiceUpdate extends help_TermsOfServiceUpdate { + public static int constructor = 0x28ecf961; - public int expires; - public TL_help_termsOfService terms_of_service; + public int expires; + public TL_help_termsOfService terms_of_service; - public void readParams(AbstractSerializedData stream, boolean exception) { - expires = stream.readInt32(exception); - terms_of_service = TL_help_termsOfService.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + expires = stream.readInt32(exception); + terms_of_service = TL_help_termsOfService.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(expires); - terms_of_service.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(expires); + terms_of_service.serializeToStream(stream); + } + } - public static class TL_help_termsOfServiceUpdateEmpty extends help_TermsOfServiceUpdate { - public static int constructor = 0xe3309f7f; + public static class TL_help_termsOfServiceUpdateEmpty extends help_TermsOfServiceUpdate { + public static int constructor = 0xe3309f7f; - public int expires; + public int expires; - public void readParams(AbstractSerializedData stream, boolean exception) { - expires = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + expires = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(expires); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(expires); + } + } public static class TL_messages_chatAdminsWithInvites extends TLObject { public static int constructor = 0xb69b72d7; @@ -19192,47 +19226,47 @@ public class TLRPC { } } - public static abstract class User extends TLObject { - public long id; - public String first_name; - public String last_name; - public String username; - public long access_hash; - public String phone; - public UserProfilePhoto photo; - public UserStatus status; - public int flags; - public boolean self; - public boolean contact; - public boolean mutual_contact; - public boolean deleted; - public boolean bot; - public boolean bot_chat_history; - public boolean bot_nochats; - public boolean verified; - public boolean restricted; - public boolean min; - public boolean bot_inline_geo; + public static abstract class User extends TLObject { + public long id; + public String first_name; + public String last_name; + public String username; + public long access_hash; + public String phone; + public UserProfilePhoto photo; + public UserStatus status; + public int flags; + public boolean self; + public boolean contact; + public boolean mutual_contact; + public boolean deleted; + public boolean bot; + public boolean bot_chat_history; + public boolean bot_nochats; + public boolean verified; + public boolean restricted; + public boolean min; + public boolean bot_inline_geo; public boolean support; public boolean scam; public boolean apply_min_photo; public boolean fake; - public int bot_info_version; - public String bot_inline_placeholder; - public String lang_code; - public boolean inactive; - public boolean explicit_content; + public int bot_info_version; + public String bot_inline_placeholder; + public String lang_code; + public boolean inactive; + public boolean explicit_content; public ArrayList restriction_reason = new ArrayList<>(); - public static User TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - User result = null; - switch (constructor) { - case 0xcab35e18: - result = new TL_userContact_old2(); - break; - case 0xf2fb8319: - result = new TL_userContact_old(); - break; + public static User TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + User result = null; + switch (constructor) { + case 0xcab35e18: + result = new TL_userContact_old2(); + break; + case 0xf2fb8319: + result = new TL_userContact_old(); + break; case 0xd3bc4b7a: result = new TL_userEmpty(); break; @@ -19242,109 +19276,109 @@ public class TLRPC { case 0x938458c1: result = new TL_user_layer131(); break; - case 0x2e13f4c3: - result = new TL_user_layer104(); - break; - case 0x720535ec: - result = new TL_userSelf_old(); - break; - case 0x1c60e608: - result = new TL_userSelf_old3(); - break; - case 0xd6016d7a: - result = new TL_userDeleted_old2(); - break; - case 0x200250ba: - result = new TL_userEmpty_layer131(); - break; - case 0x22e8ceb0: - result = new TL_userRequest_old(); - break; - case 0x5214c89d: - result = new TL_userForeign_old(); - break; - case 0x75cf7a8: - result = new TL_userForeign_old2(); - break; - case 0xd9ccc4ef: - result = new TL_userRequest_old2(); - break; - case 0xb29ad7cc: - result = new TL_userDeleted_old(); - break; - case 0xd10d979a: - result = new TL_user_layer65(); - break; - case 0x22e49072: - result = new TL_user_old(); - break; - case 0x7007b451: - result = new TL_userSelf_old2(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in User", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0x2e13f4c3: + result = new TL_user_layer104(); + break; + case 0x720535ec: + result = new TL_userSelf_old(); + break; + case 0x1c60e608: + result = new TL_userSelf_old3(); + break; + case 0xd6016d7a: + result = new TL_userDeleted_old2(); + break; + case 0x200250ba: + result = new TL_userEmpty_layer131(); + break; + case 0x22e8ceb0: + result = new TL_userRequest_old(); + break; + case 0x5214c89d: + result = new TL_userForeign_old(); + break; + case 0x75cf7a8: + result = new TL_userForeign_old2(); + break; + case 0xd9ccc4ef: + result = new TL_userRequest_old2(); + break; + case 0xb29ad7cc: + result = new TL_userDeleted_old(); + break; + case 0xd10d979a: + result = new TL_user_layer65(); + break; + case 0x22e49072: + result = new TL_user_old(); + break; + case 0x7007b451: + result = new TL_userSelf_old2(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in User", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_userContact_old2 extends User { - public static int constructor = 0xcab35e18; + public static class TL_userContact_old2 extends User { + public static int constructor = 0xcab35e18; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - username = stream.readString(exception); - access_hash = stream.readInt64(exception); - phone = stream.readString(exception); - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + username = stream.readString(exception); + access_hash = stream.readInt64(exception); + phone = stream.readString(exception); + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeString(username); - stream.writeInt64(access_hash); - stream.writeString(phone); - photo.serializeToStream(stream); - status.serializeToStream(stream); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeString(username); + stream.writeInt64(access_hash); + stream.writeString(phone); + photo.serializeToStream(stream); + status.serializeToStream(stream); + } + } - public static class TL_userContact_old extends TL_userContact_old2 { - public static int constructor = 0xf2fb8319; + public static class TL_userContact_old extends TL_userContact_old2 { + public static int constructor = 0xf2fb8319; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - access_hash = stream.readInt64(exception); - phone = stream.readString(exception); - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + access_hash = stream.readInt64(exception); + phone = stream.readString(exception); + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeInt64(access_hash); - stream.writeString(phone); - photo.serializeToStream(stream); - status.serializeToStream(stream); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeInt64(access_hash); + stream.writeString(phone); + photo.serializeToStream(stream); + status.serializeToStream(stream); + } + } public static class TL_userEmpty extends User { public static int constructor = 0xd3bc4b7a; @@ -19730,421 +19764,421 @@ public class TLRPC { } } - public static class TL_userSelf_old extends TL_userSelf_old3 { - public static int constructor = 0x720535ec; + public static class TL_userSelf_old extends TL_userSelf_old3 { + public static int constructor = 0x720535ec; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - phone = stream.readString(exception); - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - inactive = stream.readBool(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + phone = stream.readString(exception); + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + inactive = stream.readBool(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeString(phone); - photo.serializeToStream(stream); - status.serializeToStream(stream); - stream.writeBool(inactive); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeString(phone); + photo.serializeToStream(stream); + status.serializeToStream(stream); + stream.writeBool(inactive); + } + } - public static class TL_userSelf_old3 extends User { - public static int constructor = 0x1c60e608; + public static class TL_userSelf_old3 extends User { + public static int constructor = 0x1c60e608; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - username = stream.readString(exception); - phone = stream.readString(exception); - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + username = stream.readString(exception); + phone = stream.readString(exception); + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeString(username); - stream.writeString(phone); - photo.serializeToStream(stream); - status.serializeToStream(stream); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeString(username); + stream.writeString(phone); + photo.serializeToStream(stream); + status.serializeToStream(stream); + } + } - public static class TL_userDeleted_old2 extends User { - public static int constructor = 0xd6016d7a; + public static class TL_userDeleted_old2 extends User { + public static int constructor = 0xd6016d7a; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - username = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + username = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeString(username); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeString(username); + } + } - public static class TL_userEmpty_layer131 extends TL_userEmpty { - public static int constructor = 0x200250ba; + public static class TL_userEmpty_layer131 extends TL_userEmpty { + public static int constructor = 0x200250ba; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - } - } + } + } - public static class TL_userRequest_old extends TL_userRequest_old2 { - public static int constructor = 0x22e8ceb0; + public static class TL_userRequest_old extends TL_userRequest_old2 { + public static int constructor = 0x22e8ceb0; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - access_hash = stream.readInt64(exception); - phone = stream.readString(exception); - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + access_hash = stream.readInt64(exception); + phone = stream.readString(exception); + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeInt64(access_hash); - stream.writeString(phone); - photo.serializeToStream(stream); - status.serializeToStream(stream); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeInt64(access_hash); + stream.writeString(phone); + photo.serializeToStream(stream); + status.serializeToStream(stream); + } + } - public static class TL_userForeign_old extends TL_userForeign_old2 { - public static int constructor = 0x5214c89d; + public static class TL_userForeign_old extends TL_userForeign_old2 { + public static int constructor = 0x5214c89d; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - access_hash = stream.readInt64(exception); - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + access_hash = stream.readInt64(exception); + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeInt64(access_hash); - photo.serializeToStream(stream); - status.serializeToStream(stream); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeInt64(access_hash); + photo.serializeToStream(stream); + status.serializeToStream(stream); + } + } - public static class TL_userForeign_old2 extends User { - public static int constructor = 0x75cf7a8; + public static class TL_userForeign_old2 extends User { + public static int constructor = 0x75cf7a8; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - username = stream.readString(exception); - access_hash = stream.readInt64(exception); - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + username = stream.readString(exception); + access_hash = stream.readInt64(exception); + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeString(username); - stream.writeInt64(access_hash); - photo.serializeToStream(stream); - status.serializeToStream(stream); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeString(username); + stream.writeInt64(access_hash); + photo.serializeToStream(stream); + status.serializeToStream(stream); + } + } - public static class TL_userRequest_old2 extends User { - public static int constructor = 0xd9ccc4ef; + public static class TL_userRequest_old2 extends User { + public static int constructor = 0xd9ccc4ef; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - username = stream.readString(exception); - access_hash = stream.readInt64(exception); - phone = stream.readString(exception); - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + username = stream.readString(exception); + access_hash = stream.readInt64(exception); + phone = stream.readString(exception); + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeString(username); - stream.writeInt64(access_hash); - stream.writeString(phone); - photo.serializeToStream(stream); - status.serializeToStream(stream); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeString(username); + stream.writeInt64(access_hash); + stream.writeString(phone); + photo.serializeToStream(stream); + status.serializeToStream(stream); + } + } - public static class TL_userDeleted_old extends TL_userDeleted_old2 { - public static int constructor = 0xb29ad7cc; + public static class TL_userDeleted_old extends TL_userDeleted_old2 { + public static int constructor = 0xb29ad7cc; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + } + } - public static class TL_user_layer65 extends TL_user { - public static int constructor = 0xd10d979a; + public static class TL_user_layer65 extends TL_user { + public static int constructor = 0xd10d979a; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - self = (flags & 1024) != 0; - contact = (flags & 2048) != 0; - mutual_contact = (flags & 4096) != 0; - deleted = (flags & 8192) != 0; - bot = (flags & 16384) != 0; - bot_chat_history = (flags & 32768) != 0; - bot_nochats = (flags & 65536) != 0; - verified = (flags & 131072) != 0; - restricted = (flags & 262144) != 0; - min = (flags & 1048576) != 0; - bot_inline_geo = (flags & 2097152) != 0; - id = stream.readInt32(exception); - if ((flags & 1) != 0) { - access_hash = stream.readInt64(exception); - } - if ((flags & 2) != 0) { - first_name = stream.readString(exception); - } - if ((flags & 4) != 0) { - last_name = stream.readString(exception); - } - if ((flags & 8) != 0) { - username = stream.readString(exception); - } - if ((flags & 16) != 0) { - phone = stream.readString(exception); - } - if ((flags & 32) != 0) { - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 64) != 0) { - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 16384) != 0) { - bot_info_version = stream.readInt32(exception); - } - if ((flags & 262144) != 0) { - stream.readString(exception); - } - if ((flags & 524288) != 0) { - bot_inline_placeholder = stream.readString(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + self = (flags & 1024) != 0; + contact = (flags & 2048) != 0; + mutual_contact = (flags & 4096) != 0; + deleted = (flags & 8192) != 0; + bot = (flags & 16384) != 0; + bot_chat_history = (flags & 32768) != 0; + bot_nochats = (flags & 65536) != 0; + verified = (flags & 131072) != 0; + restricted = (flags & 262144) != 0; + min = (flags & 1048576) != 0; + bot_inline_geo = (flags & 2097152) != 0; + id = stream.readInt32(exception); + if ((flags & 1) != 0) { + access_hash = stream.readInt64(exception); + } + if ((flags & 2) != 0) { + first_name = stream.readString(exception); + } + if ((flags & 4) != 0) { + last_name = stream.readString(exception); + } + if ((flags & 8) != 0) { + username = stream.readString(exception); + } + if ((flags & 16) != 0) { + phone = stream.readString(exception); + } + if ((flags & 32) != 0) { + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 64) != 0) { + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 16384) != 0) { + bot_info_version = stream.readInt32(exception); + } + if ((flags & 262144) != 0) { + stream.readString(exception); + } + if ((flags & 524288) != 0) { + bot_inline_placeholder = stream.readString(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = self ? (flags | 1024) : (flags &~ 1024); - flags = contact ? (flags | 2048) : (flags &~ 2048); - flags = mutual_contact ? (flags | 4096) : (flags &~ 4096); - flags = deleted ? (flags | 8192) : (flags &~ 8192); - flags = bot ? (flags | 16384) : (flags &~ 16384); - flags = bot_chat_history ? (flags | 32768) : (flags &~ 32768); - flags = bot_nochats ? (flags | 65536) : (flags &~ 65536); - flags = verified ? (flags | 131072) : (flags &~ 131072); - flags = restricted ? (flags | 262144) : (flags &~ 262144); - flags = min ? (flags | 1048576) : (flags &~ 1048576); - flags = bot_inline_geo ? (flags | 2097152) : (flags &~ 2097152); - stream.writeInt32(flags); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = self ? (flags | 1024) : (flags &~ 1024); + flags = contact ? (flags | 2048) : (flags &~ 2048); + flags = mutual_contact ? (flags | 4096) : (flags &~ 4096); + flags = deleted ? (flags | 8192) : (flags &~ 8192); + flags = bot ? (flags | 16384) : (flags &~ 16384); + flags = bot_chat_history ? (flags | 32768) : (flags &~ 32768); + flags = bot_nochats ? (flags | 65536) : (flags &~ 65536); + flags = verified ? (flags | 131072) : (flags &~ 131072); + flags = restricted ? (flags | 262144) : (flags &~ 262144); + flags = min ? (flags | 1048576) : (flags &~ 1048576); + flags = bot_inline_geo ? (flags | 2097152) : (flags &~ 2097152); + stream.writeInt32(flags); stream.writeInt32((int) id); - if ((flags & 1) != 0) { - stream.writeInt64(access_hash); - } - if ((flags & 2) != 0) { - stream.writeString(first_name); - } - if ((flags & 4) != 0) { - stream.writeString(last_name); - } - if ((flags & 8) != 0) { - stream.writeString(username); - } - if ((flags & 16) != 0) { - stream.writeString(phone); - } - if ((flags & 32) != 0) { - photo.serializeToStream(stream); - } - if ((flags & 64) != 0) { - status.serializeToStream(stream); - } - if ((flags & 16384) != 0) { - stream.writeInt32(bot_info_version); - } - if ((flags & 262144) != 0) { - stream.writeString(""); - } - if ((flags & 524288) != 0) { - stream.writeString(bot_inline_placeholder); - } - } - } + if ((flags & 1) != 0) { + stream.writeInt64(access_hash); + } + if ((flags & 2) != 0) { + stream.writeString(first_name); + } + if ((flags & 4) != 0) { + stream.writeString(last_name); + } + if ((flags & 8) != 0) { + stream.writeString(username); + } + if ((flags & 16) != 0) { + stream.writeString(phone); + } + if ((flags & 32) != 0) { + photo.serializeToStream(stream); + } + if ((flags & 64) != 0) { + status.serializeToStream(stream); + } + if ((flags & 16384) != 0) { + stream.writeInt32(bot_info_version); + } + if ((flags & 262144) != 0) { + stream.writeString(""); + } + if ((flags & 524288) != 0) { + stream.writeString(bot_inline_placeholder); + } + } + } - public static class TL_user_old extends TL_user { - public static int constructor = 0x22e49072; + public static class TL_user_old extends TL_user { + public static int constructor = 0x22e49072; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - self = (flags & 1024) != 0; - contact = (flags & 2048) != 0; - mutual_contact = (flags & 4096) != 0; - deleted = (flags & 8192) != 0; - bot = (flags & 16384) != 0; - bot_chat_history = (flags & 32768) != 0; - bot_nochats = (flags & 65536) != 0; - verified = (flags & 131072) != 0; - explicit_content = (flags & 262144) != 0; - id = stream.readInt32(exception); - if ((flags & 1) != 0) { - access_hash = stream.readInt64(exception); - } - if ((flags & 2) != 0) { - first_name = stream.readString(exception); - } - if ((flags & 4) != 0) { - last_name = stream.readString(exception); - } - if ((flags & 8) != 0) { - username = stream.readString(exception); - } - if ((flags & 16) != 0) { - phone = stream.readString(exception); - } - if ((flags & 32) != 0) { - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 64) != 0) { - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 16384) != 0) { - bot_info_version = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + self = (flags & 1024) != 0; + contact = (flags & 2048) != 0; + mutual_contact = (flags & 4096) != 0; + deleted = (flags & 8192) != 0; + bot = (flags & 16384) != 0; + bot_chat_history = (flags & 32768) != 0; + bot_nochats = (flags & 65536) != 0; + verified = (flags & 131072) != 0; + explicit_content = (flags & 262144) != 0; + id = stream.readInt32(exception); + if ((flags & 1) != 0) { + access_hash = stream.readInt64(exception); + } + if ((flags & 2) != 0) { + first_name = stream.readString(exception); + } + if ((flags & 4) != 0) { + last_name = stream.readString(exception); + } + if ((flags & 8) != 0) { + username = stream.readString(exception); + } + if ((flags & 16) != 0) { + phone = stream.readString(exception); + } + if ((flags & 32) != 0) { + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 64) != 0) { + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 16384) != 0) { + bot_info_version = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = self ? (flags | 1024) : (flags &~ 1024); - flags = contact ? (flags | 2048) : (flags &~ 2048); - flags = mutual_contact ? (flags | 4096) : (flags &~ 4096); - flags = deleted ? (flags | 8192) : (flags &~ 8192); - flags = bot ? (flags | 16384) : (flags &~ 16384); - flags = bot_chat_history ? (flags | 32768) : (flags &~ 32768); - flags = bot_nochats ? (flags | 65536) : (flags &~ 65536); - flags = verified ? (flags | 131072) : (flags &~ 131072); - flags = explicit_content ? (flags | 262144) : (flags &~ 262144); - stream.writeInt32(flags); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = self ? (flags | 1024) : (flags &~ 1024); + flags = contact ? (flags | 2048) : (flags &~ 2048); + flags = mutual_contact ? (flags | 4096) : (flags &~ 4096); + flags = deleted ? (flags | 8192) : (flags &~ 8192); + flags = bot ? (flags | 16384) : (flags &~ 16384); + flags = bot_chat_history ? (flags | 32768) : (flags &~ 32768); + flags = bot_nochats ? (flags | 65536) : (flags &~ 65536); + flags = verified ? (flags | 131072) : (flags &~ 131072); + flags = explicit_content ? (flags | 262144) : (flags &~ 262144); + stream.writeInt32(flags); stream.writeInt32((int) id); - if ((flags & 1) != 0) { - stream.writeInt64(access_hash); - } - if ((flags & 2) != 0) { - stream.writeString(first_name); - } - if ((flags & 4) != 0) { - stream.writeString(last_name); - } - if ((flags & 8) != 0) { - stream.writeString(username); - } - if ((flags & 16) != 0) { - stream.writeString(phone); - } - if ((flags & 32) != 0) { - photo.serializeToStream(stream); - } - if ((flags & 64) != 0) { - status.serializeToStream(stream); - } - if ((flags & 16384) != 0) { - stream.writeInt32(bot_info_version); - } - } - } + if ((flags & 1) != 0) { + stream.writeInt64(access_hash); + } + if ((flags & 2) != 0) { + stream.writeString(first_name); + } + if ((flags & 4) != 0) { + stream.writeString(last_name); + } + if ((flags & 8) != 0) { + stream.writeString(username); + } + if ((flags & 16) != 0) { + stream.writeString(phone); + } + if ((flags & 32) != 0) { + photo.serializeToStream(stream); + } + if ((flags & 64) != 0) { + status.serializeToStream(stream); + } + if ((flags & 16384) != 0) { + stream.writeInt32(bot_info_version); + } + } + } - public static class TL_userSelf_old2 extends TL_userSelf_old3 { - public static int constructor = 0x7007b451; + public static class TL_userSelf_old2 extends TL_userSelf_old3 { + public static int constructor = 0x7007b451; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - username = stream.readString(exception); - phone = stream.readString(exception); - photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - inactive = stream.readBool(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + username = stream.readString(exception); + phone = stream.readString(exception); + photo = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + status = UserStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + inactive = stream.readBool(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32((int) id); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeString(username); - stream.writeString(phone); - photo.serializeToStream(stream); - status.serializeToStream(stream); - stream.writeBool(inactive); - } - } + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeString(username); + stream.writeString(phone); + photo.serializeToStream(stream); + status.serializeToStream(stream); + stream.writeBool(inactive); + } + } public static abstract class RecentMeUrl extends TLObject { @@ -20376,124 +20410,124 @@ public class TLRPC { } } - public static class TL_messages_highScores extends TLObject { - public static int constructor = 0x9a3bfd99; + public static class TL_messages_highScores extends TLObject { + public static int constructor = 0x9a3bfd99; - public ArrayList scores = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); + public ArrayList scores = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); - public static TL_messages_highScores TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_highScores.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_highScores", constructor)); - } else { - return null; - } - } - TL_messages_highScores result = new TL_messages_highScores(); - result.readParams(stream, exception); - return result; - } + public static TL_messages_highScores TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_highScores.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_highScores", constructor)); + } else { + return null; + } + } + TL_messages_highScores result = new TL_messages_highScores(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_highScore object = TL_highScore.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - scores.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_highScore object = TL_highScore.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + scores.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = scores.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - scores.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = scores.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + scores.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } - public static class TL_phone_phoneCall extends TLObject { - public static int constructor = 0xec82e140; + public static class TL_phone_phoneCall extends TLObject { + public static int constructor = 0xec82e140; - public PhoneCall phone_call; - public ArrayList users = new ArrayList<>(); + public PhoneCall phone_call; + public ArrayList users = new ArrayList<>(); - public static TL_phone_phoneCall TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_phone_phoneCall.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_phone_phoneCall", constructor)); - } else { - return null; - } - } - TL_phone_phoneCall result = new TL_phone_phoneCall(); - result.readParams(stream, exception); - return result; - } + public static TL_phone_phoneCall TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_phone_phoneCall.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_phone_phoneCall", constructor)); + } else { + return null; + } + } + TL_phone_phoneCall result = new TL_phone_phoneCall(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - phone_call = PhoneCall.TLdeserialize(stream, stream.readInt32(exception), exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + phone_call = PhoneCall.TLdeserialize(stream, stream.readInt32(exception), exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - phone_call.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + phone_call.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } public static abstract class ChannelParticipantsFilter extends TLObject { @@ -20648,45 +20682,45 @@ public class TLRPC { } } - public static abstract class MessageAction extends TLObject { - public String title; - public String address; - public DecryptedMessageAction encryptedAction; - public String message; - public ArrayList users = new ArrayList<>(); - public TL_inputGroupCall call; - public long channel_id; - public Photo photo; - public long chat_id; - public long user_id; - public UserProfilePhoto newUserPhoto; - public long inviter_id; - public int ttl; - public int flags; - public long call_id; - public PhoneCallDiscardReason reason; - public int duration; - public String currency; - public long total_amount; - public long game_id; - public int score; - public boolean video; + public static abstract class MessageAction extends TLObject { + public String title; + public String address; + public DecryptedMessageAction encryptedAction; + public String message; + public ArrayList users = new ArrayList<>(); + public TL_inputGroupCall call; + public long channel_id; + public Photo photo; + public long chat_id; + public long user_id; + public UserProfilePhoto newUserPhoto; + public long inviter_id; + public int ttl; + public int flags; + public long call_id; + public PhoneCallDiscardReason reason; + public int duration; + public String currency; + public long total_amount; + public long game_id; + public int score; + public boolean video; - public static MessageAction TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - MessageAction result = null; - switch (constructor) { - case 0x555555F5: - result = new TL_messageActionLoginUnknownLocation(); - break; - case 0x555555F7: - result = new TL_messageEncryptedAction(); - break; - case 0xfae69f56: - result = new TL_messageActionCustomAction(); - break; - case 0xa6638b9a: - result = new TL_messageActionChatCreate_layer131(); - break; + public static MessageAction TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + MessageAction result = null; + switch (constructor) { + case 0x555555F5: + result = new TL_messageActionLoginUnknownLocation(); + break; + case 0x555555F7: + result = new TL_messageEncryptedAction(); + break; + case 0xfae69f56: + result = new TL_messageActionCustomAction(); + break; + case 0xa6638b9a: + result = new TL_messageActionChatCreate_layer131(); + break; case 0xbd47cbad: result = new TL_messageActionChatCreate(); break; @@ -20699,165 +20733,165 @@ public class TLRPC { case 0xa43f30cc: result = new TL_messageActionChatDeleteUser(); break; - case 0x51bdb021: - result = new TL_messageActionChatMigrateTo_layer131(); - break; + case 0x51bdb021: + result = new TL_messageActionChatMigrateTo_layer131(); + break; case 0xe1037f92: result = new TL_messageActionChatMigrateTo(); break; case 0xea3948e9: result = new TL_messageActionChannelMigrateFrom(); break; - case 0x7a0d7f42: - result = new TL_messageActionGroupCall(); - break; + case 0x7a0d7f42: + result = new TL_messageActionGroupCall(); + break; case 0xaa786345: result = new TL_messageActionSetChatTheme(); break; - case 0x4792929b: - result = new TL_messageActionScreenshotTaken(); - break; + case 0x4792929b: + result = new TL_messageActionScreenshotTaken(); + break; case 0x1baa035: result = new TL_messageActionPhoneNumberRequest(); break; case 0xebbca3cb: result = new TL_messageActionChatJoinedByRequest(); break; - case 0x9fbab604: - result = new TL_messageActionHistoryClear(); - break; - case 0x7fcb13a8: - result = new TL_messageActionChatEditPhoto(); - break; + case 0x9fbab604: + result = new TL_messageActionHistoryClear(); + break; + case 0x7fcb13a8: + result = new TL_messageActionChatEditPhoto(); + break; case 0x31224c3: result = new TL_messageActionChatJoinedByLink(); break; - case 0xb055eaee: - result = new TL_messageActionChannelMigrateFrom_layer131(); - break; - case 0x488a7337: - result = new TL_messageActionChatAddUser_layer131(); - break; - case 0xb2ae9b0c: - result = new TL_messageActionChatDeleteUser_layer131(); - break; - case 0x55555557: - result = new TL_messageActionCreatedBroadcastList(); - break; - case 0x55555550: - result = new TL_messageActionUserJoined(); - break; - case 0x55555551: - result = new TL_messageActionUserUpdatedPhoto(); - break; - case 0x5e3cfc4b: - result = new TL_messageActionChatAddUser_old(); - break; - case 0x55555552: - result = new TL_messageActionTTLChange(); - break; + case 0xb055eaee: + result = new TL_messageActionChannelMigrateFrom_layer131(); + break; + case 0x488a7337: + result = new TL_messageActionChatAddUser_layer131(); + break; + case 0xb2ae9b0c: + result = new TL_messageActionChatDeleteUser_layer131(); + break; + case 0x55555557: + result = new TL_messageActionCreatedBroadcastList(); + break; + case 0x55555550: + result = new TL_messageActionUserJoined(); + break; + case 0x55555551: + result = new TL_messageActionUserUpdatedPhoto(); + break; + case 0x5e3cfc4b: + result = new TL_messageActionChatAddUser_old(); + break; + case 0x55555552: + result = new TL_messageActionTTLChange(); + break; case 0xaa1afbfd: result = new TL_messageActionSetMessagesTTL(); break; case 0xd95c6154: result = new TL_messageActionSecureValuesSent(); break; - case 0xf89cf5e8: - result = new TL_messageActionChatJoinedByLink_layer131(); - break; + case 0xf89cf5e8: + result = new TL_messageActionChatJoinedByLink_layer131(); + break; case 0xf3f25f76: result = new TL_messageActionContactSignUp(); break; - case 0x95d2ac92: - result = new TL_messageActionChannelCreate(); - break; - case 0x94bd38ed: - result = new TL_messageActionPinMessage(); - break; + case 0x95d2ac92: + result = new TL_messageActionChannelCreate(); + break; + case 0x94bd38ed: + result = new TL_messageActionPinMessage(); + break; case 0x98e0d697: result = new TL_messageActionGeoProximityReached(); break; - case 0x95e3fbef: - result = new TL_messageActionChatDeletePhoto(); - break; + case 0x95e3fbef: + result = new TL_messageActionChatDeletePhoto(); + break; case 0x76b9f11a: result = new TL_messageActionInviteToGroupCall_layer131(); break; - case 0x80e11a7f: - result = new TL_messageActionPhoneCall(); - break; - case 0xb5a1ce5a: - result = new TL_messageActionChatEditTitle(); - break; - case 0xabe9affe: - result = new TL_messageActionBotAllowed(); - break; - case 0x40699cd0: - result = new TL_messageActionPaymentSent(); - break; - case 0xb6aef7b0: - result = new TL_messageActionEmpty(); - break; - case 0x92a72876: - result = new TL_messageActionGameScore(); - break; + case 0x80e11a7f: + result = new TL_messageActionPhoneCall(); + break; + case 0xb5a1ce5a: + result = new TL_messageActionChatEditTitle(); + break; + case 0xabe9affe: + result = new TL_messageActionBotAllowed(); + break; + case 0x40699cd0: + result = new TL_messageActionPaymentSent(); + break; + case 0xb6aef7b0: + result = new TL_messageActionEmpty(); + break; + case 0x92a72876: + result = new TL_messageActionGameScore(); + break; case 0xb3a07661: result = new TL_messageActionGroupCallScheduled(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in MessageAction", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in MessageAction", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messageActionLoginUnknownLocation extends MessageAction { - public static int constructor = 0x555555F5; + public static class TL_messageActionLoginUnknownLocation extends MessageAction { + public static int constructor = 0x555555F5; - public void readParams(AbstractSerializedData stream, boolean exception) { - title = stream.readString(exception); - address = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + title = stream.readString(exception); + address = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(title); - stream.writeString(address); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(title); + stream.writeString(address); + } + } - public static class TL_messageEncryptedAction extends MessageAction { - public static int constructor = 0x555555F7; + public static class TL_messageEncryptedAction extends MessageAction { + public static int constructor = 0x555555F7; - public void readParams(AbstractSerializedData stream, boolean exception) { - encryptedAction = DecryptedMessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + encryptedAction = DecryptedMessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - encryptedAction.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + encryptedAction.serializeToStream(stream); + } + } - public static class TL_messageActionCustomAction extends MessageAction { - public static int constructor = 0xfae69f56; + public static class TL_messageActionCustomAction extends MessageAction { + public static int constructor = 0xfae69f56; - public void readParams(AbstractSerializedData stream, boolean exception) { - message = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + message = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(message); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(message); + } + } public static class TL_messageActionChatCreate extends MessageAction { public static int constructor = 0xbd47cbad; @@ -20890,36 +20924,36 @@ public class TLRPC { } } - public static class TL_messageActionChatCreate_layer131 extends TL_messageActionChatCreate { - public static int constructor = 0xa6638b9a; + public static class TL_messageActionChatCreate_layer131 extends TL_messageActionChatCreate { + public static int constructor = 0xa6638b9a; - public void readParams(AbstractSerializedData stream, boolean exception) { - title = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - users.add((long) stream.readInt32(exception)); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + title = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + users.add((long) stream.readInt32(exception)); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(title); - stream.writeInt32(0x1cb5c415); - int count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt32((int) (long) users.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(title); + stream.writeInt32(0x1cb5c415); + int count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt32((int) (long) users.get(a)); + } + } + } public static class TL_messageActionInviteToGroupCall extends MessageAction { public static int constructor = 0x502f92f7; @@ -21070,51 +21104,51 @@ public class TLRPC { } } - public static class TL_messageActionChatMigrateTo_layer131 extends TL_messageActionChatMigrateTo { - public static int constructor = 0x51bdb021; + public static class TL_messageActionChatMigrateTo_layer131 extends TL_messageActionChatMigrateTo { + public static int constructor = 0x51bdb021; - public void readParams(AbstractSerializedData stream, boolean exception) { - channel_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + channel_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) channel_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) channel_id); + } + } - public static class TL_messageActionHistoryClear extends MessageAction { - public static int constructor = 0x9fbab604; + public static class TL_messageActionHistoryClear extends MessageAction { + public static int constructor = 0x9fbab604; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_messageActionChatEditPhoto extends MessageAction { - public static int constructor = 0x7fcb13a8; + public static class TL_messageActionChatEditPhoto extends MessageAction { + public static int constructor = 0x7fcb13a8; - public void readParams(AbstractSerializedData stream, boolean exception) { - photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - photo.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + photo.serializeToStream(stream); + } + } - public static class TL_messageActionScreenshotTaken extends MessageAction { - public static int constructor = 0x4792929b; + public static class TL_messageActionScreenshotTaken extends MessageAction { + public static int constructor = 0x4792929b; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messageActionPhoneNumberRequest extends MessageAction { public static int constructor = 0x1baa035; @@ -21162,73 +21196,73 @@ public class TLRPC { } } - public static class TL_messageActionChannelMigrateFrom_layer131 extends TL_messageActionChannelMigrateFrom { - public static int constructor = 0xb055eaee; + public static class TL_messageActionChannelMigrateFrom_layer131 extends TL_messageActionChannelMigrateFrom { + public static int constructor = 0xb055eaee; - public void readParams(AbstractSerializedData stream, boolean exception) { - title = stream.readString(exception); - chat_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + title = stream.readString(exception); + chat_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(title); - stream.writeInt32((int) chat_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(title); + stream.writeInt32((int) chat_id); + } + } - public static class TL_messageActionChatAddUser_layer131 extends TL_messageActionChatAddUser { - public static int constructor = 0x488a7337; + public static class TL_messageActionChatAddUser_layer131 extends TL_messageActionChatAddUser { + public static int constructor = 0x488a7337; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - users.add((long) stream.readInt32(exception)); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + users.add((long) stream.readInt32(exception)); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt32((int) (long) users.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt32((int) (long) users.get(a)); + } + } + } - public static class TL_messageActionChatDeleteUser_layer131 extends TL_messageActionChatDeleteUser { - public static int constructor = 0xb2ae9b0c; + public static class TL_messageActionChatDeleteUser_layer131 extends TL_messageActionChatDeleteUser { + public static int constructor = 0xb2ae9b0c; - public void readParams(AbstractSerializedData stream, boolean exception) { - user_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + user_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) user_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) user_id); + } + } - public static class TL_messageActionCreatedBroadcastList extends MessageAction { - public static int constructor = 0x55555557; + public static class TL_messageActionCreatedBroadcastList extends MessageAction { + public static int constructor = 0x55555557; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messageActionInviteToGroupCall_layer131 extends TL_messageActionInviteToGroupCall { public static int constructor = 0x76b9f11a; @@ -21261,28 +21295,28 @@ public class TLRPC { } } - public static class TL_messageActionUserJoined extends MessageAction { - public static int constructor = 0x55555550; + public static class TL_messageActionUserJoined extends MessageAction { + public static int constructor = 0x55555550; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_messageActionUserUpdatedPhoto extends MessageAction { - public static int constructor = 0x55555551; + public static class TL_messageActionUserUpdatedPhoto extends MessageAction { + public static int constructor = 0x55555551; - public void readParams(AbstractSerializedData stream, boolean exception) { - newUserPhoto = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + newUserPhoto = UserProfilePhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - newUserPhoto.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + newUserPhoto.serializeToStream(stream); + } + } public static class TL_messageActionContactSignUp extends MessageAction { public static int constructor = 0xf3f25f76; @@ -21293,33 +21327,33 @@ public class TLRPC { } } - public static class TL_messageActionChatAddUser_old extends TL_messageActionChatAddUser { - public static int constructor = 0x5e3cfc4b; + public static class TL_messageActionChatAddUser_old extends TL_messageActionChatAddUser { + public static int constructor = 0x5e3cfc4b; - public void readParams(AbstractSerializedData stream, boolean exception) { - user_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + user_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) user_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) user_id); + } + } - public static class TL_messageActionTTLChange extends MessageAction { - public static int constructor = 0x55555552; + public static class TL_messageActionTTLChange extends MessageAction { + public static int constructor = 0x55555552; - public void readParams(AbstractSerializedData stream, boolean exception) { - ttl = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + ttl = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(ttl); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(ttl); + } + } public static class TL_messageActionSetMessagesTTL extends MessageAction { public static int constructor = 0xaa1afbfd; @@ -21336,33 +21370,33 @@ public class TLRPC { } } - public static class TL_messageActionChatJoinedByLink_layer131 extends TL_messageActionChatJoinedByLink { - public static int constructor = 0xf89cf5e8; + public static class TL_messageActionChatJoinedByLink_layer131 extends TL_messageActionChatJoinedByLink { + public static int constructor = 0xf89cf5e8; - public void readParams(AbstractSerializedData stream, boolean exception) { - inviter_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + inviter_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) inviter_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) inviter_id); + } + } - public static class TL_messageActionChannelCreate extends MessageAction { - public static int constructor = 0x95d2ac92; + public static class TL_messageActionChannelCreate extends MessageAction { + public static int constructor = 0x95d2ac92; - public void readParams(AbstractSerializedData stream, boolean exception) { - title = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + title = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(title); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(title); + } + } public static class TL_messageActionSecureValuesSent extends MessageAction { public static int constructor = 0xd95c6154; @@ -21398,14 +21432,14 @@ public class TLRPC { } } - public static class TL_messageActionPinMessage extends MessageAction { - public static int constructor = 0x94bd38ed; + public static class TL_messageActionPinMessage extends MessageAction { + public static int constructor = 0x94bd38ed; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messageActionGeoProximityReached extends MessageAction { public static int constructor = 0x98e0d697; @@ -21428,14 +21462,14 @@ public class TLRPC { } } - public static class TL_messageActionChatDeletePhoto extends MessageAction { - public static int constructor = 0x95e3fbef; + public static class TL_messageActionChatDeletePhoto extends MessageAction { + public static int constructor = 0x95e3fbef; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messageActionPhoneCall extends MessageAction { public static int constructor = 0x80e11a7f; @@ -21467,75 +21501,75 @@ public class TLRPC { } } - public static class TL_messageActionChatEditTitle extends MessageAction { - public static int constructor = 0xb5a1ce5a; + public static class TL_messageActionChatEditTitle extends MessageAction { + public static int constructor = 0xb5a1ce5a; - public void readParams(AbstractSerializedData stream, boolean exception) { - title = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + title = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(title); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(title); + } + } - public static class TL_messageActionPaymentSent extends MessageAction { - public static int constructor = 0x40699cd0; + public static class TL_messageActionPaymentSent extends MessageAction { + public static int constructor = 0x40699cd0; - public void readParams(AbstractSerializedData stream, boolean exception) { - currency = stream.readString(exception); - total_amount = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + currency = stream.readString(exception); + total_amount = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(currency); - stream.writeInt64(total_amount); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(currency); + stream.writeInt64(total_amount); + } + } - public static class TL_messageActionBotAllowed extends MessageAction { - public static int constructor = 0xabe9affe; + public static class TL_messageActionBotAllowed extends MessageAction { + public static int constructor = 0xabe9affe; - public String domain; + public String domain; - public void readParams(AbstractSerializedData stream, boolean exception) { - domain = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + domain = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(domain); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(domain); + } + } - public static class TL_messageActionEmpty extends MessageAction { - public static int constructor = 0xb6aef7b0; + public static class TL_messageActionEmpty extends MessageAction { + public static int constructor = 0xb6aef7b0; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_messageActionGameScore extends MessageAction { - public static int constructor = 0x92a72876; + public static class TL_messageActionGameScore extends MessageAction { + public static int constructor = 0x92a72876; - public void readParams(AbstractSerializedData stream, boolean exception) { - game_id = stream.readInt64(exception); - score = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + game_id = stream.readInt64(exception); + score = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(game_id); - stream.writeInt32(score); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(game_id); + stream.writeInt32(score); + } + } public static class TL_messageActionGroupCallScheduled extends MessageAction { public static int constructor = 0xb3a07661; @@ -21666,309 +21700,309 @@ public class TLRPC { } } - public static class TL_messages_archivedStickers extends TLObject { - public static int constructor = 0x4fcba9c8; + public static class TL_messages_archivedStickers extends TLObject { + public static int constructor = 0x4fcba9c8; - public int count; - public ArrayList sets = new ArrayList<>(); + public int count; + public ArrayList sets = new ArrayList<>(); - public static TL_messages_archivedStickers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_archivedStickers.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_archivedStickers", constructor)); - } else { - return null; - } - } - TL_messages_archivedStickers result = new TL_messages_archivedStickers(); - result.readParams(stream, exception); - return result; - } + public static TL_messages_archivedStickers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_archivedStickers.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_archivedStickers", constructor)); + } else { + return null; + } + } + TL_messages_archivedStickers result = new TL_messages_archivedStickers(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - count = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - StickerSetCovered object = StickerSetCovered.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - sets.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + count = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + StickerSetCovered object = StickerSetCovered.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + sets.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(count); - stream.writeInt32(0x1cb5c415); - int count = sets.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - sets.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(count); + stream.writeInt32(0x1cb5c415); + int count = sets.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + sets.get(a).serializeToStream(stream); + } + } + } - public static abstract class DecryptedMessage extends TLObject { - public long random_id; - public int ttl; - public String message; - public DecryptedMessageMedia media; - public DecryptedMessageAction action; - public byte[] random_bytes; - public int flags; - public ArrayList entities = new ArrayList<>(); - public String via_bot_name; - public long reply_to_random_id; - public long grouped_id; - public boolean silent; + public static abstract class DecryptedMessage extends TLObject { + public long random_id; + public int ttl; + public String message; + public DecryptedMessageMedia media; + public DecryptedMessageAction action; + public byte[] random_bytes; + public int flags; + public ArrayList entities = new ArrayList<>(); + public String via_bot_name; + public long reply_to_random_id; + public long grouped_id; + public boolean silent; - public static DecryptedMessage TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - DecryptedMessage result = null; - switch (constructor) { - case 0x204d3878: - result = new TL_decryptedMessage_layer17(); - break; - case 0x73164160: - result = new TL_decryptedMessageService(); - break; - case 0xaa48327d: - result = new TL_decryptedMessageService_layer8(); - break; - case 0x1f814f1f: - result = new TL_decryptedMessage_layer8(); - break; - case 0x91cc4674: - result = new TL_decryptedMessage(); - break; - case 0x36b091de: - result = new TL_decryptedMessage_layer45(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in DecryptedMessage", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static DecryptedMessage TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + DecryptedMessage result = null; + switch (constructor) { + case 0x204d3878: + result = new TL_decryptedMessage_layer17(); + break; + case 0x73164160: + result = new TL_decryptedMessageService(); + break; + case 0xaa48327d: + result = new TL_decryptedMessageService_layer8(); + break; + case 0x1f814f1f: + result = new TL_decryptedMessage_layer8(); + break; + case 0x91cc4674: + result = new TL_decryptedMessage(); + break; + case 0x36b091de: + result = new TL_decryptedMessage_layer45(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in DecryptedMessage", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_decryptedMessage_layer17 extends TL_decryptedMessage { - public static int constructor = 0x204d3878; + public static class TL_decryptedMessage_layer17 extends TL_decryptedMessage { + public static int constructor = 0x204d3878; - public void readParams(AbstractSerializedData stream, boolean exception) { - random_id = stream.readInt64(exception); - ttl = stream.readInt32(exception); - message = stream.readString(exception); - media = DecryptedMessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + random_id = stream.readInt64(exception); + ttl = stream.readInt32(exception); + message = stream.readString(exception); + media = DecryptedMessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(random_id); - stream.writeInt32(ttl); - stream.writeString(message); - media.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(random_id); + stream.writeInt32(ttl); + stream.writeString(message); + media.serializeToStream(stream); + } + } - public static class TL_decryptedMessageService extends DecryptedMessage { - public static int constructor = 0x73164160; + public static class TL_decryptedMessageService extends DecryptedMessage { + public static int constructor = 0x73164160; - public void readParams(AbstractSerializedData stream, boolean exception) { - random_id = stream.readInt64(exception); - action = DecryptedMessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + random_id = stream.readInt64(exception); + action = DecryptedMessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(random_id); - action.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(random_id); + action.serializeToStream(stream); + } + } - public static class TL_decryptedMessageService_layer8 extends TL_decryptedMessageService { - public static int constructor = 0xaa48327d; + public static class TL_decryptedMessageService_layer8 extends TL_decryptedMessageService { + public static int constructor = 0xaa48327d; - public void readParams(AbstractSerializedData stream, boolean exception) { - random_id = stream.readInt64(exception); - random_bytes = stream.readByteArray(exception); - action = DecryptedMessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + random_id = stream.readInt64(exception); + random_bytes = stream.readByteArray(exception); + action = DecryptedMessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(random_id); - stream.writeByteArray(random_bytes); - action.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(random_id); + stream.writeByteArray(random_bytes); + action.serializeToStream(stream); + } + } - public static class TL_decryptedMessage_layer8 extends TL_decryptedMessage { - public static int constructor = 0x1f814f1f; + public static class TL_decryptedMessage_layer8 extends TL_decryptedMessage { + public static int constructor = 0x1f814f1f; - public void readParams(AbstractSerializedData stream, boolean exception) { - random_id = stream.readInt64(exception); - random_bytes = stream.readByteArray(exception); - message = stream.readString(exception); - media = DecryptedMessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + random_id = stream.readInt64(exception); + random_bytes = stream.readByteArray(exception); + message = stream.readString(exception); + media = DecryptedMessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(random_id); - stream.writeByteArray(random_bytes); - stream.writeString(message); - media.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(random_id); + stream.writeByteArray(random_bytes); + stream.writeString(message); + media.serializeToStream(stream); + } + } - public static class TL_decryptedMessage extends DecryptedMessage { - public static int constructor = 0x91cc4674; + public static class TL_decryptedMessage extends DecryptedMessage { + public static int constructor = 0x91cc4674; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); silent = (flags & 32) != 0; - random_id = stream.readInt64(exception); - ttl = stream.readInt32(exception); - message = stream.readString(exception); - if ((flags & 512) != 0) { - media = DecryptedMessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 128) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - } - if ((flags & 2048) != 0) { - via_bot_name = stream.readString(exception); - } - if ((flags & 8) != 0) { - reply_to_random_id = stream.readInt64(exception); - } - if ((flags & 131072) != 0) { - grouped_id = stream.readInt64(exception); - } - } + random_id = stream.readInt64(exception); + ttl = stream.readInt32(exception); + message = stream.readString(exception); + if ((flags & 512) != 0) { + media = DecryptedMessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 128) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + } + if ((flags & 2048) != 0) { + via_bot_name = stream.readString(exception); + } + if ((flags & 8) != 0) { + reply_to_random_id = stream.readInt64(exception); + } + if ((flags & 131072) != 0) { + grouped_id = stream.readInt64(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); flags = silent ? (flags | 32) : (flags &~ 32); - stream.writeInt32(flags); - stream.writeInt64(random_id); - stream.writeInt32(ttl); - stream.writeString(message); - if ((flags & 512) != 0) { - media.serializeToStream(stream); - } - if ((flags & 128) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - if ((flags & 2048) != 0) { - stream.writeString(via_bot_name); - } - if ((flags & 8) != 0) { - stream.writeInt64(reply_to_random_id); - } - if ((flags & 131072) != 0) { - stream.writeInt64(grouped_id); - } - } - } + stream.writeInt32(flags); + stream.writeInt64(random_id); + stream.writeInt32(ttl); + stream.writeString(message); + if ((flags & 512) != 0) { + media.serializeToStream(stream); + } + if ((flags & 128) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + if ((flags & 2048) != 0) { + stream.writeString(via_bot_name); + } + if ((flags & 8) != 0) { + stream.writeInt64(reply_to_random_id); + } + if ((flags & 131072) != 0) { + stream.writeInt64(grouped_id); + } + } + } - public static class TL_decryptedMessage_layer45 extends TL_decryptedMessage { - public static int constructor = 0x36b091de; + public static class TL_decryptedMessage_layer45 extends TL_decryptedMessage { + public static int constructor = 0x36b091de; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - random_id = stream.readInt64(exception); - ttl = stream.readInt32(exception); - message = stream.readString(exception); - if ((flags & 512) != 0) { - media = DecryptedMessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 128) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - } - if ((flags & 2048) != 0) { - via_bot_name = stream.readString(exception); - } - if ((flags & 8) != 0) { - reply_to_random_id = stream.readInt64(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + random_id = stream.readInt64(exception); + ttl = stream.readInt32(exception); + message = stream.readString(exception); + if ((flags & 512) != 0) { + media = DecryptedMessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 128) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + } + if ((flags & 2048) != 0) { + via_bot_name = stream.readString(exception); + } + if ((flags & 8) != 0) { + reply_to_random_id = stream.readInt64(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeInt64(random_id); - stream.writeInt32(ttl); - stream.writeString(message); - if ((flags & 512) != 0) { - media.serializeToStream(stream); - } - if ((flags & 128) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - if ((flags & 2048) != 0) { - stream.writeString(via_bot_name); - } - if ((flags & 8) != 0) { - stream.writeInt64(reply_to_random_id); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeInt64(random_id); + stream.writeInt32(ttl); + stream.writeString(message); + if ((flags & 512) != 0) { + media.serializeToStream(stream); + } + if ((flags & 128) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + if ((flags & 2048) != 0) { + stream.writeString(via_bot_name); + } + if ((flags & 8) != 0) { + stream.writeInt64(reply_to_random_id); + } + } + } public static abstract class account_Themes extends TLObject { @@ -22212,61 +22246,61 @@ public class TLRPC { } } - public static class TL_inputWebDocument extends TLObject { - public static int constructor = 0x9bed434d; + public static class TL_inputWebDocument extends TLObject { + public static int constructor = 0x9bed434d; - public String url; - public int size; - public String mime_type; - public ArrayList attributes = new ArrayList<>(); + public String url; + public int size; + public String mime_type; + public ArrayList attributes = new ArrayList<>(); - public static TL_inputWebDocument TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_inputWebDocument.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_inputWebDocument", constructor)); - } else { - return null; - } - } - TL_inputWebDocument result = new TL_inputWebDocument(); - result.readParams(stream, exception); - return result; - } + public static TL_inputWebDocument TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_inputWebDocument.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_inputWebDocument", constructor)); + } else { + return null; + } + } + TL_inputWebDocument result = new TL_inputWebDocument(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - url = stream.readString(exception); - size = stream.readInt32(exception); - mime_type = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - attributes.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + url = stream.readString(exception); + size = stream.readInt32(exception); + mime_type = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + attributes.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(url); - stream.writeInt32(size); - stream.writeString(mime_type); - stream.writeInt32(0x1cb5c415); - int count = attributes.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - attributes.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(url); + stream.writeInt32(size); + stream.writeString(mime_type); + stream.writeInt32(0x1cb5c415); + int count = attributes.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + attributes.get(a).serializeToStream(stream); + } + } + } public static class TL_messageReactions extends TLObject { public static int constructor = 0xb87a24d1; @@ -22321,239 +22355,239 @@ public class TLRPC { } } - public static abstract class Video extends TLObject { - public long id; - public long access_hash; - public long user_id; - public int date; - public int duration; - public int size; - public PhotoSize thumb; - public int dc_id; - public int w; - public int h; - public String mime_type; - public String caption; - public byte[] key; - public byte[] iv; + public static abstract class Video extends TLObject { + public long id; + public long access_hash; + public long user_id; + public int date; + public int duration; + public int size; + public PhotoSize thumb; + public int dc_id; + public int w; + public int h; + public String mime_type; + public String caption; + public byte[] key; + public byte[] iv; - public static Video TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - Video result = null; - switch (constructor) { - case 0xee9f4a4d: - result = new TL_video_old3(); - break; - case 0xf72887d3: - result = new TL_video_layer45(); - break; - case 0x55555553: - result = new TL_videoEncrypted(); - break; - case 0x5a04a49f: - result = new TL_video_old(); - break; - case 0x388fa391: - result = new TL_video_old2(); - break; - case 0xc10658a8: - result = new TL_videoEmpty_layer45(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in Video", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static Video TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + Video result = null; + switch (constructor) { + case 0xee9f4a4d: + result = new TL_video_old3(); + break; + case 0xf72887d3: + result = new TL_video_layer45(); + break; + case 0x55555553: + result = new TL_videoEncrypted(); + break; + case 0x5a04a49f: + result = new TL_video_old(); + break; + case 0x388fa391: + result = new TL_video_old2(); + break; + case 0xc10658a8: + result = new TL_videoEmpty_layer45(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in Video", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_video_old3 extends TL_video_layer45 { - public static int constructor = 0xee9f4a4d; + public static class TL_video_old3 extends TL_video_layer45 { + public static int constructor = 0xee9f4a4d; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - user_id = stream.readInt32(exception); - date = stream.readInt32(exception); - duration = stream.readInt32(exception); - size = stream.readInt32(exception); - thumb = PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception); - dc_id = stream.readInt32(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + user_id = stream.readInt32(exception); + date = stream.readInt32(exception); + duration = stream.readInt32(exception); + size = stream.readInt32(exception); + thumb = PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception); + dc_id = stream.readInt32(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32((int) user_id); - stream.writeInt32(date); - stream.writeInt32(duration); - stream.writeInt32(size); - thumb.serializeToStream(stream); - stream.writeInt32(dc_id); - stream.writeInt32(w); - stream.writeInt32(h); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32((int) user_id); + stream.writeInt32(date); + stream.writeInt32(duration); + stream.writeInt32(size); + thumb.serializeToStream(stream); + stream.writeInt32(dc_id); + stream.writeInt32(w); + stream.writeInt32(h); + } + } - public static class TL_video_layer45 extends Video { - public static int constructor = 0xf72887d3; + public static class TL_video_layer45 extends Video { + public static int constructor = 0xf72887d3; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); - duration = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - thumb = PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception); - dc_id = stream.readInt32(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + date = stream.readInt32(exception); + duration = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + thumb = PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception); + dc_id = stream.readInt32(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32(date); - stream.writeInt32(duration); - stream.writeString(mime_type); - stream.writeInt32(size); - thumb.serializeToStream(stream); - stream.writeInt32(dc_id); - stream.writeInt32(w); - stream.writeInt32(h); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32(date); + stream.writeInt32(duration); + stream.writeString(mime_type); + stream.writeInt32(size); + thumb.serializeToStream(stream); + stream.writeInt32(dc_id); + stream.writeInt32(w); + stream.writeInt32(h); + } + } - public static class TL_videoEncrypted extends TL_video_layer45 { - public static int constructor = 0x55555553; + public static class TL_videoEncrypted extends TL_video_layer45 { + public static int constructor = 0x55555553; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - user_id = stream.readInt32(exception); - date = stream.readInt32(exception); - caption = stream.readString(exception); - duration = stream.readInt32(exception); - size = stream.readInt32(exception); - thumb = PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception); - dc_id = stream.readInt32(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + user_id = stream.readInt32(exception); + date = stream.readInt32(exception); + caption = stream.readString(exception); + duration = stream.readInt32(exception); + size = stream.readInt32(exception); + thumb = PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception); + dc_id = stream.readInt32(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32((int) user_id); - stream.writeInt32(date); - stream.writeString(caption); - stream.writeInt32(duration); - stream.writeInt32(size); - thumb.serializeToStream(stream); - stream.writeInt32(dc_id); - stream.writeInt32(w); - stream.writeInt32(h); - stream.writeByteArray(key); - stream.writeByteArray(iv); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32((int) user_id); + stream.writeInt32(date); + stream.writeString(caption); + stream.writeInt32(duration); + stream.writeInt32(size); + thumb.serializeToStream(stream); + stream.writeInt32(dc_id); + stream.writeInt32(w); + stream.writeInt32(h); + stream.writeByteArray(key); + stream.writeByteArray(iv); + } + } - public static class TL_video_old extends TL_video_layer45 { - public static int constructor = 0x5a04a49f; + public static class TL_video_old extends TL_video_layer45 { + public static int constructor = 0x5a04a49f; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - user_id = stream.readInt32(exception); - date = stream.readInt32(exception); - caption = stream.readString(exception); - duration = stream.readInt32(exception); - size = stream.readInt32(exception); - thumb = PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception); - dc_id = stream.readInt32(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + user_id = stream.readInt32(exception); + date = stream.readInt32(exception); + caption = stream.readString(exception); + duration = stream.readInt32(exception); + size = stream.readInt32(exception); + thumb = PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception); + dc_id = stream.readInt32(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32((int) user_id); - stream.writeInt32(date); - stream.writeString(caption); - stream.writeInt32(duration); - stream.writeInt32(size); - thumb.serializeToStream(stream); - stream.writeInt32(dc_id); - stream.writeInt32(w); - stream.writeInt32(h); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32((int) user_id); + stream.writeInt32(date); + stream.writeString(caption); + stream.writeInt32(duration); + stream.writeInt32(size); + thumb.serializeToStream(stream); + stream.writeInt32(dc_id); + stream.writeInt32(w); + stream.writeInt32(h); + } + } - public static class TL_video_old2 extends TL_video_layer45 { - public static int constructor = 0x388fa391; + public static class TL_video_old2 extends TL_video_layer45 { + public static int constructor = 0x388fa391; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - user_id = stream.readInt32(exception); - date = stream.readInt32(exception); - caption = stream.readString(exception); - duration = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - thumb = PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception); - dc_id = stream.readInt32(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + user_id = stream.readInt32(exception); + date = stream.readInt32(exception); + caption = stream.readString(exception); + duration = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + thumb = PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception); + dc_id = stream.readInt32(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32((int) user_id); - stream.writeInt32(date); - stream.writeString(caption); - stream.writeInt32(duration); - stream.writeString(mime_type); - stream.writeInt32(size); - thumb.serializeToStream(stream); - stream.writeInt32(dc_id); - stream.writeInt32(w); - stream.writeInt32(h); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32((int) user_id); + stream.writeInt32(date); + stream.writeString(caption); + stream.writeInt32(duration); + stream.writeString(mime_type); + stream.writeInt32(size); + thumb.serializeToStream(stream); + stream.writeInt32(dc_id); + stream.writeInt32(w); + stream.writeInt32(h); + } + } - public static class TL_videoEmpty_layer45 extends Video { - public static int constructor = 0xc10658a8; + public static class TL_videoEmpty_layer45 extends Video { + public static int constructor = 0xc10658a8; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + } + } public static abstract class InputPaymentCredentials extends TLObject { @@ -22635,36 +22669,36 @@ public class TLRPC { } } - public static class TL_exportedMessageLink extends TLObject { - public static int constructor = 0x5dab1af4; + public static class TL_exportedMessageLink extends TLObject { + public static int constructor = 0x5dab1af4; - public String link; - public String html; + public String link; + public String html; - public static TL_exportedMessageLink TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_exportedMessageLink.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_exportedMessageLink", constructor)); - } else { - return null; - } - } - TL_exportedMessageLink result = new TL_exportedMessageLink(); - result.readParams(stream, exception); - return result; - } + public static TL_exportedMessageLink TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_exportedMessageLink.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_exportedMessageLink", constructor)); + } else { + return null; + } + } + TL_exportedMessageLink result = new TL_exportedMessageLink(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - link = stream.readString(exception); - html = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + link = stream.readString(exception); + html = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(link); - stream.writeString(html); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(link); + stream.writeString(html); + } + } public static class TL_groupCallParticipantVideo extends TLObject { public static int constructor = 0x67753ac8; @@ -22887,66 +22921,66 @@ public class TLRPC { } } - public static class TL_payments_validatedRequestedInfo extends TLObject { - public static int constructor = 0xd1451883; + public static class TL_payments_validatedRequestedInfo extends TLObject { + public static int constructor = 0xd1451883; - public int flags; - public String id; - public ArrayList shipping_options = new ArrayList<>(); + public int flags; + public String id; + public ArrayList shipping_options = new ArrayList<>(); - public static TL_payments_validatedRequestedInfo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_payments_validatedRequestedInfo.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_payments_validatedRequestedInfo", constructor)); - } else { - return null; - } - } - TL_payments_validatedRequestedInfo result = new TL_payments_validatedRequestedInfo(); - result.readParams(stream, exception); - return result; - } + public static TL_payments_validatedRequestedInfo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_payments_validatedRequestedInfo.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_payments_validatedRequestedInfo", constructor)); + } else { + return null; + } + } + TL_payments_validatedRequestedInfo result = new TL_payments_validatedRequestedInfo(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - if ((flags & 1) != 0) { - id = stream.readString(exception); - } - if ((flags & 2) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_shippingOption object = TL_shippingOption.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - shipping_options.add(object); - } - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + if ((flags & 1) != 0) { + id = stream.readString(exception); + } + if ((flags & 2) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_shippingOption object = TL_shippingOption.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + shipping_options.add(object); + } + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - stream.writeString(id); - } - if ((flags & 2) != 0) { - stream.writeInt32(0x1cb5c415); - int count = shipping_options.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - shipping_options.get(a).serializeToStream(stream); - } - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + stream.writeString(id); + } + if ((flags & 2) != 0) { + stream.writeInt32(0x1cb5c415); + int count = shipping_options.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + shipping_options.get(a).serializeToStream(stream); + } + } + } + } public static class TL_jsonObjectValue extends TLObject { public static int constructor = 0xc0de1bd9; @@ -22979,111 +23013,183 @@ public class TLRPC { } } - public static class TL_shippingOption extends TLObject { - public static int constructor = 0xb6213cdf; + public static class TL_users_userFull extends TLObject { + public static int constructor = 0x3b6d152e; - public String id; - public String title; - public ArrayList prices = new ArrayList<>(); + public UserFull full_user; + public ArrayList chats = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); - public static TL_shippingOption TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_shippingOption.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_shippingOption", constructor)); - } else { - return null; - } - } - TL_shippingOption result = new TL_shippingOption(); - result.readParams(stream, exception); - return result; - } + public static TL_users_userFull TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_users_userFull.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_users_userFull", constructor)); + } else { + return null; + } + } + TL_users_userFull result = new TL_users_userFull(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readString(exception); - title = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_labeledPrice object = TL_labeledPrice.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - prices.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + full_user = UserFull.TLdeserialize(stream, stream.readInt32(exception), exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(id); - stream.writeString(title); - stream.writeInt32(0x1cb5c415); - int count = prices.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - prices.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + full_user.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } - public static abstract class InputDocument extends TLObject { - public long id; - public long access_hash; - public byte[] file_reference; + public static class TL_shippingOption extends TLObject { + public static int constructor = 0xb6213cdf; + + public String id; + public String title; + public ArrayList prices = new ArrayList<>(); + + public static TL_shippingOption TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_shippingOption.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_shippingOption", constructor)); + } else { + return null; + } + } + TL_shippingOption result = new TL_shippingOption(); + result.readParams(stream, exception); + return result; + } + + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readString(exception); + title = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_labeledPrice object = TL_labeledPrice.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + prices.add(object); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(id); + stream.writeString(title); + stream.writeInt32(0x1cb5c415); + int count = prices.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + prices.get(a).serializeToStream(stream); + } + } + } + + public static abstract class InputDocument extends TLObject { + public long id; + public long access_hash; + public byte[] file_reference; - public static InputDocument TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - InputDocument result = null; - switch (constructor) { - case 0x72f0eaae: - result = new TL_inputDocumentEmpty(); - break; - case 0x1abfb575: - result = new TL_inputDocument(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in InputDocument", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static InputDocument TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + InputDocument result = null; + switch (constructor) { + case 0x72f0eaae: + result = new TL_inputDocumentEmpty(); + break; + case 0x1abfb575: + result = new TL_inputDocument(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in InputDocument", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_inputDocumentEmpty extends InputDocument { - public static int constructor = 0x72f0eaae; + public static class TL_inputDocumentEmpty extends InputDocument { + public static int constructor = 0x72f0eaae; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputDocument extends InputDocument { - public static int constructor = 0x1abfb575; + public static class TL_inputDocument extends InputDocument { + public static int constructor = 0x1abfb575; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - file_reference = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + file_reference = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeByteArray(file_reference); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeByteArray(file_reference); + } + } public static class TL_folderPeer extends TLObject { public static int constructor = 0xe9baa668; @@ -23205,177 +23311,177 @@ public class TLRPC { } } - public static abstract class SecureValueType extends TLObject { + public static abstract class SecureValueType extends TLObject { - public static SecureValueType TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - SecureValueType result = null; - switch (constructor) { - case 0xcbe31e26: - result = new TL_secureValueTypeAddress(); - break; - case 0x99e3806a: - result = new TL_secureValueTypePassportRegistration(); - break; - case 0xa0d0744b: - result = new TL_secureValueTypeIdentityCard(); - break; - case 0xfc36954e: - result = new TL_secureValueTypeUtilityBill(); - break; - case 0x89137c0d: - result = new TL_secureValueTypeBankStatement(); - break; - case 0x8e3ca7ee: - result = new TL_secureValueTypeEmail(); - break; - case 0x9d2a81e3: - result = new TL_secureValueTypePersonalDetails(); - break; - case 0xea02ec33: - result = new TL_secureValueTypeTemporaryRegistration(); - break; - case 0x3dac6a00: - result = new TL_secureValueTypePassport(); - break; - case 0x8b883488: - result = new TL_secureValueTypeRentalAgreement(); - break; - case 0x6e425c4: - result = new TL_secureValueTypeDriverLicense(); - break; - case 0xb320aadb: - result = new TL_secureValueTypePhone(); - break; - case 0x99a48f23: - result = new TL_secureValueTypeInternalPassport(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in SecureValueType", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static SecureValueType TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + SecureValueType result = null; + switch (constructor) { + case 0xcbe31e26: + result = new TL_secureValueTypeAddress(); + break; + case 0x99e3806a: + result = new TL_secureValueTypePassportRegistration(); + break; + case 0xa0d0744b: + result = new TL_secureValueTypeIdentityCard(); + break; + case 0xfc36954e: + result = new TL_secureValueTypeUtilityBill(); + break; + case 0x89137c0d: + result = new TL_secureValueTypeBankStatement(); + break; + case 0x8e3ca7ee: + result = new TL_secureValueTypeEmail(); + break; + case 0x9d2a81e3: + result = new TL_secureValueTypePersonalDetails(); + break; + case 0xea02ec33: + result = new TL_secureValueTypeTemporaryRegistration(); + break; + case 0x3dac6a00: + result = new TL_secureValueTypePassport(); + break; + case 0x8b883488: + result = new TL_secureValueTypeRentalAgreement(); + break; + case 0x6e425c4: + result = new TL_secureValueTypeDriverLicense(); + break; + case 0xb320aadb: + result = new TL_secureValueTypePhone(); + break; + case 0x99a48f23: + result = new TL_secureValueTypeInternalPassport(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in SecureValueType", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_secureValueTypeAddress extends SecureValueType { - public static int constructor = 0xcbe31e26; + public static class TL_secureValueTypeAddress extends SecureValueType { + public static int constructor = 0xcbe31e26; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypePassportRegistration extends SecureValueType { - public static int constructor = 0x99e3806a; + public static class TL_secureValueTypePassportRegistration extends SecureValueType { + public static int constructor = 0x99e3806a; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypeIdentityCard extends SecureValueType { - public static int constructor = 0xa0d0744b; + public static class TL_secureValueTypeIdentityCard extends SecureValueType { + public static int constructor = 0xa0d0744b; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypeUtilityBill extends SecureValueType { - public static int constructor = 0xfc36954e; + public static class TL_secureValueTypeUtilityBill extends SecureValueType { + public static int constructor = 0xfc36954e; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypeBankStatement extends SecureValueType { - public static int constructor = 0x89137c0d; + public static class TL_secureValueTypeBankStatement extends SecureValueType { + public static int constructor = 0x89137c0d; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypeEmail extends SecureValueType { - public static int constructor = 0x8e3ca7ee; + public static class TL_secureValueTypeEmail extends SecureValueType { + public static int constructor = 0x8e3ca7ee; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypePersonalDetails extends SecureValueType { - public static int constructor = 0x9d2a81e3; + public static class TL_secureValueTypePersonalDetails extends SecureValueType { + public static int constructor = 0x9d2a81e3; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypeTemporaryRegistration extends SecureValueType { - public static int constructor = 0xea02ec33; + public static class TL_secureValueTypeTemporaryRegistration extends SecureValueType { + public static int constructor = 0xea02ec33; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypePassport extends SecureValueType { - public static int constructor = 0x3dac6a00; + public static class TL_secureValueTypePassport extends SecureValueType { + public static int constructor = 0x3dac6a00; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypeRentalAgreement extends SecureValueType { - public static int constructor = 0x8b883488; + public static class TL_secureValueTypeRentalAgreement extends SecureValueType { + public static int constructor = 0x8b883488; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypeDriverLicense extends SecureValueType { - public static int constructor = 0x6e425c4; + public static class TL_secureValueTypeDriverLicense extends SecureValueType { + public static int constructor = 0x6e425c4; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypePhone extends SecureValueType { - public static int constructor = 0xb320aadb; + public static class TL_secureValueTypePhone extends SecureValueType { + public static int constructor = 0xb320aadb; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureValueTypeInternalPassport extends SecureValueType { - public static int constructor = 0x99a48f23; + public static class TL_secureValueTypeInternalPassport extends SecureValueType { + public static int constructor = 0x99a48f23; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_peerBlocked extends TLObject { public static int constructor = 0xe8fd8014; @@ -23408,230 +23514,230 @@ public class TLRPC { } } - public static class TL_messages_affectedHistory extends TLObject { + public static class TL_messages_affectedHistory extends TLObject { public static int constructor = 0xb45c69d1; - public int pts; - public int pts_count; - public int offset; + public int pts; + public int pts_count; + public int offset; - public static TL_messages_affectedHistory TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_affectedHistory.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_affectedHistory", constructor)); - } else { - return null; - } - } - TL_messages_affectedHistory result = new TL_messages_affectedHistory(); - result.readParams(stream, exception); - return result; + public static TL_messages_affectedHistory TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_affectedHistory.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_affectedHistory", constructor)); + } else { + return null; + } + } + TL_messages_affectedHistory result = new TL_messages_affectedHistory(); + result.readParams(stream, exception); + return result; } - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { pts = stream.readInt32(exception); - pts_count = stream.readInt32(exception); - offset = stream.readInt32(exception); - } + pts_count = stream.readInt32(exception); + offset = stream.readInt32(exception); + } public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); stream.writeInt32(pts); - stream.writeInt32(pts_count); - stream.writeInt32(offset); - } - } + stream.writeInt32(pts_count); + stream.writeInt32(offset); + } + } - public static abstract class Document extends TLObject { + public static abstract class Document extends TLObject { public int flags; - public long id; - public long access_hash; - public byte[] file_reference; - public long user_id; - public int date; - public String file_name; - public String mime_type; - public int size; + public long id; + public long access_hash; + public byte[] file_reference; + public long user_id; + public int date; + public String file_name; + public String mime_type; + public int size; public ArrayList thumbs = new ArrayList<>(); public ArrayList video_thumbs = new ArrayList<>(); - public int version; - public int dc_id; - public byte[] key; - public byte[] iv; - public ArrayList attributes = new ArrayList<>(); + public int version; + public int dc_id; + public byte[] key; + public byte[] iv; + public ArrayList attributes = new ArrayList<>(); - public static Document TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - Document result = null; - switch (constructor) { + public static Document TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + Document result = null; + switch (constructor) { case 0x9ba29cc1: result = new TL_document_layer113(); break; - case 0x59534e4c: - result = new TL_document_layer92(); - break; - case 0x87232bc7: - result = new TL_document_layer82(); - break; - case 0x55555556: - result = new TL_documentEncrypted_old(); - break; + case 0x59534e4c: + result = new TL_document_layer92(); + break; + case 0x87232bc7: + result = new TL_document_layer82(); + break; + case 0x55555556: + result = new TL_documentEncrypted_old(); + break; case 0x1e87342b: result = new TL_document(); break; - case 0x9efc6326: - result = new TL_document_old(); - break; - case 0x36f8c871: - result = new TL_documentEmpty(); - break; - case 0x55555558: - result = new TL_documentEncrypted(); - break; - case 0xf9a39f4f: - result = new TL_document_layer53(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in Document", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0x9efc6326: + result = new TL_document_old(); + break; + case 0x36f8c871: + result = new TL_documentEmpty(); + break; + case 0x55555558: + result = new TL_documentEncrypted(); + break; + case 0xf9a39f4f: + result = new TL_document_layer53(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in Document", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_document_layer92 extends TL_document { - public static int constructor = 0x59534e4c; + public static class TL_document_layer92 extends TL_document { + public static int constructor = 0x59534e4c; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - file_reference = stream.readByteArray(exception); - date = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); - dc_id = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - attributes.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + file_reference = stream.readByteArray(exception); + date = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); + dc_id = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + attributes.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeByteArray(file_reference); - stream.writeInt32(date); - stream.writeString(mime_type); - stream.writeInt32(size); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeByteArray(file_reference); + stream.writeInt32(date); + stream.writeString(mime_type); + stream.writeInt32(size); thumbs.get(0).serializeToStream(stream); - stream.writeInt32(dc_id); - stream.writeInt32(0x1cb5c415); - int count = attributes.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - attributes.get(a).serializeToStream(stream); - } - } - } + stream.writeInt32(dc_id); + stream.writeInt32(0x1cb5c415); + int count = attributes.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + attributes.get(a).serializeToStream(stream); + } + } + } - public static class TL_document_layer82 extends TL_document { - public static int constructor = 0x87232bc7; + public static class TL_document_layer82 extends TL_document { + public static int constructor = 0x87232bc7; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); - dc_id = stream.readInt32(exception); - stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - attributes.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + date = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); + dc_id = stream.readInt32(exception); + stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + attributes.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32(date); - stream.writeString(mime_type); - stream.writeInt32(size); - thumbs.get(0).serializeToStream(stream); - stream.writeInt32(dc_id); - stream.writeInt32(0); - stream.writeInt32(0x1cb5c415); - int count = attributes.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - attributes.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32(date); + stream.writeString(mime_type); + stream.writeInt32(size); + thumbs.get(0).serializeToStream(stream); + stream.writeInt32(dc_id); + stream.writeInt32(0); + stream.writeInt32(0x1cb5c415); + int count = attributes.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + attributes.get(a).serializeToStream(stream); + } + } + } - public static class TL_documentEncrypted_old extends TL_document { - public static int constructor = 0x55555556; + public static class TL_documentEncrypted_old extends TL_document { + public static int constructor = 0x55555556; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); user_id = stream.readInt32(exception); - date = stream.readInt32(exception); - file_name = stream.readString(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); - dc_id = stream.readInt32(exception); + date = stream.readInt32(exception); + file_name = stream.readString(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); + dc_id = stream.readInt32(exception); key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - } + iv = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32((int) user_id); - stream.writeInt32(date); - stream.writeString(file_name); - stream.writeString(mime_type); - stream.writeInt32(size); - thumbs.get(0).serializeToStream(stream); - stream.writeInt32(dc_id); - stream.writeByteArray(key); - stream.writeByteArray(iv); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32((int) user_id); + stream.writeInt32(date); + stream.writeString(file_name); + stream.writeString(mime_type); + stream.writeInt32(size); + thumbs.get(0).serializeToStream(stream); + stream.writeInt32(dc_id); + stream.writeByteArray(key); + stream.writeByteArray(iv); + } + } public static class TL_document extends Document { public static int constructor = 0x1e87342b; @@ -23806,147 +23912,147 @@ public class TLRPC { } } - public static class TL_document_old extends TL_document { - public static int constructor = 0x9efc6326; + public static class TL_document_old extends TL_document { + public static int constructor = 0x9efc6326; - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { id = stream.readInt64(exception); access_hash = stream.readInt64(exception); - user_id = stream.readInt32(exception); - date = stream.readInt32(exception); + user_id = stream.readInt32(exception); + date = stream.readInt32(exception); file_name = stream.readString(exception); - mime_type = stream.readString(exception); + mime_type = stream.readString(exception); size = stream.readInt32(exception); thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); - dc_id = stream.readInt32(exception); - } + dc_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); stream.writeInt64(id); stream.writeInt64(access_hash); stream.writeInt32((int) user_id); stream.writeInt32(date); - stream.writeString(file_name); + stream.writeString(file_name); stream.writeString(mime_type); stream.writeInt32(size); - thumbs.get(0).serializeToStream(stream); - stream.writeInt32(dc_id); - } - } + thumbs.get(0).serializeToStream(stream); + stream.writeInt32(dc_id); + } + } - public static class TL_documentEmpty extends Document { - public static int constructor = 0x36f8c871; + public static class TL_documentEmpty extends Document { + public static int constructor = 0x36f8c871; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - } - } + stream.writeInt32(constructor); + stream.writeInt64(id); + } + } - public static class TL_documentEncrypted extends Document { - public static int constructor = 0x55555558; + public static class TL_documentEncrypted extends Document { + public static int constructor = 0x55555558; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); - dc_id = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - attributes.add(object); - } - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + date = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); + dc_id = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + attributes.add(object); + } + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32(date); - stream.writeString(mime_type); - stream.writeInt32(size); - thumbs.get(0).serializeToStream(stream); - stream.writeInt32(dc_id); - stream.writeInt32(0x1cb5c415); - int count = attributes.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - attributes.get(a).serializeToStream(stream); - } - stream.writeByteArray(key); - stream.writeByteArray(iv); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32(date); + stream.writeString(mime_type); + stream.writeInt32(size); + thumbs.get(0).serializeToStream(stream); + stream.writeInt32(dc_id); + stream.writeInt32(0x1cb5c415); + int count = attributes.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + attributes.get(a).serializeToStream(stream); + } + stream.writeByteArray(key); + stream.writeByteArray(iv); + } + } - public static class TL_document_layer53 extends TL_document { - public static int constructor = 0xf9a39f4f; + public static class TL_document_layer53 extends TL_document { + public static int constructor = 0xf9a39f4f; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); - dc_id = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - attributes.add(object); + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + date = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + thumbs.add(PhotoSize.TLdeserialize(0, 0, 0, stream, stream.readInt32(exception), exception)); + dc_id = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + attributes.add(object); } } public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - stream.writeInt64(id); + stream.writeInt64(id); stream.writeInt64(access_hash); - stream.writeInt32(date); + stream.writeInt32(date); stream.writeString(mime_type); - stream.writeInt32(size); + stream.writeInt32(size); thumbs.get(0).serializeToStream(stream); - stream.writeInt32(dc_id); + stream.writeInt32(dc_id); stream.writeInt32(0x1cb5c415); - int count = attributes.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - attributes.get(a).serializeToStream(stream); - } - } - } + int count = attributes.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + attributes.get(a).serializeToStream(stream); + } + } + } public static abstract class PasswordKdfAlgo extends TLObject { @@ -24003,11 +24109,11 @@ public class TLRPC { } } - public static abstract class PageBlock extends TLObject { - public boolean first; //custom - public boolean bottom; //custom - public int level; //custom - public int mid; //custom + public static abstract class PageBlock extends TLObject { + public boolean first; //custom + public boolean bottom; //custom + public int level; //custom + public int mid; //custom public int groupId; //custom public PhotoSize thumb; //custom public TLObject thumbObject; //custom @@ -24141,171 +24247,171 @@ public class TLRPC { } return result; } - } + } - public static class TL_pageBlockOrderedList extends PageBlock { - public static int constructor = 0x9a8ae1e1; + public static class TL_pageBlockOrderedList extends PageBlock { + public static int constructor = 0x9a8ae1e1; - public ArrayList items = new ArrayList<>(); + public ArrayList items = new ArrayList<>(); - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - PageListOrderedItem object = PageListOrderedItem.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - items.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + PageListOrderedItem object = PageListOrderedItem.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + items.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = items.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - items.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = items.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + items.get(a).serializeToStream(stream); + } + } + } - public static class TL_pageBlockEmbedPost extends PageBlock { - public static int constructor = 0xf259a80b; + public static class TL_pageBlockEmbedPost extends PageBlock { + public static int constructor = 0xf259a80b; - public String url; - public long webpage_id; - public long author_photo_id; - public String author; - public int date; - public ArrayList blocks = new ArrayList<>(); - public TL_pageCaption caption; + public String url; + public long webpage_id; + public long author_photo_id; + public String author; + public int date; + public ArrayList blocks = new ArrayList<>(); + public TL_pageCaption caption; - public void readParams(AbstractSerializedData stream, boolean exception) { - url = stream.readString(exception); - webpage_id = stream.readInt64(exception); - author_photo_id = stream.readInt64(exception); - author = stream.readString(exception); - date = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - blocks.add(object); - } - caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + url = stream.readString(exception); + webpage_id = stream.readInt64(exception); + author_photo_id = stream.readInt64(exception); + author = stream.readString(exception); + date = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + blocks.add(object); + } + caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(url); - stream.writeInt64(webpage_id); - stream.writeInt64(author_photo_id); - stream.writeString(author); - stream.writeInt32(date); - stream.writeInt32(0x1cb5c415); - int count = blocks.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - blocks.get(a).serializeToStream(stream); - } - caption.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(url); + stream.writeInt64(webpage_id); + stream.writeInt64(author_photo_id); + stream.writeString(author); + stream.writeInt32(date); + stream.writeInt32(0x1cb5c415); + int count = blocks.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + blocks.get(a).serializeToStream(stream); + } + caption.serializeToStream(stream); + } + } - public static class TL_pageBlockParagraph extends PageBlock { - public static int constructor = 0x467a0766; + public static class TL_pageBlockParagraph extends PageBlock { + public static int constructor = 0x467a0766; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_pageBlockKicker extends PageBlock { - public static int constructor = 0x1e148390; + public static class TL_pageBlockKicker extends PageBlock { + public static int constructor = 0x1e148390; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_pageBlockFooter extends PageBlock { - public static int constructor = 0x48870999; + public static class TL_pageBlockFooter extends PageBlock { + public static int constructor = 0x48870999; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_pageBlockHeader extends PageBlock { - public static int constructor = 0xbfd064ec; + public static class TL_pageBlockHeader extends PageBlock { + public static int constructor = 0xbfd064ec; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_pageBlockPreformatted extends PageBlock { - public static int constructor = 0xc070d93e; + public static class TL_pageBlockPreformatted extends PageBlock { + public static int constructor = 0xc070d93e; - public RichText text; - public String language; + public RichText text; + public String language; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - language = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + language = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - stream.writeString(language); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + stream.writeString(language); + } + } public static class TL_pageBlockRelatedArticles extends PageBlock { public static int constructor = 0x16115a96; @@ -24344,72 +24450,72 @@ public class TLRPC { } } - public static class TL_pageBlockSubheader extends PageBlock { - public static int constructor = 0xf12bb6e1; + public static class TL_pageBlockSubheader extends PageBlock { + public static int constructor = 0xf12bb6e1; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_pageBlockSlideshow extends PageBlock { - public static int constructor = 0x31f9590; + public static class TL_pageBlockSlideshow extends PageBlock { + public static int constructor = 0x31f9590; - public ArrayList items = new ArrayList<>(); - public TL_pageCaption caption; + public ArrayList items = new ArrayList<>(); + public TL_pageCaption caption; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - items.add(object); - } - caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + items.add(object); + } + caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = items.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - items.get(a).serializeToStream(stream); - } - caption.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = items.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + items.get(a).serializeToStream(stream); + } + caption.serializeToStream(stream); + } + } - public static class TL_pageBlockAnchor extends PageBlock { - public static int constructor = 0xce0d37b0; + public static class TL_pageBlockAnchor extends PageBlock { + public static int constructor = 0xce0d37b0; - public String name; + public String name; - public void readParams(AbstractSerializedData stream, boolean exception) { - name = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + name = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(name); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(name); + } + } public static class TL_pageBlockMap extends PageBlock { public static int constructor = 0xa44f3ef6; @@ -24438,130 +24544,130 @@ public class TLRPC { } } - public static class TL_pageBlockDivider extends PageBlock { - public static int constructor = 0xdb20b188; + public static class TL_pageBlockDivider extends PageBlock { + public static int constructor = 0xdb20b188; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_pageBlockPhoto extends PageBlock { - public static int constructor = 0x1759c560; + public static class TL_pageBlockPhoto extends PageBlock { + public static int constructor = 0x1759c560; - public int flags; - public long photo_id; - public TL_pageCaption caption; - public String url; - public long webpage_id; + public int flags; + public long photo_id; + public TL_pageCaption caption; + public String url; + public long webpage_id; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - photo_id = stream.readInt64(exception); - caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 1) != 0) { - url = stream.readString(exception); - } - if ((flags & 1) != 0) { - webpage_id = stream.readInt64(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + photo_id = stream.readInt64(exception); + caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 1) != 0) { + url = stream.readString(exception); + } + if ((flags & 1) != 0) { + webpage_id = stream.readInt64(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeInt64(photo_id); - caption.serializeToStream(stream); - if ((flags & 1) != 0) { - stream.writeString(url); - } - if ((flags & 1) != 0) { - stream.writeInt64(webpage_id); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeInt64(photo_id); + caption.serializeToStream(stream); + if ((flags & 1) != 0) { + stream.writeString(url); + } + if ((flags & 1) != 0) { + stream.writeInt64(webpage_id); + } + } + } - public static class TL_pageBlockList extends PageBlock { - public static int constructor = 0xe4e88011; + public static class TL_pageBlockList extends PageBlock { + public static int constructor = 0xe4e88011; public boolean ordered; - public ArrayList items = new ArrayList<>(); + public ArrayList items = new ArrayList<>(); - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - PageListItem object = PageListItem.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - items.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + PageListItem object = PageListItem.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + items.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = items.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - items.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = items.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + items.get(a).serializeToStream(stream); + } + } + } - public static class TL_pageBlockUnsupported extends PageBlock { - public static int constructor = 0x13567e8a; + public static class TL_pageBlockUnsupported extends PageBlock { + public static int constructor = 0x13567e8a; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_pageBlockCollage extends PageBlock { - public static int constructor = 0x65a0fa4d; + public static class TL_pageBlockCollage extends PageBlock { + public static int constructor = 0x65a0fa4d; - public ArrayList items = new ArrayList<>(); - public TL_pageCaption caption; + public ArrayList items = new ArrayList<>(); + public TL_pageCaption caption; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - items.add(object); - } - caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + items.add(object); + } + caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = items.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - items.get(a).serializeToStream(stream); - } - caption.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = items.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + items.get(a).serializeToStream(stream); + } + caption.serializeToStream(stream); + } + } public static class TL_pageBlockEmbed extends PageBlock { public static int constructor = 0xa8718dc5; @@ -24622,203 +24728,203 @@ public class TLRPC { } } - public static class TL_pageBlockSubtitle extends PageBlock { - public static int constructor = 0x8ffa9a1f; + public static class TL_pageBlockSubtitle extends PageBlock { + public static int constructor = 0x8ffa9a1f; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } - public static class TL_pageBlockBlockquote extends PageBlock { - public static int constructor = 0x263d7c26; + public static class TL_pageBlockBlockquote extends PageBlock { + public static int constructor = 0x263d7c26; - public RichText text; - public RichText caption; + public RichText text; + public RichText caption; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - caption = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + caption = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - caption.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + caption.serializeToStream(stream); + } + } - public static class TL_pageBlockDetails extends PageBlock { - public static int constructor = 0x76768bed; + public static class TL_pageBlockDetails extends PageBlock { + public static int constructor = 0x76768bed; - public int flags; - public boolean open; - public ArrayList blocks = new ArrayList<>(); - public RichText title; + public int flags; + public boolean open; + public ArrayList blocks = new ArrayList<>(); + public RichText title; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - open = (flags & 1) != 0; - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - blocks.add(object); - } - title = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + open = (flags & 1) != 0; + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + blocks.add(object); + } + title = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = open ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeInt32(0x1cb5c415); - int count = blocks.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - blocks.get(a).serializeToStream(stream); - } - title.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = open ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeInt32(0x1cb5c415); + int count = blocks.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + blocks.get(a).serializeToStream(stream); + } + title.serializeToStream(stream); + } + } - public static class TL_pageBlockChannel extends PageBlock { - public static int constructor = 0xef1751b5; + public static class TL_pageBlockChannel extends PageBlock { + public static int constructor = 0xef1751b5; - public Chat channel; + public Chat channel; - public void readParams(AbstractSerializedData stream, boolean exception) { - channel = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + channel = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - channel.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + channel.serializeToStream(stream); + } + } - public static class TL_pageBlockVideo extends PageBlock { - public static int constructor = 0x7c8fe7b6; + public static class TL_pageBlockVideo extends PageBlock { + public static int constructor = 0x7c8fe7b6; - public int flags; - public boolean autoplay; - public boolean loop; - public long video_id; - public TL_pageCaption caption; + public int flags; + public boolean autoplay; + public boolean loop; + public long video_id; + public TL_pageCaption caption; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - autoplay = (flags & 1) != 0; - loop = (flags & 2) != 0; - video_id = stream.readInt64(exception); - caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + autoplay = (flags & 1) != 0; + loop = (flags & 2) != 0; + video_id = stream.readInt64(exception); + caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = autoplay ? (flags | 1) : (flags &~ 1); - flags = loop ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - stream.writeInt64(video_id); - caption.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = autoplay ? (flags | 1) : (flags &~ 1); + flags = loop ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + stream.writeInt64(video_id); + caption.serializeToStream(stream); + } + } - public static class TL_pageBlockEmbed_layer60 extends TL_pageBlockEmbed { - public static int constructor = 0xd935d8fb; + public static class TL_pageBlockEmbed_layer60 extends TL_pageBlockEmbed { + public static int constructor = 0xd935d8fb; - public int flags; - public boolean full_width; - public boolean allow_scrolling; - public String url; - public String html; - public int w; - public int h; - public RichText caption; + public int flags; + public boolean full_width; + public boolean allow_scrolling; + public String url; + public String html; + public int w; + public int h; + public RichText caption; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - full_width = (flags & 1) != 0; - allow_scrolling = (flags & 8) != 0; - if ((flags & 2) != 0) { - url = stream.readString(exception); - } - if ((flags & 4) != 0) { - html = stream.readString(exception); - } - w = stream.readInt32(exception); - h = stream.readInt32(exception); - caption = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + full_width = (flags & 1) != 0; + allow_scrolling = (flags & 8) != 0; + if ((flags & 2) != 0) { + url = stream.readString(exception); + } + if ((flags & 4) != 0) { + html = stream.readString(exception); + } + w = stream.readInt32(exception); + h = stream.readInt32(exception); + caption = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = full_width ? (flags | 1) : (flags &~ 1); - flags = allow_scrolling ? (flags | 8) : (flags &~ 8); - stream.writeInt32(flags); - if ((flags & 2) != 0) { - stream.writeString(url); - } - if ((flags & 4) != 0) { - stream.writeString(html); - } - stream.writeInt32(w); - stream.writeInt32(h); - caption.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = full_width ? (flags | 1) : (flags &~ 1); + flags = allow_scrolling ? (flags | 8) : (flags &~ 8); + stream.writeInt32(flags); + if ((flags & 2) != 0) { + stream.writeString(url); + } + if ((flags & 4) != 0) { + stream.writeString(html); + } + stream.writeInt32(w); + stream.writeInt32(h); + caption.serializeToStream(stream); + } + } - public static class TL_pageBlockPullquote extends PageBlock { - public static int constructor = 0x4f4456d3; + public static class TL_pageBlockPullquote extends PageBlock { + public static int constructor = 0x4f4456d3; - public RichText text; - public RichText caption; + public RichText text; + public RichText caption; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - caption = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + caption = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - caption.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + caption.serializeToStream(stream); + } + } - public static class TL_pageBlockAudio extends PageBlock { - public static int constructor = 0x804361ea; + public static class TL_pageBlockAudio extends PageBlock { + public static int constructor = 0x804361ea; - public long audio_id; - public TL_pageCaption caption; + public long audio_id; + public TL_pageCaption caption; - public void readParams(AbstractSerializedData stream, boolean exception) { - audio_id = stream.readInt64(exception); - caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + audio_id = stream.readInt64(exception); + caption = TL_pageCaption.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(audio_id); - caption.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(audio_id); + caption.serializeToStream(stream); + } + } public static class TL_pageBlockTable extends PageBlock { public static int constructor = 0xbf4dea82; @@ -24866,53 +24972,53 @@ public class TLRPC { } } - public static class TL_pageBlockTitle extends PageBlock { - public static int constructor = 0x70abc3fd; + public static class TL_pageBlockTitle extends PageBlock { + public static int constructor = 0x70abc3fd; - public RichText text; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } public static class TL_pageBlockCover extends PageBlock { - public static int constructor = 0x39f23300; + public static int constructor = 0x39f23300; - public PageBlock cover; + public PageBlock cover; - public void readParams(AbstractSerializedData stream, boolean exception) { - cover = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + cover = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - cover.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + cover.serializeToStream(stream); + } + } - public static class TL_pageBlockAuthorDate extends PageBlock { - public static int constructor = 0xbaafe5e0; + public static class TL_pageBlockAuthorDate extends PageBlock { + public static int constructor = 0xbaafe5e0; - public RichText author; - public int published_date; + public RichText author; + public int published_date; - public void readParams(AbstractSerializedData stream, boolean exception) { - author = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - published_date = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + author = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + published_date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - author.serializeToStream(stream); - stream.writeInt32(published_date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + author.serializeToStream(stream); + stream.writeInt32(published_date); + } + } public static abstract class InputPrivacyRule extends TLObject { @@ -25118,42 +25224,42 @@ public class TLRPC { } } - public static class TL_maskCoords extends TLObject { - public static int constructor = 0xaed6dbb2; + public static class TL_maskCoords extends TLObject { + public static int constructor = 0xaed6dbb2; - public int n; - public double x; - public double y; - public double zoom; + public int n; + public double x; + public double y; + public double zoom; - public static TL_maskCoords TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_maskCoords.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_maskCoords", constructor)); - } else { - return null; - } - } - TL_maskCoords result = new TL_maskCoords(); - result.readParams(stream, exception); - return result; - } + public static TL_maskCoords TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_maskCoords.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_maskCoords", constructor)); + } else { + return null; + } + } + TL_maskCoords result = new TL_maskCoords(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - n = stream.readInt32(exception); - x = stream.readDouble(exception); - y = stream.readDouble(exception); - zoom = stream.readDouble(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + n = stream.readInt32(exception); + x = stream.readDouble(exception); + y = stream.readDouble(exception); + zoom = stream.readDouble(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(n); - stream.writeDouble(x); - stream.writeDouble(y); - stream.writeDouble(zoom); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(n); + stream.writeDouble(x); + stream.writeDouble(y); + stream.writeDouble(zoom); + } + } public static class TL_messages_votesList extends TLObject { public static int constructor = 0x823f649; @@ -25271,105 +25377,105 @@ public class TLRPC { } } - public static abstract class InputMedia extends TLObject { - public String phone_number; - public String first_name; - public String last_name; - public String vcard; - public int flags; - public int ttl_seconds; - public InputGeoPoint geo_point; - public InputFile file; - public ArrayList stickers = new ArrayList<>(); - public String title; - public String address; - public String provider; - public String venue_id; - public String venue_type; + public static abstract class InputMedia extends TLObject { + public String phone_number; + public String first_name; + public String last_name; + public String vcard; + public int flags; + public int ttl_seconds; + public InputGeoPoint geo_point; + public InputFile file; + public ArrayList stickers = new ArrayList<>(); + public String title; + public String address; + public String provider; + public String venue_id; + public String venue_type; public int heading; - public int period; - public boolean nosound_video; + public int period; + public boolean nosound_video; public boolean force_file; public boolean stopped; - public InputFile thumb; - public String mime_type; - public ArrayList attributes = new ArrayList<>(); - public int proximity_notification_radius; + public InputFile thumb; + public String mime_type; + public ArrayList attributes = new ArrayList<>(); + public int proximity_notification_radius; - public static InputMedia TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - InputMedia result = null; - switch (constructor) { - case 0xf8ab7dfb: - result = new TL_inputMediaContact(); - break; + public static InputMedia TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + InputMedia result = null; + switch (constructor) { + case 0xf8ab7dfb: + result = new TL_inputMediaContact(); + break; case 0x33473058: result = new TL_inputMediaDocument(); break; - case 0xd33f43f3: - result = new TL_inputMediaGame(); - break; + case 0xd33f43f3: + result = new TL_inputMediaGame(); + break; case 0xe66fbf7b: result = new TL_inputMediaDice(); break; - case 0xf9c44144: - result = new TL_inputMediaGeoPoint(); - break; - case 0xfb52dc99: - result = new TL_inputMediaDocumentExternal(); - break; - case 0x9664f57f: - result = new TL_inputMediaEmpty(); - break; + case 0xf9c44144: + result = new TL_inputMediaGeoPoint(); + break; + case 0xfb52dc99: + result = new TL_inputMediaDocumentExternal(); + break; + case 0x9664f57f: + result = new TL_inputMediaEmpty(); + break; case 0xf94e5f1: result = new TL_inputMediaPoll(); break; - case 0x1e287d04: - result = new TL_inputMediaUploadedPhoto(); - break; - case 0xc13d1c11: - result = new TL_inputMediaVenue(); - break; + case 0x1e287d04: + result = new TL_inputMediaUploadedPhoto(); + break; + case 0xc13d1c11: + result = new TL_inputMediaVenue(); + break; case 0x971fa843: result = new TL_inputMediaGeoLive(); break; - case 0x5b38c6c1: - result = new TL_inputMediaUploadedDocument(); - break; - case 0xe5bbfe1a: - result = new TL_inputMediaPhotoExternal(); - break; - case 0xb3ba0635: - result = new TL_inputMediaPhoto(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in InputMedia", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0x5b38c6c1: + result = new TL_inputMediaUploadedDocument(); + break; + case 0xe5bbfe1a: + result = new TL_inputMediaPhotoExternal(); + break; + case 0xb3ba0635: + result = new TL_inputMediaPhoto(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in InputMedia", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_inputMediaContact extends InputMedia { - public static int constructor = 0xf8ab7dfb; + public static class TL_inputMediaContact extends InputMedia { + public static int constructor = 0xf8ab7dfb; - public void readParams(AbstractSerializedData stream, boolean exception) { - phone_number = stream.readString(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - vcard = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + phone_number = stream.readString(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + vcard = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(phone_number); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeString(vcard); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(phone_number); + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeString(vcard); + } + } public static class TL_inputMediaDocument extends InputMedia { public static int constructor = 0x33473058; @@ -25401,20 +25507,20 @@ public class TLRPC { } } - public static class TL_inputMediaGame extends InputMedia { - public static int constructor = 0xd33f43f3; + public static class TL_inputMediaGame extends InputMedia { + public static int constructor = 0xd33f43f3; - public InputGame id; + public InputGame id; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = InputGame.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = InputGame.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - id.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + id.serializeToStream(stream); + } + } public static class TL_inputMediaDice extends InputMedia { public static int constructor = 0xe66fbf7b; @@ -25431,51 +25537,51 @@ public class TLRPC { } } - public static class TL_inputMediaGeoPoint extends InputMedia { - public static int constructor = 0xf9c44144; + public static class TL_inputMediaGeoPoint extends InputMedia { + public static int constructor = 0xf9c44144; - public void readParams(AbstractSerializedData stream, boolean exception) { - geo_point = InputGeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + geo_point = InputGeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - geo_point.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + geo_point.serializeToStream(stream); + } + } - public static class TL_inputMediaDocumentExternal extends InputMedia { - public static int constructor = 0xfb52dc99; + public static class TL_inputMediaDocumentExternal extends InputMedia { + public static int constructor = 0xfb52dc99; - public String url; + public String url; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - url = stream.readString(exception); - if ((flags & 1) != 0) { - ttl_seconds = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + url = stream.readString(exception); + if ((flags & 1) != 0) { + ttl_seconds = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeString(url); - if ((flags & 1) != 0) { - stream.writeInt32(ttl_seconds); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeString(url); + if ((flags & 1) != 0) { + stream.writeInt32(ttl_seconds); + } + } + } - public static class TL_inputMediaEmpty extends InputMedia { - public static int constructor = 0x9664f57f; + public static class TL_inputMediaEmpty extends InputMedia { + public static int constructor = 0x9664f57f; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_inputMediaPoll extends InputMedia { public static int constructor = 0xf94e5f1; @@ -25549,76 +25655,76 @@ public class TLRPC { } } - public static class TL_inputMediaUploadedPhoto extends InputMedia { - public static int constructor = 0x1e287d04; + public static class TL_inputMediaUploadedPhoto extends InputMedia { + public static int constructor = 0x1e287d04; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - file = InputFile.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 1) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - InputDocument object = InputDocument.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - stickers.add(object); - } - } - if ((flags & 2) != 0) { - ttl_seconds = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + file = InputFile.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 1) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + InputDocument object = InputDocument.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + stickers.add(object); + } + } + if ((flags & 2) != 0) { + ttl_seconds = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - file.serializeToStream(stream); - if ((flags & 1) != 0) { - stream.writeInt32(0x1cb5c415); - int count = stickers.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stickers.get(a).serializeToStream(stream); - } - } - if ((flags & 2) != 0) { - stream.writeInt32(ttl_seconds); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + file.serializeToStream(stream); + if ((flags & 1) != 0) { + stream.writeInt32(0x1cb5c415); + int count = stickers.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stickers.get(a).serializeToStream(stream); + } + } + if ((flags & 2) != 0) { + stream.writeInt32(ttl_seconds); + } + } + } - public static class TL_inputMediaVenue extends InputMedia { - public static int constructor = 0xc13d1c11; + public static class TL_inputMediaVenue extends InputMedia { + public static int constructor = 0xc13d1c11; - public void readParams(AbstractSerializedData stream, boolean exception) { - geo_point = InputGeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); - title = stream.readString(exception); - address = stream.readString(exception); - provider = stream.readString(exception); - venue_id = stream.readString(exception); - venue_type = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + geo_point = InputGeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); + title = stream.readString(exception); + address = stream.readString(exception); + provider = stream.readString(exception); + venue_id = stream.readString(exception); + venue_type = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - geo_point.serializeToStream(stream); - stream.writeString(title); - stream.writeString(address); - stream.writeString(provider); - stream.writeString(venue_id); - stream.writeString(venue_type); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + geo_point.serializeToStream(stream); + stream.writeString(title); + stream.writeString(address); + stream.writeString(provider); + stream.writeString(venue_id); + stream.writeString(venue_type); + } + } public static class TL_inputMediaGeoLive extends InputMedia { public static int constructor = 0x971fa843; @@ -25736,196 +25842,196 @@ public class TLRPC { } } - public static class TL_inputMediaPhotoExternal extends InputMedia { - public static int constructor = 0xe5bbfe1a; + public static class TL_inputMediaPhotoExternal extends InputMedia { + public static int constructor = 0xe5bbfe1a; - public String url; + public String url; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - url = stream.readString(exception); - if ((flags & 1) != 0) { - ttl_seconds = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + url = stream.readString(exception); + if ((flags & 1) != 0) { + ttl_seconds = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeString(url); - if ((flags & 1) != 0) { - stream.writeInt32(ttl_seconds); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeString(url); + if ((flags & 1) != 0) { + stream.writeInt32(ttl_seconds); + } + } + } - public static class TL_inputMediaPhoto extends InputMedia { - public static int constructor = 0xb3ba0635; + public static class TL_inputMediaPhoto extends InputMedia { + public static int constructor = 0xb3ba0635; - public InputPhoto id; + public InputPhoto id; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - id = InputPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 1) != 0) { - ttl_seconds = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + id = InputPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 1) != 0) { + ttl_seconds = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - id.serializeToStream(stream); - if ((flags & 1) != 0) { - stream.writeInt32(ttl_seconds); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + id.serializeToStream(stream); + if ((flags & 1) != 0) { + stream.writeInt32(ttl_seconds); + } + } + } - public static abstract class StickerSetCovered extends TLObject { - public StickerSet set; - public ArrayList covers = new ArrayList<>(); - public Document cover; + public static abstract class StickerSetCovered extends TLObject { + public StickerSet set; + public ArrayList covers = new ArrayList<>(); + public Document cover; - public static StickerSetCovered TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - StickerSetCovered result = null; - switch (constructor) { - case 0x3407e51b: - result = new TL_stickerSetMultiCovered(); - break; - case 0x6410a5d2: - result = new TL_stickerSetCovered(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in StickerSetCovered", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } - - public static class TL_stickerSetMultiCovered extends StickerSetCovered { - public static int constructor = 0x3407e51b; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - set = StickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Document object = Document.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - covers.add(object); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - set.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = covers.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - covers.get(a).serializeToStream(stream); - } - } - } - - public static class TL_stickerSetCovered extends StickerSetCovered { - public static int constructor = 0x6410a5d2; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - set = StickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); - cover = Document.TLdeserialize(stream, stream.readInt32(exception), exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - set.serializeToStream(stream); - cover.serializeToStream(stream); - } - } - - public static abstract class EncryptedMessage extends TLObject { - public long random_id; - public int chat_id; - public int date; - public byte[] bytes; - public EncryptedFile file; - - public static EncryptedMessage TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - EncryptedMessage result = null; - switch (constructor) { - case 0x23734b06: - result = new TL_encryptedMessageService(); - break; - case 0xed18c118: - result = new TL_encryptedMessage(); + public static StickerSetCovered TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + StickerSetCovered result = null; + switch (constructor) { + case 0x3407e51b: + result = new TL_stickerSetMultiCovered(); + break; + case 0x6410a5d2: + result = new TL_stickerSetCovered(); break; } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in EncryptedMessage", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in StickerSetCovered", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_encryptedMessageService extends EncryptedMessage { - public static int constructor = 0x23734b06; + public static class TL_stickerSetMultiCovered extends StickerSetCovered { + public static int constructor = 0x3407e51b; - public void readParams(AbstractSerializedData stream, boolean exception) { - random_id = stream.readInt64(exception); - chat_id = stream.readInt32(exception); - date = stream.readInt32(exception); - bytes = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + set = StickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Document object = Document.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + covers.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(random_id); - stream.writeInt32(chat_id); - stream.writeInt32(date); - stream.writeByteArray(bytes); - } - } - - public static class TL_encryptedMessage extends EncryptedMessage { - public static int constructor = 0xed18c118; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - random_id = stream.readInt64(exception); - chat_id = stream.readInt32(exception); - date = stream.readInt32(exception); - bytes = stream.readByteArray(exception); - file = EncryptedFile.TLdeserialize(stream, stream.readInt32(exception), exception); - } - - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - stream.writeInt64(random_id); + set.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = covers.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + covers.get(a).serializeToStream(stream); + } + } + } + + public static class TL_stickerSetCovered extends StickerSetCovered { + public static int constructor = 0x6410a5d2; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + set = StickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); + cover = Document.TLdeserialize(stream, stream.readInt32(exception), exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + set.serializeToStream(stream); + cover.serializeToStream(stream); + } + } + + public static abstract class EncryptedMessage extends TLObject { + public long random_id; + public int chat_id; + public int date; + public byte[] bytes; + public EncryptedFile file; + + public static EncryptedMessage TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + EncryptedMessage result = null; + switch (constructor) { + case 0x23734b06: + result = new TL_encryptedMessageService(); + break; + case 0xed18c118: + result = new TL_encryptedMessage(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in EncryptedMessage", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } + + public static class TL_encryptedMessageService extends EncryptedMessage { + public static int constructor = 0x23734b06; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + random_id = stream.readInt64(exception); + chat_id = stream.readInt32(exception); + date = stream.readInt32(exception); + bytes = stream.readByteArray(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(random_id); stream.writeInt32(chat_id); stream.writeInt32(date); - stream.writeByteArray(bytes); - file.serializeToStream(stream); - } - } + stream.writeByteArray(bytes); + } + } + + public static class TL_encryptedMessage extends EncryptedMessage { + public static int constructor = 0xed18c118; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + random_id = stream.readInt64(exception); + chat_id = stream.readInt32(exception); + date = stream.readInt32(exception); + bytes = stream.readByteArray(exception); + file = EncryptedFile.TLdeserialize(stream, stream.readInt32(exception), exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(random_id); + stream.writeInt32(chat_id); + stream.writeInt32(date); + stream.writeByteArray(bytes); + file.serializeToStream(stream); + } + } public static abstract class InputStickerSet extends TLObject { @@ -26101,104 +26207,176 @@ public class TLRPC { } } - public static abstract class UserStatus extends TLObject { - public int expires; + public static abstract class UserStatus extends TLObject { + public int expires; - public static UserStatus TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - UserStatus result = null; - switch (constructor) { - case 0x8c703f: - result = new TL_userStatusOffline(); - break; - case 0x7bf09fc: - result = new TL_userStatusLastWeek(); - break; - case 0x9d05049: - result = new TL_userStatusEmpty(); - break; - case 0x77ebc742: - result = new TL_userStatusLastMonth(); - break; - case 0xedb93949: - result = new TL_userStatusOnline(); - break; - case 0xe26f42f1: - result = new TL_userStatusRecently(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in UserStatus", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static UserStatus TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + UserStatus result = null; + switch (constructor) { + case 0x8c703f: + result = new TL_userStatusOffline(); + break; + case 0x7bf09fc: + result = new TL_userStatusLastWeek(); + break; + case 0x9d05049: + result = new TL_userStatusEmpty(); + break; + case 0x77ebc742: + result = new TL_userStatusLastMonth(); + break; + case 0xedb93949: + result = new TL_userStatusOnline(); + break; + case 0xe26f42f1: + result = new TL_userStatusRecently(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in UserStatus", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_userStatusOffline extends UserStatus { + public static class TL_userStatusOffline extends UserStatus { public static int constructor = 0x8c703f; - public void readParams(AbstractSerializedData stream, boolean exception) { - expires = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + expires = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(expires); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(expires); + } + } - public static class TL_userStatusLastWeek extends UserStatus { - public static int constructor = 0x7bf09fc; + public static class TL_userStatusLastWeek extends UserStatus { + public static int constructor = 0x7bf09fc; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_userStatusEmpty extends UserStatus { - public static int constructor = 0x9d05049; + public static class TL_userStatusEmpty extends UserStatus { + public static int constructor = 0x9d05049; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_userStatusLastMonth extends UserStatus { - public static int constructor = 0x77ebc742; + public static class TL_userStatusLastMonth extends UserStatus { + public static int constructor = 0x77ebc742; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); } } public static class TL_userStatusOnline extends UserStatus { - public static int constructor = 0xedb93949; + public static int constructor = 0xedb93949; - public void readParams(AbstractSerializedData stream, boolean exception) { - expires = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + expires = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(expires); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(expires); + } + } - public static class TL_userStatusRecently extends UserStatus { - public static int constructor = 0xe26f42f1; + public static class TL_userStatusRecently extends UserStatus { + public static int constructor = 0xe26f42f1; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } + + public static class TL_messages_peerSettings extends TLObject { + public static int constructor = 0x6880b94d; + + public TL_peerSettings settings; + public ArrayList chats = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); + + public static TL_messages_peerSettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_peerSettings.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_peerSettings", constructor)); + } else { + return null; + } + } + TL_messages_peerSettings result = new TL_messages_peerSettings(); + result.readParams(stream, exception); + return result; + } + + public void readParams(AbstractSerializedData stream, boolean exception) { + settings = TL_peerSettings.TLdeserialize(stream, stream.readInt32(exception), exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + settings.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } public static class TL_messages_checkedHistoryImportPeer extends TLObject { public static int constructor = 0xa24de717; @@ -26228,36 +26406,36 @@ public class TLRPC { } } - public static class TL_messages_messageEditData extends TLObject { - public static int constructor = 0x26b5dde6; + public static class TL_messages_messageEditData extends TLObject { + public static int constructor = 0x26b5dde6; - public int flags; - public boolean caption; + public int flags; + public boolean caption; - public static TL_messages_messageEditData TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_messageEditData.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_messageEditData", constructor)); - } else { - return null; - } - } - TL_messages_messageEditData result = new TL_messages_messageEditData(); - result.readParams(stream, exception); - return result; - } + public static TL_messages_messageEditData TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_messageEditData.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_messageEditData", constructor)); + } else { + return null; + } + } + TL_messages_messageEditData result = new TL_messages_messageEditData(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - caption = (flags & 1) != 0; - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + caption = (flags & 1) != 0; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = caption ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = caption ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + } + } public static abstract class MessageUserVote extends TLObject { @@ -26496,36 +26674,36 @@ public class TLRPC { } } - public static class TL_inlineBotSwitchPM extends TLObject { - public static int constructor = 0x3c20629f; + public static class TL_inlineBotSwitchPM extends TLObject { + public static int constructor = 0x3c20629f; - public String text; - public String start_param; + public String text; + public String start_param; - public static TL_inlineBotSwitchPM TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_inlineBotSwitchPM.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_inlineBotSwitchPM", constructor)); - } else { - return null; - } - } - TL_inlineBotSwitchPM result = new TL_inlineBotSwitchPM(); - result.readParams(stream, exception); - return result; - } + public static TL_inlineBotSwitchPM TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_inlineBotSwitchPM.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_inlineBotSwitchPM", constructor)); + } else { + return null; + } + } + TL_inlineBotSwitchPM result = new TL_inlineBotSwitchPM(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - text = stream.readString(exception); - start_param = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + text = stream.readString(exception); + start_param = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(text); - stream.writeString(start_param); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(text); + stream.writeString(start_param); + } + } public static abstract class Update extends TLObject { @@ -28573,7 +28751,7 @@ public class TLRPC { public TL_messages_stickerSet stickerset; public void readParams(AbstractSerializedData stream, boolean exception) { - stickerset = TL_messages_stickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); + stickerset = messages_StickerSet.TLdeserialize(stream, stream.readInt32(exception), exception); } public void serializeToStream(AbstractSerializedData stream) { @@ -28775,158 +28953,158 @@ public class TLRPC { } } - public static class TL_receivedNotifyMessage extends TLObject { - public static int constructor = 0xa384b779; + public static class TL_receivedNotifyMessage extends TLObject { + public static int constructor = 0xa384b779; - public int id; - public int flags; + public int id; + public int flags; - public static TL_receivedNotifyMessage TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_receivedNotifyMessage.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_receivedNotifyMessage", constructor)); - } else { - return null; - } - } - TL_receivedNotifyMessage result = new TL_receivedNotifyMessage(); - result.readParams(stream, exception); - return result; - } + public static TL_receivedNotifyMessage TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_receivedNotifyMessage.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_receivedNotifyMessage", constructor)); + } else { + return null; + } + } + TL_receivedNotifyMessage result = new TL_receivedNotifyMessage(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - flags = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + flags = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(id); - stream.writeInt32(flags); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(id); + stream.writeInt32(flags); + } + } - public static abstract class InputEncryptedFile extends TLObject { - public long id; - public long access_hash; - public int parts; - public int key_fingerprint; - public String md5_checksum; + public static abstract class InputEncryptedFile extends TLObject { + public long id; + public long access_hash; + public int parts; + public int key_fingerprint; + public String md5_checksum; public static InputEncryptedFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - InputEncryptedFile result = null; - switch (constructor) { - case 0x5a17b5e5: - result = new TL_inputEncryptedFile(); - break; - case 0x2dc173c8: - result = new TL_inputEncryptedFileBigUploaded(); - break; - case 0x1837c364: - result = new TL_inputEncryptedFileEmpty(); + InputEncryptedFile result = null; + switch (constructor) { + case 0x5a17b5e5: + result = new TL_inputEncryptedFile(); break; - case 0x64bd0306: - result = new TL_inputEncryptedFileUploaded(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in InputEncryptedFile", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0x2dc173c8: + result = new TL_inputEncryptedFileBigUploaded(); + break; + case 0x1837c364: + result = new TL_inputEncryptedFileEmpty(); + break; + case 0x64bd0306: + result = new TL_inputEncryptedFileUploaded(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in InputEncryptedFile", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_inputEncryptedFile extends InputEncryptedFile { - public static int constructor = 0x5a17b5e5; + public static class TL_inputEncryptedFile extends InputEncryptedFile { + public static int constructor = 0x5a17b5e5; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - } - } - - public static class TL_inputEncryptedFileBigUploaded extends InputEncryptedFile { - public static int constructor = 0x2dc173c8; - - - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { id = stream.readInt64(exception); - parts = stream.readInt32(exception); - key_fingerprint = stream.readInt32(exception); - } + access_hash = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); stream.writeInt64(id); - stream.writeInt32(parts); - stream.writeInt32(key_fingerprint); - } - } + stream.writeInt64(access_hash); + } + } - public static class TL_inputEncryptedFileEmpty extends InputEncryptedFile { - public static int constructor = 0x1837c364; + public static class TL_inputEncryptedFileBigUploaded extends InputEncryptedFile { + public static int constructor = 0x2dc173c8; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + parts = stream.readInt32(exception); + key_fingerprint = stream.readInt32(exception); + } - public static class TL_inputEncryptedFileUploaded extends InputEncryptedFile { - public static int constructor = 0x64bd0306; + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt32(parts); + stream.writeInt32(key_fingerprint); + } + } + + public static class TL_inputEncryptedFileEmpty extends InputEncryptedFile { + public static int constructor = 0x1837c364; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - parts = stream.readInt32(exception); - md5_checksum = stream.readString(exception); - key_fingerprint = stream.readInt32(exception); - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt32(parts); - stream.writeString(md5_checksum); - stream.writeInt32(key_fingerprint); - } - } + public static class TL_inputEncryptedFileUploaded extends InputEncryptedFile { + public static int constructor = 0x64bd0306; - public static abstract class messages_AllStickers extends TLObject { - public String hash; - public ArrayList sets = new ArrayList<>(); - public ArrayList packs = new ArrayList<>(); - public ArrayList documents = new ArrayList<>(); - public static messages_AllStickers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_AllStickers result = null; - switch (constructor) { + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + parts = stream.readInt32(exception); + md5_checksum = stream.readString(exception); + key_fingerprint = stream.readInt32(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt32(parts); + stream.writeString(md5_checksum); + stream.writeInt32(key_fingerprint); + } + } + + public static abstract class messages_AllStickers extends TLObject { + public String hash; + public ArrayList sets = new ArrayList<>(); + public ArrayList packs = new ArrayList<>(); + public ArrayList documents = new ArrayList<>(); + + public static messages_AllStickers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_AllStickers result = null; + switch (constructor) { case 0xcdbbcebb: result = new TL_messages_allStickers(); break; - case 0xe86602c3: - result = new TL_messages_allStickersNotModified(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_AllStickers", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0xe86602c3: + result = new TL_messages_allStickersNotModified(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_AllStickers", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } public static class TL_messages_allStickers extends messages_AllStickers { public static int constructor = 0xcdbbcebb; @@ -28964,14 +29142,14 @@ public class TLRPC { } } - public static class TL_messages_allStickersNotModified extends messages_AllStickers { - public static int constructor = 0xe86602c3; + public static class TL_messages_allStickersNotModified extends messages_AllStickers { + public static int constructor = 0xe86602c3; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messages_messageViews extends TLObject { public static int constructor = 0xb6c4f543; @@ -29064,297 +29242,297 @@ public class TLRPC { } } - public static abstract class DecryptedMessageAction extends TLObject { - public int ttl_seconds; - public int layer; - public ArrayList random_ids = new ArrayList<>(); - public long exchange_id; - public long key_fingerprint; - public SendMessageAction action; - public byte[] g_b; - public int start_seq_no; - public int end_seq_no; - public byte[] g_a; + public static abstract class DecryptedMessageAction extends TLObject { + public int ttl_seconds; + public int layer; + public ArrayList random_ids = new ArrayList<>(); + public long exchange_id; + public long key_fingerprint; + public SendMessageAction action; + public byte[] g_b; + public int start_seq_no; + public int end_seq_no; + public byte[] g_a; - public static DecryptedMessageAction TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - DecryptedMessageAction result = null; - switch (constructor) { - case 0xa1733aec: - result = new TL_decryptedMessageActionSetMessageTTL(); - break; - case 0xf3048883: - result = new TL_decryptedMessageActionNotifyLayer(); - break; - case 0x65614304: - result = new TL_decryptedMessageActionDeleteMessages(); - break; - case 0xec2e0b9b: - result = new TL_decryptedMessageActionCommitKey(); - break; - case 0xdd05ec6b: - result = new TL_decryptedMessageActionAbortKey(); - break; - case 0x6719e45c: - result = new TL_decryptedMessageActionFlushHistory(); - break; - case 0xccb27641: - result = new TL_decryptedMessageActionTyping(); - break; - case 0x6fe1735b: - result = new TL_decryptedMessageActionAcceptKey(); - break; - case 0xc4f40be: - result = new TL_decryptedMessageActionReadMessages(); - break; - case 0x511110b0: - result = new TL_decryptedMessageActionResend(); - break; - case 0xf3c9611b: - result = new TL_decryptedMessageActionRequestKey(); - break; - case 0x8ac1f475: - result = new TL_decryptedMessageActionScreenshotMessages(); - break; - case 0xa82fdd63: - result = new TL_decryptedMessageActionNoop(); - break; - } - if (result == null && exception) { + public static DecryptedMessageAction TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + DecryptedMessageAction result = null; + switch (constructor) { + case 0xa1733aec: + result = new TL_decryptedMessageActionSetMessageTTL(); + break; + case 0xf3048883: + result = new TL_decryptedMessageActionNotifyLayer(); + break; + case 0x65614304: + result = new TL_decryptedMessageActionDeleteMessages(); + break; + case 0xec2e0b9b: + result = new TL_decryptedMessageActionCommitKey(); + break; + case 0xdd05ec6b: + result = new TL_decryptedMessageActionAbortKey(); + break; + case 0x6719e45c: + result = new TL_decryptedMessageActionFlushHistory(); + break; + case 0xccb27641: + result = new TL_decryptedMessageActionTyping(); + break; + case 0x6fe1735b: + result = new TL_decryptedMessageActionAcceptKey(); + break; + case 0xc4f40be: + result = new TL_decryptedMessageActionReadMessages(); + break; + case 0x511110b0: + result = new TL_decryptedMessageActionResend(); + break; + case 0xf3c9611b: + result = new TL_decryptedMessageActionRequestKey(); + break; + case 0x8ac1f475: + result = new TL_decryptedMessageActionScreenshotMessages(); + break; + case 0xa82fdd63: + result = new TL_decryptedMessageActionNoop(); + break; + } + if (result == null && exception) { throw new RuntimeException(String.format("can't parse magic %x in DecryptedMessageAction", constructor)); - } - if (result != null) { + } + if (result != null) { result.readParams(stream, exception); } - return result; - } - } - - public static class TL_decryptedMessageActionSetMessageTTL extends DecryptedMessageAction { - public static int constructor = 0xa1733aec; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - ttl_seconds = stream.readInt32(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(ttl_seconds); - } - } - - public static class TL_decryptedMessageActionNotifyLayer extends DecryptedMessageAction { - public static int constructor = 0xf3048883; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - layer = stream.readInt32(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(layer); - } - } - - public static class TL_decryptedMessageActionDeleteMessages extends DecryptedMessageAction { - public static int constructor = 0x65614304; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - random_ids.add(stream.readInt64(exception)); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = random_ids.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt64(random_ids.get(a)); - } + return result; } - } + } - public static class TL_decryptedMessageActionCommitKey extends DecryptedMessageAction { - public static int constructor = 0xec2e0b9b; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - exchange_id = stream.readInt64(exception); - key_fingerprint = stream.readInt64(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(exchange_id); - stream.writeInt64(key_fingerprint); - } - } - - public static class TL_decryptedMessageActionAbortKey extends DecryptedMessageAction { - public static int constructor = 0xdd05ec6b; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - exchange_id = stream.readInt64(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(exchange_id); - } - } - - public static class TL_decryptedMessageActionFlushHistory extends DecryptedMessageAction { - public static int constructor = 0x6719e45c; - - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } - - public static class TL_decryptedMessageActionTyping extends DecryptedMessageAction { - public static int constructor = 0xccb27641; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - action = SendMessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - action.serializeToStream(stream); - } - } - - public static class TL_decryptedMessageActionAcceptKey extends DecryptedMessageAction { - public static int constructor = 0x6fe1735b; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - exchange_id = stream.readInt64(exception); - g_b = stream.readByteArray(exception); - key_fingerprint = stream.readInt64(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(exchange_id); - stream.writeByteArray(g_b); - stream.writeInt64(key_fingerprint); - } - } - - public static class TL_decryptedMessageActionReadMessages extends DecryptedMessageAction { - public static int constructor = 0xc4f40be; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - random_ids.add(stream.readInt64(exception)); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = random_ids.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt64(random_ids.get(a)); - } - } - } - - public static class TL_decryptedMessageActionResend extends DecryptedMessageAction { - public static int constructor = 0x511110b0; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - start_seq_no = stream.readInt32(exception); - end_seq_no = stream.readInt32(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(start_seq_no); - stream.writeInt32(end_seq_no); - } - } - - public static class TL_decryptedMessageActionRequestKey extends DecryptedMessageAction { - public static int constructor = 0xf3c9611b; + public static class TL_decryptedMessageActionSetMessageTTL extends DecryptedMessageAction { + public static int constructor = 0xa1733aec; public void readParams(AbstractSerializedData stream, boolean exception) { - exchange_id = stream.readInt64(exception); - g_a = stream.readByteArray(exception); - } + ttl_seconds = stream.readInt32(exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(exchange_id); - stream.writeByteArray(g_a); - } - } - - public static class TL_decryptedMessageActionScreenshotMessages extends DecryptedMessageAction { - public static int constructor = 0x8ac1f475; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - random_ids.add(stream.readInt64(exception)); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = random_ids.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt64(random_ids.get(a)); - } - } + stream.writeInt32(constructor); + stream.writeInt32(ttl_seconds); + } } - public static class TL_decryptedMessageActionNoop extends DecryptedMessageAction { - public static int constructor = 0xa82fdd63; + public static class TL_decryptedMessageActionNotifyLayer extends DecryptedMessageAction { + public static int constructor = 0xf3048883; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + layer = stream.readInt32(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(layer); + } + } + + public static class TL_decryptedMessageActionDeleteMessages extends DecryptedMessageAction { + public static int constructor = 0x65614304; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + random_ids.add(stream.readInt64(exception)); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = random_ids.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt64(random_ids.get(a)); + } + } + } + + public static class TL_decryptedMessageActionCommitKey extends DecryptedMessageAction { + public static int constructor = 0xec2e0b9b; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + exchange_id = stream.readInt64(exception); + key_fingerprint = stream.readInt64(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(exchange_id); + stream.writeInt64(key_fingerprint); + } + } + + public static class TL_decryptedMessageActionAbortKey extends DecryptedMessageAction { + public static int constructor = 0xdd05ec6b; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + exchange_id = stream.readInt64(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(exchange_id); + } + } + + public static class TL_decryptedMessageActionFlushHistory extends DecryptedMessageAction { + public static int constructor = 0x6719e45c; + + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } + + public static class TL_decryptedMessageActionTyping extends DecryptedMessageAction { + public static int constructor = 0xccb27641; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + action = SendMessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + action.serializeToStream(stream); + } + } + + public static class TL_decryptedMessageActionAcceptKey extends DecryptedMessageAction { + public static int constructor = 0x6fe1735b; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + exchange_id = stream.readInt64(exception); + g_b = stream.readByteArray(exception); + key_fingerprint = stream.readInt64(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(exchange_id); + stream.writeByteArray(g_b); + stream.writeInt64(key_fingerprint); + } + } + + public static class TL_decryptedMessageActionReadMessages extends DecryptedMessageAction { + public static int constructor = 0xc4f40be; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + random_ids.add(stream.readInt64(exception)); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = random_ids.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt64(random_ids.get(a)); + } + } + } + + public static class TL_decryptedMessageActionResend extends DecryptedMessageAction { + public static int constructor = 0x511110b0; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + start_seq_no = stream.readInt32(exception); + end_seq_no = stream.readInt32(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(start_seq_no); + stream.writeInt32(end_seq_no); + } + } + + public static class TL_decryptedMessageActionRequestKey extends DecryptedMessageAction { + public static int constructor = 0xf3c9611b; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + exchange_id = stream.readInt64(exception); + g_a = stream.readByteArray(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(exchange_id); + stream.writeByteArray(g_a); + } + } + + public static class TL_decryptedMessageActionScreenshotMessages extends DecryptedMessageAction { + public static int constructor = 0x8ac1f475; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + random_ids.add(stream.readInt64(exception)); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = random_ids.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt64(random_ids.get(a)); + } + } + } + + public static class TL_decryptedMessageActionNoop extends DecryptedMessageAction { + public static int constructor = 0xa82fdd63; + + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static abstract class InputCheckPasswordSRP extends TLObject { @@ -29732,57 +29910,57 @@ public class TLRPC { } } - public static abstract class MessageEntity extends TLObject { - public int offset; - public int length; - public String url; - public String language; + public static abstract class MessageEntity extends TLObject { + public int offset; + public int length; + public String url; + public String language; - public static MessageEntity TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - MessageEntity result = null; - switch (constructor) { - case 0x76a6d327: - result = new TL_messageEntityTextUrl(); - break; - case 0x6cef8ac7: - result = new TL_messageEntityBotCommand(); - break; - case 0x64e475c2: - result = new TL_messageEntityEmail(); - break; - case 0x73924be0: - result = new TL_messageEntityPre(); - break; - case 0xbb92ba95: - result = new TL_messageEntityUnknown(); - break; - case 0x6ed02538: - result = new TL_messageEntityUrl(); - break; - case 0x826f8b60: - result = new TL_messageEntityItalic(); - break; - case 0xfa04579d: - result = new TL_messageEntityMention(); - break; - case 0x352dca58: - result = new TL_messageEntityMentionName_layer131(); - break; - case 0x208e68c9: - result = new TL_inputMessageEntityMentionName(); - break; - case 0x4c4e743f: - result = new TL_messageEntityCashtag(); - break; - case 0xbd610bc9: - result = new TL_messageEntityBold(); - break; - case 0x6f635b0d: - result = new TL_messageEntityHashtag(); - break; - case 0x28a20571: - result = new TL_messageEntityCode(); - break; + public static MessageEntity TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + MessageEntity result = null; + switch (constructor) { + case 0x76a6d327: + result = new TL_messageEntityTextUrl(); + break; + case 0x6cef8ac7: + result = new TL_messageEntityBotCommand(); + break; + case 0x64e475c2: + result = new TL_messageEntityEmail(); + break; + case 0x73924be0: + result = new TL_messageEntityPre(); + break; + case 0xbb92ba95: + result = new TL_messageEntityUnknown(); + break; + case 0x6ed02538: + result = new TL_messageEntityUrl(); + break; + case 0x826f8b60: + result = new TL_messageEntityItalic(); + break; + case 0xfa04579d: + result = new TL_messageEntityMention(); + break; + case 0x352dca58: + result = new TL_messageEntityMentionName_layer131(); + break; + case 0x208e68c9: + result = new TL_inputMessageEntityMentionName(); + break; + case 0x4c4e743f: + result = new TL_messageEntityCashtag(); + break; + case 0xbd610bc9: + result = new TL_messageEntityBold(); + break; + case 0x6f635b0d: + result = new TL_messageEntityHashtag(); + break; + case 0x28a20571: + result = new TL_messageEntityCode(); + break; case 0xbf0693d4: result = new TL_messageEntityStrike(); break; @@ -29795,254 +29973,254 @@ public class TLRPC { case 0x761e6af4: result = new TL_messageEntityBankCard(); break; - case 0x9b69e34b: - result = new TL_messageEntityPhone(); - break; + case 0x9b69e34b: + result = new TL_messageEntityPhone(); + break; case 0xdc7b1140: result = new TL_messageEntityMentionName(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in MessageEntity", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in MessageEntity", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messageEntityTextUrl extends MessageEntity { - public static int constructor = 0x76a6d327; + public static class TL_messageEntityTextUrl extends MessageEntity { + public static int constructor = 0x76a6d327; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - url = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + url = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - stream.writeString(url); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + stream.writeString(url); + } + } - public static class TL_messageEntityBotCommand extends MessageEntity { - public static int constructor = 0x6cef8ac7; + public static class TL_messageEntityBotCommand extends MessageEntity { + public static int constructor = 0x6cef8ac7; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } - public static class TL_messageEntityEmail extends MessageEntity { - public static int constructor = 0x64e475c2; + public static class TL_messageEntityEmail extends MessageEntity { + public static int constructor = 0x64e475c2; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } - public static class TL_messageEntityPre extends MessageEntity { - public static int constructor = 0x73924be0; + public static class TL_messageEntityPre extends MessageEntity { + public static int constructor = 0x73924be0; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - language = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + language = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - stream.writeString(language); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + stream.writeString(language); + } + } - public static class TL_messageEntityUnknown extends MessageEntity { - public static int constructor = 0xbb92ba95; + public static class TL_messageEntityUnknown extends MessageEntity { + public static int constructor = 0xbb92ba95; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } - public static class TL_messageEntityUrl extends MessageEntity { - public static int constructor = 0x6ed02538; + public static class TL_messageEntityUrl extends MessageEntity { + public static int constructor = 0x6ed02538; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } - public static class TL_messageEntityItalic extends MessageEntity { - public static int constructor = 0x826f8b60; + public static class TL_messageEntityItalic extends MessageEntity { + public static int constructor = 0x826f8b60; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } - public static class TL_messageEntityMention extends MessageEntity { - public static int constructor = 0xfa04579d; + public static class TL_messageEntityMention extends MessageEntity { + public static int constructor = 0xfa04579d; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } - public static class TL_messageEntityMentionName_layer131 extends TL_messageEntityMentionName { - public static int constructor = 0x352dca58; + public static class TL_messageEntityMentionName_layer131 extends TL_messageEntityMentionName { + public static int constructor = 0x352dca58; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - user_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + user_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - stream.writeInt32((int) user_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + stream.writeInt32((int) user_id); + } + } - public static class TL_inputMessageEntityMentionName extends MessageEntity { - public static int constructor = 0x208e68c9; + public static class TL_inputMessageEntityMentionName extends MessageEntity { + public static int constructor = 0x208e68c9; - public InputUser user_id; + public InputUser user_id; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - user_id = InputUser.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + user_id = InputUser.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - user_id.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + user_id.serializeToStream(stream); + } + } - public static class TL_messageEntityCashtag extends MessageEntity { - public static int constructor = 0x4c4e743f; + public static class TL_messageEntityCashtag extends MessageEntity { + public static int constructor = 0x4c4e743f; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } - public static class TL_messageEntityBold extends MessageEntity { - public static int constructor = 0xbd610bc9; + public static class TL_messageEntityBold extends MessageEntity { + public static int constructor = 0xbd610bc9; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } - public static class TL_messageEntityHashtag extends MessageEntity { - public static int constructor = 0x6f635b0d; + public static class TL_messageEntityHashtag extends MessageEntity { + public static int constructor = 0x6f635b0d; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } - public static class TL_messageEntityCode extends MessageEntity { - public static int constructor = 0x28a20571; + public static class TL_messageEntityCode extends MessageEntity { + public static int constructor = 0x28a20571; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } public static class TL_messageEntityStrike extends MessageEntity { public static int constructor = 0xbf0693d4; @@ -30108,20 +30286,20 @@ public class TLRPC { } } - public static class TL_messageEntityPhone extends MessageEntity { - public static int constructor = 0x9b69e34b; + public static class TL_messageEntityPhone extends MessageEntity { + public static int constructor = 0x9b69e34b; - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(length); + } + } public static class TL_messageEntityMentionName extends MessageEntity { public static int constructor = 0xdc7b1140; @@ -30624,163 +30802,163 @@ public class TLRPC { } } - public static class TL_encryptedChatRequested_old extends TL_encryptedChatRequested { - public static int constructor = 0xfda9a7b7; + public static class TL_encryptedChatRequested_old extends TL_encryptedChatRequested { + public static int constructor = 0xfda9a7b7; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); - admin_id = stream.readInt32(exception); - participant_id = stream.readInt32(exception); - g_a = stream.readByteArray(exception); - nonce = stream.readByteArray(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(id); - stream.writeInt64(access_hash); - stream.writeInt32(date); - stream.writeInt32((int) admin_id); - stream.writeInt32((int) participant_id); - stream.writeByteArray(g_a); - stream.writeByteArray(nonce); - } - } - - public static class TL_encryptedChatRequested_layer115 extends EncryptedChat { - public static int constructor = 0xc878527e; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); + date = stream.readInt32(exception); admin_id = stream.readInt32(exception); - participant_id = stream.readInt32(exception); - g_a = stream.readByteArray(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(id); - stream.writeInt64(access_hash); - stream.writeInt32(date); - stream.writeInt32((int) admin_id); - stream.writeInt32((int) participant_id); - stream.writeByteArray(g_a); - } - } - - public static class TL_encryptedChat_layer131 extends TL_encryptedChat { - public static int constructor = 0xfa56ce36; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); - admin_id = stream.readInt32(exception); participant_id = stream.readInt32(exception); - g_a_or_b = stream.readByteArray(exception); - key_fingerprint = stream.readInt64(exception); + g_a = stream.readByteArray(exception); + nonce = stream.readByteArray(exception); } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - stream.writeInt32(id); - stream.writeInt64(access_hash); - stream.writeInt32(date); - stream.writeInt32((int) admin_id); - stream.writeInt32((int) participant_id); - stream.writeByteArray(g_a_or_b); - stream.writeInt64(key_fingerprint); - } - } + stream.writeInt32(id); + stream.writeInt64(access_hash); + stream.writeInt32(date); + stream.writeInt32((int) admin_id); + stream.writeInt32((int) participant_id); + stream.writeByteArray(g_a); + stream.writeByteArray(nonce); + } + } - public static class TL_encryptedChat_old extends TL_encryptedChat { - public static int constructor = 0x6601d14f; + public static class TL_encryptedChatRequested_layer115 extends EncryptedChat { + public static int constructor = 0xc878527e; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); - admin_id = stream.readInt32(exception); + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + access_hash = stream.readInt64(exception); + date = stream.readInt32(exception); + admin_id = stream.readInt32(exception); participant_id = stream.readInt32(exception); - g_a_or_b = stream.readByteArray(exception); - nonce = stream.readByteArray(exception); - key_fingerprint = stream.readInt64(exception); - } + g_a = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - stream.writeInt32(id); - stream.writeInt64(access_hash); - stream.writeInt32(date); - stream.writeInt32((int) admin_id); - stream.writeInt32((int) participant_id); - stream.writeByteArray(g_a_or_b); - stream.writeByteArray(nonce); - stream.writeInt64(key_fingerprint); - } - } + stream.writeInt32(id); + stream.writeInt64(access_hash); + stream.writeInt32(date); + stream.writeInt32((int) admin_id); + stream.writeInt32((int) participant_id); + stream.writeByteArray(g_a); + } + } - public static class TL_encryptedChatEmpty extends EncryptedChat { + public static class TL_encryptedChat_layer131 extends TL_encryptedChat { + public static int constructor = 0xfa56ce36; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + access_hash = stream.readInt64(exception); + date = stream.readInt32(exception); + admin_id = stream.readInt32(exception); + participant_id = stream.readInt32(exception); + g_a_or_b = stream.readByteArray(exception); + key_fingerprint = stream.readInt64(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(id); + stream.writeInt64(access_hash); + stream.writeInt32(date); + stream.writeInt32((int) admin_id); + stream.writeInt32((int) participant_id); + stream.writeByteArray(g_a_or_b); + stream.writeInt64(key_fingerprint); + } + } + + public static class TL_encryptedChat_old extends TL_encryptedChat { + public static int constructor = 0x6601d14f; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + access_hash = stream.readInt64(exception); + date = stream.readInt32(exception); + admin_id = stream.readInt32(exception); + participant_id = stream.readInt32(exception); + g_a_or_b = stream.readByteArray(exception); + nonce = stream.readByteArray(exception); + key_fingerprint = stream.readInt64(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(id); + stream.writeInt64(access_hash); + stream.writeInt32(date); + stream.writeInt32((int) admin_id); + stream.writeInt32((int) participant_id); + stream.writeByteArray(g_a_or_b); + stream.writeByteArray(nonce); + stream.writeInt64(key_fingerprint); + } + } + + public static class TL_encryptedChatEmpty extends EncryptedChat { public static int constructor = 0xab7ec0a0; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(id); - } - } + stream.writeInt32(constructor); + stream.writeInt32(id); + } + } - public static class TL_encryptedChatWaiting_layer131 extends TL_encryptedChatWaiting { - public static int constructor = 0x3bf703dc; + public static class TL_encryptedChatWaiting_layer131 extends TL_encryptedChatWaiting { + public static int constructor = 0x3bf703dc; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); - admin_id = stream.readInt32(exception); - participant_id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + access_hash = stream.readInt64(exception); + date = stream.readInt32(exception); + admin_id = stream.readInt32(exception); + participant_id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(id); - stream.writeInt64(access_hash); - stream.writeInt32(date); - stream.writeInt32((int) admin_id); - stream.writeInt32((int) participant_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(id); + stream.writeInt64(access_hash); + stream.writeInt32(date); + stream.writeInt32((int) admin_id); + stream.writeInt32((int) participant_id); + } + } - public static class TL_encryptedChatDiscarded_layer122 extends TL_encryptedChatDiscarded { - public static int constructor = 0x13d6dd27; + public static class TL_encryptedChatDiscarded_layer122 extends TL_encryptedChatDiscarded { + public static int constructor = 0x13d6dd27; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(id); + } + } public static class TL_encryptedChatDiscarded extends EncryptedChat { public static int constructor = 0x1e1c7c45; - + public void readParams(AbstractSerializedData stream, boolean exception) { flags = stream.readInt32(exception); @@ -30878,34 +31056,34 @@ public class TLRPC { public static abstract class messages_FoundStickerSets extends TLObject { - public static messages_FoundStickerSets TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_FoundStickerSets result = null; - switch (constructor) { - case 0xd54b65d: - result = new TL_messages_foundStickerSetsNotModified(); - break; + public static messages_FoundStickerSets TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_FoundStickerSets result = null; + switch (constructor) { + case 0xd54b65d: + result = new TL_messages_foundStickerSetsNotModified(); + break; case 0x8af09dd2: result = new TL_messages_foundStickerSets(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_FoundStickerSets", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_FoundStickerSets", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messages_foundStickerSetsNotModified extends messages_FoundStickerSets { - public static int constructor = 0xd54b65d; + public static class TL_messages_foundStickerSetsNotModified extends messages_FoundStickerSets { + public static int constructor = 0xd54b65d; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messages_foundStickerSets extends messages_FoundStickerSets { public static int constructor = 0x8af09dd2; @@ -31096,39 +31274,39 @@ public class TLRPC { } } - public static class TL_secureData extends TLObject { - public static int constructor = 0x8aeabec3; + public static class TL_secureData extends TLObject { + public static int constructor = 0x8aeabec3; - public byte[] data; - public byte[] data_hash; - public byte[] secret; + public byte[] data; + public byte[] data_hash; + public byte[] secret; - public static TL_secureData TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_secureData.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_secureData", constructor)); - } else { - return null; - } - } - TL_secureData result = new TL_secureData(); - result.readParams(stream, exception); - return result; - } + public static TL_secureData TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_secureData.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_secureData", constructor)); + } else { + return null; + } + } + TL_secureData result = new TL_secureData(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - data = stream.readByteArray(exception); - data_hash = stream.readByteArray(exception); - secret = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + data = stream.readByteArray(exception); + data_hash = stream.readByteArray(exception); + secret = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(data); - stream.writeByteArray(data_hash); - stream.writeByteArray(secret); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(data); + stream.writeByteArray(data_hash); + stream.writeByteArray(secret); + } + } public static class TL_config extends TLObject { public static int constructor = 0x330b4067; @@ -31366,281 +31544,281 @@ public class TLRPC { } } - public static abstract class contacts_TopPeers extends TLObject { + public static abstract class contacts_TopPeers extends TLObject { - public static contacts_TopPeers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - contacts_TopPeers result = null; - switch (constructor) { - case 0x70b772a8: - result = new TL_contacts_topPeers(); - break; - case 0xb52c939d: - result = new TL_contacts_topPeersDisabled(); - break; - case 0xde266ef5: - result = new TL_contacts_topPeersNotModified(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in contacts_TopPeers", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static contacts_TopPeers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + contacts_TopPeers result = null; + switch (constructor) { + case 0x70b772a8: + result = new TL_contacts_topPeers(); + break; + case 0xb52c939d: + result = new TL_contacts_topPeersDisabled(); + break; + case 0xde266ef5: + result = new TL_contacts_topPeersNotModified(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in contacts_TopPeers", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_contacts_topPeers extends contacts_TopPeers { - public static int constructor = 0x70b772a8; + public static class TL_contacts_topPeers extends contacts_TopPeers { + public static int constructor = 0x70b772a8; - public ArrayList categories = new ArrayList<>(); - public ArrayList chats = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); + public ArrayList categories = new ArrayList<>(); + public ArrayList chats = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_topPeerCategoryPeers object = TL_topPeerCategoryPeers.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - categories.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_topPeerCategoryPeers object = TL_topPeerCategoryPeers.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + categories.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = categories.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - categories.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = categories.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + categories.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } - public static class TL_contacts_topPeersDisabled extends contacts_TopPeers { - public static int constructor = 0xb52c939d; + public static class TL_contacts_topPeersDisabled extends contacts_TopPeers { + public static int constructor = 0xb52c939d; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_contacts_topPeersNotModified extends contacts_TopPeers { - public static int constructor = 0xde266ef5; + public static class TL_contacts_topPeersNotModified extends contacts_TopPeers { + public static int constructor = 0xde266ef5; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_help_support extends TLObject { - public static int constructor = 0x17c6b5f6; + public static class TL_help_support extends TLObject { + public static int constructor = 0x17c6b5f6; - public String phone_number; - public User user; + public String phone_number; + public User user; - public static TL_help_support TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_help_support.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_help_support", constructor)); - } else { - return null; - } - } - TL_help_support result = new TL_help_support(); - result.readParams(stream, exception); - return result; - } + public static TL_help_support TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_help_support.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_help_support", constructor)); + } else { + return null; + } + } + TL_help_support result = new TL_help_support(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - phone_number = stream.readString(exception); - user = User.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + phone_number = stream.readString(exception); + user = User.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); stream.writeString(phone_number); - user.serializeToStream(stream); - } - } + user.serializeToStream(stream); + } + } - public static class TL_account_tmpPassword extends TLObject { - public static int constructor = 0xdb64fd34; + public static class TL_account_tmpPassword extends TLObject { + public static int constructor = 0xdb64fd34; - public byte[] tmp_password; - public int valid_until; + public byte[] tmp_password; + public int valid_until; - public static TL_account_tmpPassword TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_account_tmpPassword.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_account_tmpPassword", constructor)); - } else { - return null; - } - } - TL_account_tmpPassword result = new TL_account_tmpPassword(); - result.readParams(stream, exception); - return result; - } + public static TL_account_tmpPassword TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_account_tmpPassword.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_account_tmpPassword", constructor)); + } else { + return null; + } + } + TL_account_tmpPassword result = new TL_account_tmpPassword(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - tmp_password = stream.readByteArray(exception); - valid_until = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + tmp_password = stream.readByteArray(exception); + valid_until = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(tmp_password); - stream.writeInt32(valid_until); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(tmp_password); + stream.writeInt32(valid_until); + } + } - public static abstract class messages_Chats extends TLObject { - public ArrayList chats = new ArrayList<>(); - public int count; + public static abstract class messages_Chats extends TLObject { + public ArrayList chats = new ArrayList<>(); + public int count; - public static messages_Chats TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_Chats result = null; - switch (constructor) { - case 0x64ff9fd5: - result = new TL_messages_chats(); - break; - case 0x9cd81144: - result = new TL_messages_chatsSlice(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_Chats", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static messages_Chats TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_Chats result = null; + switch (constructor) { + case 0x64ff9fd5: + result = new TL_messages_chats(); + break; + case 0x9cd81144: + result = new TL_messages_chatsSlice(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_Chats", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messages_chats extends messages_Chats { - public static int constructor = 0x64ff9fd5; + public static class TL_messages_chats extends messages_Chats { + public static int constructor = 0x64ff9fd5; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + } + } - public static class TL_messages_chatsSlice extends messages_Chats { - public static int constructor = 0x9cd81144; + public static class TL_messages_chatsSlice extends messages_Chats { + public static int constructor = 0x9cd81144; - public void readParams(AbstractSerializedData stream, boolean exception) { - count = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + count = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(count); - stream.writeInt32(0x1cb5c415); - int count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(count); + stream.writeInt32(0x1cb5c415); + int count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + } + } public static abstract class InputChannel extends TLObject { @@ -31981,162 +32159,162 @@ public class TLRPC { } } - public static abstract class messages_BotResults extends TLObject { - public int flags; - public boolean gallery; - public long query_id; - public String next_offset; - public TL_inlineBotSwitchPM switch_pm; - public ArrayList results = new ArrayList<>(); - public int cache_time; - public ArrayList users = new ArrayList<>(); + public static abstract class messages_BotResults extends TLObject { + public int flags; + public boolean gallery; + public long query_id; + public String next_offset; + public TL_inlineBotSwitchPM switch_pm; + public ArrayList results = new ArrayList<>(); + public int cache_time; + public ArrayList users = new ArrayList<>(); - public static messages_BotResults TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_BotResults result = null; - switch (constructor) { - case 0xccd3563d: - result = new TL_messages_botResults_layer71(); - break; - case 0x947ca848: - result = new TL_messages_botResults(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_BotResults", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static messages_BotResults TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_BotResults result = null; + switch (constructor) { + case 0xccd3563d: + result = new TL_messages_botResults_layer71(); + break; + case 0x947ca848: + result = new TL_messages_botResults(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_BotResults", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messages_botResults_layer71 extends TL_messages_botResults { - public static int constructor = 0xccd3563d; + public static class TL_messages_botResults_layer71 extends TL_messages_botResults { + public static int constructor = 0xccd3563d; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - gallery = (flags & 1) != 0; - query_id = stream.readInt64(exception); - if ((flags & 2) != 0) { - next_offset = stream.readString(exception); - } - if ((flags & 4) != 0) { - switch_pm = TL_inlineBotSwitchPM.TLdeserialize(stream, stream.readInt32(exception), exception); - } - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - BotInlineResult object = BotInlineResult.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - results.add(object); - } - cache_time = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + gallery = (flags & 1) != 0; + query_id = stream.readInt64(exception); + if ((flags & 2) != 0) { + next_offset = stream.readString(exception); + } + if ((flags & 4) != 0) { + switch_pm = TL_inlineBotSwitchPM.TLdeserialize(stream, stream.readInt32(exception), exception); + } + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + BotInlineResult object = BotInlineResult.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + results.add(object); + } + cache_time = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = gallery ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeInt64(query_id); - if ((flags & 2) != 0) { - stream.writeString(next_offset); - } - if ((flags & 4) != 0) { - switch_pm.serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - int count = results.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - results.get(a).serializeToStream(stream); - } - stream.writeInt32(cache_time); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = gallery ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeInt64(query_id); + if ((flags & 2) != 0) { + stream.writeString(next_offset); + } + if ((flags & 4) != 0) { + switch_pm.serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + int count = results.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + results.get(a).serializeToStream(stream); + } + stream.writeInt32(cache_time); + } + } - public static class TL_messages_botResults extends messages_BotResults { - public static int constructor = 0x947ca848; + public static class TL_messages_botResults extends messages_BotResults { + public static int constructor = 0x947ca848; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - gallery = (flags & 1) != 0; - query_id = stream.readInt64(exception); - if ((flags & 2) != 0) { - next_offset = stream.readString(exception); - } - if ((flags & 4) != 0) { - switch_pm = TL_inlineBotSwitchPM.TLdeserialize(stream, stream.readInt32(exception), exception); - } - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - BotInlineResult object = BotInlineResult.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - results.add(object); - } - cache_time = stream.readInt32(exception); - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + gallery = (flags & 1) != 0; + query_id = stream.readInt64(exception); + if ((flags & 2) != 0) { + next_offset = stream.readString(exception); + } + if ((flags & 4) != 0) { + switch_pm = TL_inlineBotSwitchPM.TLdeserialize(stream, stream.readInt32(exception), exception); + } + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + BotInlineResult object = BotInlineResult.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + results.add(object); + } + cache_time = stream.readInt32(exception); + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = gallery ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeInt64(query_id); - if ((flags & 2) != 0) { - stream.writeString(next_offset); - } - if ((flags & 4) != 0) { - switch_pm.serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - int count = results.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - results.get(a).serializeToStream(stream); - } - stream.writeInt32(cache_time); - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = gallery ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeInt64(query_id); + if ((flags & 2) != 0) { + stream.writeString(next_offset); + } + if ((flags & 4) != 0) { + switch_pm.serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + int count = results.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + results.get(a).serializeToStream(stream); + } + stream.writeInt32(cache_time); + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } public static class TL_inputFolderPeer extends TLObject { public static int constructor = 0xfbd2c296; @@ -32254,125 +32432,125 @@ public class TLRPC { } } - public static class TL_inputBotInlineMessageID extends TLObject { - public static int constructor = 0x890c3d89; + public static class TL_inputBotInlineMessageID extends TLObject { + public static int constructor = 0x890c3d89; - public int dc_id; - public long id; - public long access_hash; + public int dc_id; + public long id; + public long access_hash; - public static TL_inputBotInlineMessageID TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_inputBotInlineMessageID.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_inputBotInlineMessageID", constructor)); - } else { - return null; - } - } - TL_inputBotInlineMessageID result = new TL_inputBotInlineMessageID(); - result.readParams(stream, exception); - return result; - } + public static TL_inputBotInlineMessageID TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_inputBotInlineMessageID.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_inputBotInlineMessageID", constructor)); + } else { + return null; + } + } + TL_inputBotInlineMessageID result = new TL_inputBotInlineMessageID(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - dc_id = stream.readInt32(exception); - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + dc_id = stream.readInt32(exception); + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(dc_id); - stream.writeInt64(id); - stream.writeInt64(access_hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(dc_id); + stream.writeInt64(id); + stream.writeInt64(access_hash); + } + } - public static abstract class SecurePlainData extends TLObject { + public static abstract class SecurePlainData extends TLObject { - public static SecurePlainData TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - SecurePlainData result = null; - switch (constructor) { - case 0x21ec5a5f: - result = new TL_securePlainEmail(); - break; - case 0x7d6099dd: - result = new TL_securePlainPhone(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in SecurePlainData", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static SecurePlainData TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + SecurePlainData result = null; + switch (constructor) { + case 0x21ec5a5f: + result = new TL_securePlainEmail(); + break; + case 0x7d6099dd: + result = new TL_securePlainPhone(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in SecurePlainData", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_securePlainEmail extends SecurePlainData { - public static int constructor = 0x21ec5a5f; + public static class TL_securePlainEmail extends SecurePlainData { + public static int constructor = 0x21ec5a5f; - public String email; + public String email; - public void readParams(AbstractSerializedData stream, boolean exception) { - email = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + email = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(email); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(email); + } + } - public static class TL_securePlainPhone extends SecurePlainData { - public static int constructor = 0x7d6099dd; + public static class TL_securePlainPhone extends SecurePlainData { + public static int constructor = 0x7d6099dd; - public String phone; + public String phone; - public void readParams(AbstractSerializedData stream, boolean exception) { - phone = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + phone = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(phone); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(phone); + } + } - public static class TL_secureSecretSettings extends TLObject { - public static int constructor = 0x1527bcac; + public static class TL_secureSecretSettings extends TLObject { + public static int constructor = 0x1527bcac; - public SecurePasswordKdfAlgo secure_algo; - public byte[] secure_secret; - public long secure_secret_id; + public SecurePasswordKdfAlgo secure_algo; + public byte[] secure_secret; + public long secure_secret_id; - public static TL_secureSecretSettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_secureSecretSettings.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_secureSecretSettings", constructor)); - } else { - return null; - } - } - TL_secureSecretSettings result = new TL_secureSecretSettings(); - result.readParams(stream, exception); - return result; - } + public static TL_secureSecretSettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_secureSecretSettings.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_secureSecretSettings", constructor)); + } else { + return null; + } + } + TL_secureSecretSettings result = new TL_secureSecretSettings(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - secure_algo = SecurePasswordKdfAlgo.TLdeserialize(stream, stream.readInt32(exception), exception); - secure_secret = stream.readByteArray(exception); - secure_secret_id = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + secure_algo = SecurePasswordKdfAlgo.TLdeserialize(stream, stream.readInt32(exception), exception); + secure_secret = stream.readByteArray(exception); + secure_secret_id = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - secure_algo.serializeToStream(stream); - stream.writeByteArray(secure_secret); - stream.writeInt64(secure_secret_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + secure_algo.serializeToStream(stream); + stream.writeByteArray(secure_secret); + stream.writeInt64(secure_secret_id); + } + } public static class TL_emojiLanguage extends TLObject { public static int constructor = 0xb3fb5361; @@ -32645,173 +32823,173 @@ public class TLRPC { } } - public static abstract class updates_ChannelDifference extends TLObject { - public int flags; - public boolean isFinal; - public int pts; - public int timeout; - public ArrayList new_messages = new ArrayList<>(); - public ArrayList other_updates = new ArrayList<>(); - public ArrayList chats = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); + public static abstract class updates_ChannelDifference extends TLObject { + public int flags; + public boolean isFinal; + public int pts; + public int timeout; + public ArrayList new_messages = new ArrayList<>(); + public ArrayList other_updates = new ArrayList<>(); + public ArrayList chats = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); public Dialog dialog; - public ArrayList messages = new ArrayList<>(); + public ArrayList messages = new ArrayList<>(); - public static updates_ChannelDifference TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - updates_ChannelDifference result = null; - switch (constructor) { - case 0x3e11affb: - result = new TL_updates_channelDifferenceEmpty(); - break; - case 0x2064674e: - result = new TL_updates_channelDifference(); - break; + public static updates_ChannelDifference TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + updates_ChannelDifference result = null; + switch (constructor) { + case 0x3e11affb: + result = new TL_updates_channelDifferenceEmpty(); + break; + case 0x2064674e: + result = new TL_updates_channelDifference(); + break; case 0xa4bcc6fe: result = new TL_updates_channelDifferenceTooLong(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in updates_ChannelDifference", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in updates_ChannelDifference", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_updates_channelDifferenceEmpty extends updates_ChannelDifference { - public static int constructor = 0x3e11affb; + public static class TL_updates_channelDifferenceEmpty extends updates_ChannelDifference { + public static int constructor = 0x3e11affb; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - isFinal = (flags & 1) != 0; - pts = stream.readInt32(exception); - if ((flags & 2) != 0) { - timeout = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + isFinal = (flags & 1) != 0; + pts = stream.readInt32(exception); + if ((flags & 2) != 0) { + timeout = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = isFinal ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeInt32(pts); - if ((flags & 2) != 0) { - stream.writeInt32(timeout); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = isFinal ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeInt32(pts); + if ((flags & 2) != 0) { + stream.writeInt32(timeout); + } + } + } - public static class TL_updates_channelDifference extends updates_ChannelDifference { - public static int constructor = 0x2064674e; + public static class TL_updates_channelDifference extends updates_ChannelDifference { + public static int constructor = 0x2064674e; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - isFinal = (flags & 1) != 0; - pts = stream.readInt32(exception); - if ((flags & 2) != 0) { - timeout = stream.readInt32(exception); - } - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Message object = Message.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - new_messages.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Update object = Update.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - other_updates.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + isFinal = (flags & 1) != 0; + pts = stream.readInt32(exception); + if ((flags & 2) != 0) { + timeout = stream.readInt32(exception); + } + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Message object = Message.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + new_messages.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Update object = Update.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + other_updates.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = isFinal ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeInt32(pts); - if ((flags & 2) != 0) { - stream.writeInt32(timeout); - } - stream.writeInt32(0x1cb5c415); - int count = new_messages.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - new_messages.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = other_updates.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - other_updates.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = isFinal ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeInt32(pts); + if ((flags & 2) != 0) { + stream.writeInt32(timeout); + } + stream.writeInt32(0x1cb5c415); + int count = new_messages.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + new_messages.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = other_updates.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + other_updates.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } public static class TL_updates_channelDifferenceTooLong extends updates_ChannelDifference { public static int constructor = 0xa4bcc6fe; @@ -32900,30 +33078,30 @@ public class TLRPC { } } - public static abstract class ChannelMessagesFilter extends TLObject { - public int flags; - public boolean exclude_new_messages; - public ArrayList ranges = new ArrayList<>(); + public static abstract class ChannelMessagesFilter extends TLObject { + public int flags; + public boolean exclude_new_messages; + public ArrayList ranges = new ArrayList<>(); - public static ChannelMessagesFilter TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - ChannelMessagesFilter result = null; - switch (constructor) { - case 0x94d42ee7: - result = new TL_channelMessagesFilterEmpty(); - break; - case 0xcd77d957: - result = new TL_channelMessagesFilter(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in ChannelMessagesFilter", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static ChannelMessagesFilter TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + ChannelMessagesFilter result = null; + switch (constructor) { + case 0x94d42ee7: + result = new TL_channelMessagesFilterEmpty(); + break; + case 0xcd77d957: + result = new TL_channelMessagesFilter(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in ChannelMessagesFilter", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } public static class TL_sponsoredMessage extends TLObject { public static int constructor = 0xd151e19a; @@ -33002,265 +33180,265 @@ public class TLRPC { } } - public static class TL_account_authorizationForm extends TLObject { - public static int constructor = 0xad2e1cd8; + public static class TL_account_authorizationForm extends TLObject { + public static int constructor = 0xad2e1cd8; - public int flags; - public ArrayList required_types = new ArrayList<>(); - public ArrayList values = new ArrayList<>(); - public ArrayList errors = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); - public String privacy_policy_url; + public int flags; + public ArrayList required_types = new ArrayList<>(); + public ArrayList values = new ArrayList<>(); + public ArrayList errors = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); + public String privacy_policy_url; - public static TL_account_authorizationForm TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_account_authorizationForm.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_account_authorizationForm", constructor)); - } else { - return null; - } - } - TL_account_authorizationForm result = new TL_account_authorizationForm(); - result.readParams(stream, exception); - return result; - } + public static TL_account_authorizationForm TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_account_authorizationForm.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_account_authorizationForm", constructor)); + } else { + return null; + } + } + TL_account_authorizationForm result = new TL_account_authorizationForm(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - SecureRequiredType object = SecureRequiredType.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - required_types.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_secureValue object = TL_secureValue.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - values.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - SecureValueError object = SecureValueError.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - errors.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - if ((flags & 1) != 0) { - privacy_policy_url = stream.readString(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + SecureRequiredType object = SecureRequiredType.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + required_types.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_secureValue object = TL_secureValue.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + values.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + SecureValueError object = SecureValueError.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + errors.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + if ((flags & 1) != 0) { + privacy_policy_url = stream.readString(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeInt32(0x1cb5c415); - int count = required_types.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - required_types.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = values.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - values.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = errors.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - errors.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - if ((flags & 1) != 0) { - stream.writeString(privacy_policy_url); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeInt32(0x1cb5c415); + int count = required_types.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + required_types.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = values.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + values.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = errors.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + errors.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + if ((flags & 1) != 0) { + stream.writeString(privacy_policy_url); + } + } + } - public static class TL_help_recentMeUrls extends TLObject { - public static int constructor = 0xe0310d7; + public static class TL_help_recentMeUrls extends TLObject { + public static int constructor = 0xe0310d7; - public ArrayList urls = new ArrayList<>(); - public ArrayList chats = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); + public ArrayList urls = new ArrayList<>(); + public ArrayList chats = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); - public static TL_help_recentMeUrls TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_help_recentMeUrls.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_help_recentMeUrls", constructor)); - } else { - return null; - } - } - TL_help_recentMeUrls result = new TL_help_recentMeUrls(); - result.readParams(stream, exception); - return result; - } + public static TL_help_recentMeUrls TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_help_recentMeUrls.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_help_recentMeUrls", constructor)); + } else { + return null; + } + } + TL_help_recentMeUrls result = new TL_help_recentMeUrls(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - RecentMeUrl object = RecentMeUrl.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - urls.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + RecentMeUrl object = RecentMeUrl.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + urls.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = urls.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - urls.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = urls.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + urls.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } - public static class TL_channelMessagesFilterEmpty extends ChannelMessagesFilter { - public static int constructor = 0x94d42ee7; + public static class TL_channelMessagesFilterEmpty extends ChannelMessagesFilter { + public static int constructor = 0x94d42ee7; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_channelMessagesFilter extends ChannelMessagesFilter { - public static int constructor = 0xcd77d957; + public static class TL_channelMessagesFilter extends ChannelMessagesFilter { + public static int constructor = 0xcd77d957; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - exclude_new_messages = (flags & 2) != 0; - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_messageRange object = TL_messageRange.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - ranges.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + exclude_new_messages = (flags & 2) != 0; + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_messageRange object = TL_messageRange.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + ranges.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = exclude_new_messages ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - stream.writeInt32(0x1cb5c415); - int count = ranges.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - ranges.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = exclude_new_messages ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + stream.writeInt32(0x1cb5c415); + int count = ranges.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + ranges.get(a).serializeToStream(stream); + } + } + } public static class TL_bankCardOpenUrl extends TLObject { public static int constructor = 0xf568028a; @@ -33309,7 +33487,7 @@ public class TLRPC { } } TL_contacts_resolvedPeer result = new TL_contacts_resolvedPeer(); - result.readParams(stream, exception); + result.readParams(stream, exception); return result; } @@ -33486,252 +33664,252 @@ public class TLRPC { } } - public static class TL_inputSingleMedia extends TLObject { - public static int constructor = 0x1cc6e91f; + public static class TL_inputSingleMedia extends TLObject { + public static int constructor = 0x1cc6e91f; - public int flags; - public InputMedia media; - public long random_id; - public String message; - public ArrayList entities = new ArrayList<>(); + public int flags; + public InputMedia media; + public long random_id; + public String message; + public ArrayList entities = new ArrayList<>(); - public static TL_inputSingleMedia TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_inputSingleMedia.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_inputSingleMedia", constructor)); - } else { - return null; - } - } - TL_inputSingleMedia result = new TL_inputSingleMedia(); - result.readParams(stream, exception); - return result; - } + public static TL_inputSingleMedia TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_inputSingleMedia.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_inputSingleMedia", constructor)); + } else { + return null; + } + } + TL_inputSingleMedia result = new TL_inputSingleMedia(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - media = InputMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - random_id = stream.readInt64(exception); - message = stream.readString(exception); - if ((flags & 1) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + media = InputMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + random_id = stream.readInt64(exception); + message = stream.readString(exception); + if ((flags & 1) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - media.serializeToStream(stream); - stream.writeInt64(random_id); - stream.writeString(message); - if ((flags & 1) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + media.serializeToStream(stream); + stream.writeInt64(random_id); + stream.writeString(message); + if ((flags & 1) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + } + } - public static class TL_inputPhoneCall extends TLObject { - public static int constructor = 0x1e36fded; + public static class TL_inputPhoneCall extends TLObject { + public static int constructor = 0x1e36fded; - public long id; - public long access_hash; + public long id; + public long access_hash; - public static TL_inputPhoneCall TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_inputPhoneCall.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_inputPhoneCall", constructor)); - } else { - return null; - } - } - TL_inputPhoneCall result = new TL_inputPhoneCall(); - result.readParams(stream, exception); - return result; - } + public static TL_inputPhoneCall TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_inputPhoneCall.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_inputPhoneCall", constructor)); + } else { + return null; + } + } + TL_inputPhoneCall result = new TL_inputPhoneCall(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + } + } - public static abstract class WebDocument extends TLObject { - public String url; - public long access_hash; - public int size; - public String mime_type; - public ArrayList attributes = new ArrayList<>(); + public static abstract class WebDocument extends TLObject { + public String url; + public long access_hash; + public int size; + public String mime_type; + public ArrayList attributes = new ArrayList<>(); - public static WebDocument TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - WebDocument result = null; - switch (constructor) { - case 0xf9c8bcc6: - result = new TL_webDocumentNoProxy(); - break; - case 0xc61acbd8: - result = new TL_webDocument_layer81(); - break; - case 0x1c570ed1: - result = new TL_webDocument(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in WebDocument", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static WebDocument TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + WebDocument result = null; + switch (constructor) { + case 0xf9c8bcc6: + result = new TL_webDocumentNoProxy(); + break; + case 0xc61acbd8: + result = new TL_webDocument_layer81(); + break; + case 0x1c570ed1: + result = new TL_webDocument(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in WebDocument", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_webDocumentNoProxy extends WebDocument { - public static int constructor = 0xf9c8bcc6; + public static class TL_webDocumentNoProxy extends WebDocument { + public static int constructor = 0xf9c8bcc6; - public void readParams(AbstractSerializedData stream, boolean exception) { - url = stream.readString(exception); - size = stream.readInt32(exception); - mime_type = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - attributes.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + url = stream.readString(exception); + size = stream.readInt32(exception); + mime_type = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + attributes.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(url); - stream.writeInt32(size); - stream.writeString(mime_type); - stream.writeInt32(0x1cb5c415); - int count = attributes.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - attributes.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(url); + stream.writeInt32(size); + stream.writeString(mime_type); + stream.writeInt32(0x1cb5c415); + int count = attributes.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + attributes.get(a).serializeToStream(stream); + } + } + } - public static class TL_webDocument_layer81 extends TL_webDocument { - public static int constructor = 0xc61acbd8; + public static class TL_webDocument_layer81 extends TL_webDocument { + public static int constructor = 0xc61acbd8; - public void readParams(AbstractSerializedData stream, boolean exception) { - url = stream.readString(exception); - access_hash = stream.readInt64(exception); - size = stream.readInt32(exception); - mime_type = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - attributes.add(object); - } - stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + url = stream.readString(exception); + access_hash = stream.readInt64(exception); + size = stream.readInt32(exception); + mime_type = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + attributes.add(object); + } + stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(url); - stream.writeInt64(access_hash); - stream.writeInt32(size); - stream.writeString(mime_type); - stream.writeInt32(0x1cb5c415); - int count = attributes.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - attributes.get(a).serializeToStream(stream); - } - stream.writeInt32(0); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(url); + stream.writeInt64(access_hash); + stream.writeInt32(size); + stream.writeString(mime_type); + stream.writeInt32(0x1cb5c415); + int count = attributes.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + attributes.get(a).serializeToStream(stream); + } + stream.writeInt32(0); + } + } - public static class TL_webDocument extends WebDocument { - public static int constructor = 0x1c570ed1; + public static class TL_webDocument extends WebDocument { + public static int constructor = 0x1c570ed1; - public void readParams(AbstractSerializedData stream, boolean exception) { - url = stream.readString(exception); - access_hash = stream.readInt64(exception); - size = stream.readInt32(exception); - mime_type = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - attributes.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + url = stream.readString(exception); + access_hash = stream.readInt64(exception); + size = stream.readInt32(exception); + mime_type = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + attributes.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(url); - stream.writeInt64(access_hash); - stream.writeInt32(size); - stream.writeString(mime_type); - stream.writeInt32(0x1cb5c415); - int count = attributes.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - attributes.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(url); + stream.writeInt64(access_hash); + stream.writeInt32(size); + stream.writeString(mime_type); + stream.writeInt32(0x1cb5c415); + int count = attributes.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + attributes.get(a).serializeToStream(stream); + } + } + } public static abstract class help_PromoData extends TLObject { @@ -33852,27 +34030,27 @@ public class TLRPC { } } - public static abstract class ChannelParticipant extends TLObject { + public static abstract class ChannelParticipant extends TLObject { public Peer peer; - public long kicked_by; - public int date; - public TL_channelBannedRights_layer92 banned_rights_layer92; - public long inviter_id; - public int flags; - public boolean can_edit; + public long kicked_by; + public int date; + public TL_channelBannedRights_layer92 banned_rights_layer92; + public long inviter_id; + public int flags; + public boolean can_edit; public boolean self; - public boolean left; - public long promoted_by; - public TL_channelAdminRights_layer92 admin_rights_layer92; + public boolean left; + public long promoted_by; + public TL_channelAdminRights_layer92 admin_rights_layer92; public TL_chatAdminRights admin_rights; public TL_chatBannedRights banned_rights; public String rank; public boolean via_invite; public long user_id; - public static ChannelParticipant TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - ChannelParticipant result = null; - switch (constructor) { + public static ChannelParticipant TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + ChannelParticipant result = null; + switch (constructor) { case 0x222c1886: result = new TL_channelParticipantBanned_layer92(); break; @@ -33939,16 +34117,16 @@ public class TLRPC { case 0x8cc5e69a: result = new TL_channelParticipantKicked_layer67(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in ChannelParticipant", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in ChannelParticipant", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } public static class TL_channelParticipant extends ChannelParticipant { public static int constructor = 0xc00c07c0; @@ -34173,75 +34351,75 @@ public class TLRPC { } } - public static class TL_channelParticipantCreator_layer103 extends TL_channelParticipantCreator { - public static int constructor = 0xe3e2e1f9; + public static class TL_channelParticipantCreator_layer103 extends TL_channelParticipantCreator { + public static int constructor = 0xe3e2e1f9; - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { peer = new TLRPC.TL_peerUser(); peer.user_id = stream.readInt32(exception); - } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) peer.user_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) peer.user_id); + } + } - public static class TL_channelParticipant_layer131 extends TL_channelParticipant { - public static int constructor = 0x15ebac1d; + public static class TL_channelParticipant_layer131 extends TL_channelParticipant { + public static int constructor = 0x15ebac1d; - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { peer = new TLRPC.TL_peerUser(); peer.user_id = stream.readInt32(exception); - date = stream.readInt32(exception); - } + date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) peer.user_id); - stream.writeInt32(date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) peer.user_id); + stream.writeInt32(date); + } + } - public static class TL_channelParticipantKicked_layer67 extends ChannelParticipant { - public static int constructor = 0x8cc5e69a; + public static class TL_channelParticipantKicked_layer67 extends ChannelParticipant { + public static int constructor = 0x8cc5e69a; - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { peer = new TLRPC.TL_peerUser(); peer.user_id = stream.readInt32(exception); - kicked_by = stream.readInt32(exception); - date = stream.readInt32(exception); - } + kicked_by = stream.readInt32(exception); + date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) peer.user_id); - stream.writeInt32((int) kicked_by); - stream.writeInt32(date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) peer.user_id); + stream.writeInt32((int) kicked_by); + stream.writeInt32(date); + } + } - public static class TL_channelParticipantSelf_layer131 extends TL_channelParticipantSelf { - public static int constructor = 0xa3289a6d; + public static class TL_channelParticipantSelf_layer131 extends TL_channelParticipantSelf { + public static int constructor = 0xa3289a6d; - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { peer = new TLRPC.TL_peerUser(); peer.user_id = stream.readInt32(exception); - inviter_id = stream.readInt32(exception); - date = stream.readInt32(exception); - } + inviter_id = stream.readInt32(exception); + date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) peer.user_id); - stream.writeInt32((int) inviter_id); - stream.writeInt32(date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) peer.user_id); + stream.writeInt32((int) inviter_id); + stream.writeInt32(date); + } + } public static class TL_channelParticipantAdmin_layer131 extends TL_channelParticipantAdmin { public static int constructor = 0xccbebbaf; @@ -34330,71 +34508,71 @@ public class TLRPC { } } - public static class TL_channelParticipantModerator_layer67 extends TL_channelParticipantAdmin { - public static int constructor = 0x91057fef; + public static class TL_channelParticipantModerator_layer67 extends TL_channelParticipantAdmin { + public static int constructor = 0x91057fef; - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { peer = new TLRPC.TL_peerUser(); peer.user_id = stream.readInt32(exception); - inviter_id = stream.readInt32(exception); - date = stream.readInt32(exception); - } + inviter_id = stream.readInt32(exception); + date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) peer.user_id); - stream.writeInt32((int) inviter_id); - stream.writeInt32(date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) peer.user_id); + stream.writeInt32((int) inviter_id); + stream.writeInt32(date); + } + } - public static class TL_channelParticipantEditor_layer67 extends TL_channelParticipantAdmin { - public static int constructor = 0x98192d61; + public static class TL_channelParticipantEditor_layer67 extends TL_channelParticipantAdmin { + public static int constructor = 0x98192d61; - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { peer = new TLRPC.TL_peerUser(); peer.user_id = stream.readInt32(exception); - inviter_id = stream.readInt32(exception); - date = stream.readInt32(exception); - } + inviter_id = stream.readInt32(exception); + date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) peer.user_id); - stream.writeInt32((int) inviter_id); - stream.writeInt32(date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) peer.user_id); + stream.writeInt32((int) inviter_id); + stream.writeInt32(date); + } + } - public static class TL_channelParticipantAdmin_layer92 extends TL_channelParticipantAdmin { - public static int constructor = 0xa82fa898; + public static class TL_channelParticipantAdmin_layer92 extends TL_channelParticipantAdmin { + public static int constructor = 0xa82fa898; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - can_edit = (flags & 1) != 0; + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + can_edit = (flags & 1) != 0; peer = new TLRPC.TL_peerUser(); peer.user_id = stream.readInt32(exception); - inviter_id = stream.readInt32(exception); - promoted_by = stream.readInt32(exception); - date = stream.readInt32(exception); - admin_rights_layer92 = TL_channelAdminRights_layer92.TLdeserialize(stream, stream.readInt32(exception), exception); + inviter_id = stream.readInt32(exception); + promoted_by = stream.readInt32(exception); + date = stream.readInt32(exception); + admin_rights_layer92 = TL_channelAdminRights_layer92.TLdeserialize(stream, stream.readInt32(exception), exception); admin_rights = Chat.mergeAdminRights(admin_rights_layer92); - } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = can_edit ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeInt32((int) peer.user_id); - stream.writeInt32((int) inviter_id); - stream.writeInt32((int) promoted_by); - stream.writeInt32(date); - admin_rights_layer92.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = can_edit ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeInt32((int) peer.user_id); + stream.writeInt32((int) inviter_id); + stream.writeInt32((int) promoted_by); + stream.writeInt32(date); + admin_rights_layer92.serializeToStream(stream); + } + } public static class TL_channelParticipantAdmin_layer103 extends TL_channelParticipantAdmin { public static int constructor = 0x5daa6e23; @@ -34429,82 +34607,82 @@ public class TLRPC { } } - public static abstract class InputStickeredMedia extends TLObject { + public static abstract class InputStickeredMedia extends TLObject { - public static InputStickeredMedia TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - InputStickeredMedia result = null; - switch (constructor) { - case 0x438865b: - result = new TL_inputStickeredMediaDocument(); - break; - case 0x4a992157: - result = new TL_inputStickeredMediaPhoto(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in InputStickeredMedia", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static InputStickeredMedia TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + InputStickeredMedia result = null; + switch (constructor) { + case 0x438865b: + result = new TL_inputStickeredMediaDocument(); + break; + case 0x4a992157: + result = new TL_inputStickeredMediaPhoto(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in InputStickeredMedia", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_inputStickeredMediaDocument extends InputStickeredMedia { - public static int constructor = 0x438865b; + public static class TL_inputStickeredMediaDocument extends InputStickeredMedia { + public static int constructor = 0x438865b; - public InputDocument id; + public InputDocument id; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = InputDocument.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = InputDocument.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - id.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + id.serializeToStream(stream); + } + } - public static class TL_inputStickeredMediaPhoto extends InputStickeredMedia { - public static int constructor = 0x4a992157; + public static class TL_inputStickeredMediaPhoto extends InputStickeredMedia { + public static int constructor = 0x4a992157; - public InputPhoto id; + public InputPhoto id; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = InputPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = InputPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - id.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + id.serializeToStream(stream); + } + } - public static abstract class channels_ChannelParticipants extends TLObject { - public int count; - public ArrayList participants = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); + public static abstract class channels_ChannelParticipants extends TLObject { + public int count; + public ArrayList participants = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); - public static channels_ChannelParticipants TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - channels_ChannelParticipants result = null; - switch (constructor) { + public static channels_ChannelParticipants TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + channels_ChannelParticipants result = null; + switch (constructor) { case 0x9ab0feaf: result = new TL_channels_channelParticipants(); break; - case 0xf0173fe9: - result = new TL_channels_channelParticipantsNotModified(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in channels_ChannelParticipants", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0xf0173fe9: + result = new TL_channels_channelParticipantsNotModified(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in channels_ChannelParticipants", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } public static class TL_channels_channelParticipants extends channels_ChannelParticipants { public static int constructor = 0x9ab0feaf; @@ -34587,14 +34765,14 @@ public class TLRPC { } } - public static class TL_channels_channelParticipantsNotModified extends channels_ChannelParticipants { - public static int constructor = 0xf0173fe9; + public static class TL_channels_channelParticipantsNotModified extends channels_ChannelParticipants { + public static int constructor = 0xf0173fe9; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static abstract class WallPaperSettings extends TLObject { @@ -34757,130 +34935,130 @@ public class TLRPC { } } - public static class TL_contacts_found extends TLObject { - public static int constructor = 0xb3134d9d; + public static class TL_contacts_found extends TLObject { + public static int constructor = 0xb3134d9d; - public ArrayList my_results = new ArrayList<>(); - public ArrayList results = new ArrayList<>(); - public ArrayList chats = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); + public ArrayList my_results = new ArrayList<>(); + public ArrayList results = new ArrayList<>(); + public ArrayList chats = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); - public static TL_contacts_found TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_contacts_found.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_contacts_found", constructor)); - } else { - return null; - } - } - TL_contacts_found result = new TL_contacts_found(); - result.readParams(stream, exception); - return result; - } + public static TL_contacts_found TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_contacts_found.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_contacts_found", constructor)); + } else { + return null; + } + } + TL_contacts_found result = new TL_contacts_found(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Peer object = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - my_results.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Peer object = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - results.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Peer object = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + my_results.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Peer object = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + results.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = my_results.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - my_results.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = results.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - results.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = my_results.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + my_results.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = results.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + results.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } - public static abstract class ChatParticipants extends TLObject { - public int flags; - public long chat_id; - public ChatParticipant self_participant; - public ArrayList participants = new ArrayList<>(); - public int version; - public long admin_id; + public static abstract class ChatParticipants extends TLObject { + public int flags; + public long chat_id; + public ChatParticipant self_participant; + public ArrayList participants = new ArrayList<>(); + public int version; + public long admin_id; - public static ChatParticipants TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - ChatParticipants result = null; - switch (constructor) { + public static ChatParticipants TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + ChatParticipants result = null; + switch (constructor) { case 0xfc900c2b: result = new TL_chatParticipantsForbidden_layer131(); break; @@ -34899,16 +35077,16 @@ public class TLRPC { case 0xfd2bb8a: result = new TL_chatParticipantsForbidden_old(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in ChatParticipants", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in ChatParticipants", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } public static class TL_chatParticipantsForbidden_layer131 extends TL_chatParticipantsForbidden { public static int constructor = 0xfc900c2b; @@ -35081,557 +35259,557 @@ public class TLRPC { } } - public static class TL_game extends TLObject { - public static int constructor = 0xbdf9653b; - - public int flags; - public long id; - public long access_hash; - public String short_name; - public String title; - public String description; - public Photo photo; - public Document document; - - public static TL_game TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_game.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_game", constructor)); - } else { - return null; - } - } - TL_game result = new TL_game(); - result.readParams(stream, exception); - return result; - } - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - short_name = stream.readString(exception); - title = stream.readString(exception); - description = stream.readString(exception); - photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 1) != 0) { - document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeString(short_name); - stream.writeString(title); - stream.writeString(description); - photo.serializeToStream(stream); - if ((flags & 1) != 0) { - document.serializeToStream(stream); - } - } - } - - public static abstract class DecryptedMessageMedia extends TLObject { - public int duration; - public String mime_type; - public int size; - public byte[] key; - public byte[] iv; - public double lat; - public double _long; - public String phone_number; - public String first_name; - public String last_name; - public long user_id; - public int thumb_w; - public int thumb_h; - public ArrayList attributes = new ArrayList<>(); - public String caption; - public String url; - public int w; - public int h; - public String file_name; - public String title; - public String address; - public String provider; - public String venue_id; - public long id; - public long access_hash; - public int date; - public int dc_id; - - public static DecryptedMessageMedia TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - DecryptedMessageMedia result = null; - switch (constructor) { - case 0x57e0a9cb: - result = new TL_decryptedMessageMediaAudio(); - break; - case 0x35480a59: - result = new TL_decryptedMessageMediaGeoPoint(); - break; - case 0x588a0a97: - result = new TL_decryptedMessageMediaContact(); - break; - case 0x89f5c4a: - result = new TL_decryptedMessageMediaEmpty(); - break; - case 0x7afe8ae2: - result = new TL_decryptedMessageMediaDocument(); - break; - case 0xe50511d8: - result = new TL_decryptedMessageMediaWebPage(); - break; - case 0xf1fa8d78: - result = new TL_decryptedMessageMediaPhoto(); - break; - case 0x970c8c0e: - result = new TL_decryptedMessageMediaVideo(); - break; - case 0xb095434b: - result = new TL_decryptedMessageMediaDocument_layer8(); - break; - case 0x4cee6ef3: - result = new TL_decryptedMessageMediaVideo_layer8(); - break; - case 0x8a0df56f: - result = new TL_decryptedMessageMediaVenue(); - break; - case 0xfa95b0dd: - result = new TL_decryptedMessageMediaExternalDocument(); - break; - case 0x524a415d: - result = new TL_decryptedMessageMediaVideo_layer17(); - break; - case 0x6080758f: - result = new TL_decryptedMessageMediaAudio_layer8(); - break; - case 0x32798a8c: - result = new TL_decryptedMessageMediaPhoto_layer8(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in DecryptedMessageMedia", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } - - public static class TL_decryptedMessageMediaAudio extends DecryptedMessageMedia { - public static int constructor = 0x57e0a9cb; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - duration = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(duration); - stream.writeString(mime_type); - stream.writeInt32(size); - stream.writeByteArray(key); - stream.writeByteArray(iv); - } - } - - public static class TL_decryptedMessageMediaGeoPoint extends DecryptedMessageMedia { - public static int constructor = 0x35480a59; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - lat = stream.readDouble(exception); - _long = stream.readDouble(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeDouble(lat); - stream.writeDouble(_long); - } - } - - public static class TL_decryptedMessageMediaContact extends DecryptedMessageMedia { - public static int constructor = 0x588a0a97; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - phone_number = stream.readString(exception); - first_name = stream.readString(exception); - last_name = stream.readString(exception); - user_id = stream.readInt32(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(phone_number); - stream.writeString(first_name); - stream.writeString(last_name); - stream.writeInt32((int) user_id); - } - } - - public static class TL_decryptedMessageMediaEmpty extends DecryptedMessageMedia { - public static int constructor = 0x89f5c4a; - - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } - - public static class TL_decryptedMessageMediaDocument extends DecryptedMessageMedia { - public static int constructor = 0x7afe8ae2; - - public byte[] thumb; - - public void readParams(AbstractSerializedData stream, boolean exception) { - thumb = stream.readByteArray(exception); - thumb_w = stream.readInt32(exception); - thumb_h = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - attributes.add(object); - } - caption = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(thumb); - stream.writeInt32(thumb_w); - stream.writeInt32(thumb_h); - stream.writeString(mime_type); - stream.writeInt32(size); - stream.writeByteArray(key); - stream.writeByteArray(iv); - stream.writeInt32(0x1cb5c415); - int count = attributes.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - attributes.get(a).serializeToStream(stream); - } - stream.writeString(caption); - } - } - - public static class TL_decryptedMessageMediaWebPage extends DecryptedMessageMedia { - public static int constructor = 0xe50511d8; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - url = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(url); - } - } - - public static class TL_decryptedMessageMediaPhoto extends DecryptedMessageMedia { - public static int constructor = 0xf1fa8d78; - - public byte[] thumb; - - public void readParams(AbstractSerializedData stream, boolean exception) { - thumb = stream.readByteArray(exception); - thumb_w = stream.readInt32(exception); - thumb_h = stream.readInt32(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - size = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - caption = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(thumb); - stream.writeInt32(thumb_w); - stream.writeInt32(thumb_h); - stream.writeInt32(w); - stream.writeInt32(h); - stream.writeInt32(size); - stream.writeByteArray(key); - stream.writeByteArray(iv); - stream.writeString(caption); - } - } - - public static class TL_decryptedMessageMediaVideo extends DecryptedMessageMedia { - public static int constructor = 0x970c8c0e; - - public byte[] thumb; - - public void readParams(AbstractSerializedData stream, boolean exception) { - thumb = stream.readByteArray(exception); - thumb_w = stream.readInt32(exception); - thumb_h = stream.readInt32(exception); - duration = stream.readInt32(exception); - mime_type = stream.readString(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - size = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - caption = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(thumb); - stream.writeInt32(thumb_w); - stream.writeInt32(thumb_h); - stream.writeInt32(duration); - stream.writeString(mime_type); - stream.writeInt32(w); - stream.writeInt32(h); - stream.writeInt32(size); - stream.writeByteArray(key); - stream.writeByteArray(iv); - stream.writeString(caption); - } - } - - public static class TL_decryptedMessageMediaDocument_layer8 extends TL_decryptedMessageMediaDocument { - public static int constructor = 0xb095434b; - - public byte[] thumb; - - public void readParams(AbstractSerializedData stream, boolean exception) { - thumb = stream.readByteArray(exception); - thumb_w = stream.readInt32(exception); - thumb_h = stream.readInt32(exception); - file_name = stream.readString(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(thumb); - stream.writeInt32(thumb_w); - stream.writeInt32(thumb_h); - stream.writeString(file_name); - stream.writeString(mime_type); - stream.writeInt32(size); - stream.writeByteArray(key); - stream.writeByteArray(iv); - } - } - - public static class TL_decryptedMessageMediaVideo_layer8 extends TL_decryptedMessageMediaVideo { - public static int constructor = 0x4cee6ef3; - - public byte[] thumb; - - public void readParams(AbstractSerializedData stream, boolean exception) { - thumb = stream.readByteArray(exception); - thumb_w = stream.readInt32(exception); - thumb_h = stream.readInt32(exception); - duration = stream.readInt32(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - size = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(thumb); - stream.writeInt32(thumb_w); - stream.writeInt32(thumb_h); - stream.writeInt32(duration); - stream.writeInt32(w); - stream.writeInt32(h); - stream.writeInt32(size); - stream.writeByteArray(key); - stream.writeByteArray(iv); - } - } - - public static class TL_decryptedMessageMediaVenue extends DecryptedMessageMedia { - public static int constructor = 0x8a0df56f; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - lat = stream.readDouble(exception); - _long = stream.readDouble(exception); - title = stream.readString(exception); - address = stream.readString(exception); - provider = stream.readString(exception); - venue_id = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeDouble(lat); - stream.writeDouble(_long); - stream.writeString(title); - stream.writeString(address); - stream.writeString(provider); - stream.writeString(venue_id); - } - } - - public static class TL_decryptedMessageMediaExternalDocument extends DecryptedMessageMedia { - public static int constructor = 0xfa95b0dd; - - public PhotoSize thumb; - - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - date = stream.readInt32(exception); - mime_type = stream.readString(exception); - size = stream.readInt32(exception); - thumb = PhotoSize.TLdeserialize(0, id, 0, stream, stream.readInt32(exception), exception); - dc_id = stream.readInt32(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - attributes.add(object); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeInt32(date); - stream.writeString(mime_type); - stream.writeInt32(size); - thumb.serializeToStream(stream); - stream.writeInt32(dc_id); - stream.writeInt32(0x1cb5c415); - int count = attributes.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - attributes.get(a).serializeToStream(stream); - } - } - } - - public static class TL_decryptedMessageMediaVideo_layer17 extends TL_decryptedMessageMediaVideo { - public static int constructor = 0x524a415d; - - public byte[] thumb; - - public void readParams(AbstractSerializedData stream, boolean exception) { - thumb = stream.readByteArray(exception); - thumb_w = stream.readInt32(exception); - thumb_h = stream.readInt32(exception); - duration = stream.readInt32(exception); - mime_type = stream.readString(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - size = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(thumb); - stream.writeInt32(thumb_w); - stream.writeInt32(thumb_h); - stream.writeInt32(duration); - stream.writeString(mime_type); - stream.writeInt32(w); - stream.writeInt32(h); - stream.writeInt32(size); - stream.writeByteArray(key); - stream.writeByteArray(iv); - } - } - - public static class TL_decryptedMessageMediaAudio_layer8 extends TL_decryptedMessageMediaAudio { - public static int constructor = 0x6080758f; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - duration = stream.readInt32(exception); - size = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(duration); - stream.writeInt32(size); - stream.writeByteArray(key); - stream.writeByteArray(iv); - } - } - - public static class TL_decryptedMessageMediaPhoto_layer8 extends TL_decryptedMessageMediaPhoto { - public static int constructor = 0x32798a8c; - - public byte[] thumb; - - public void readParams(AbstractSerializedData stream, boolean exception) { - thumb = stream.readByteArray(exception); - thumb_w = stream.readInt32(exception); - thumb_h = stream.readInt32(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - size = stream.readInt32(exception); - key = stream.readByteArray(exception); - iv = stream.readByteArray(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(thumb); - stream.writeInt32(thumb_w); - stream.writeInt32(thumb_h); - stream.writeInt32(w); - stream.writeInt32(h); - stream.writeInt32(size); - stream.writeByteArray(key); - stream.writeByteArray(iv); - } - } + public static class TL_game extends TLObject { + public static int constructor = 0xbdf9653b; + + public int flags; + public long id; + public long access_hash; + public String short_name; + public String title; + public String description; + public Photo photo; + public Document document; + + public static TL_game TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_game.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_game", constructor)); + } else { + return null; + } + } + TL_game result = new TL_game(); + result.readParams(stream, exception); + return result; + } + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + short_name = stream.readString(exception); + title = stream.readString(exception); + description = stream.readString(exception); + photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 1) != 0) { + document = Document.TLdeserialize(stream, stream.readInt32(exception), exception); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeString(short_name); + stream.writeString(title); + stream.writeString(description); + photo.serializeToStream(stream); + if ((flags & 1) != 0) { + document.serializeToStream(stream); + } + } + } + + public static abstract class DecryptedMessageMedia extends TLObject { + public int duration; + public String mime_type; + public int size; + public byte[] key; + public byte[] iv; + public double lat; + public double _long; + public String phone_number; + public String first_name; + public String last_name; + public long user_id; + public int thumb_w; + public int thumb_h; + public ArrayList attributes = new ArrayList<>(); + public String caption; + public String url; + public int w; + public int h; + public String file_name; + public String title; + public String address; + public String provider; + public String venue_id; + public long id; + public long access_hash; + public int date; + public int dc_id; + + public static DecryptedMessageMedia TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + DecryptedMessageMedia result = null; + switch (constructor) { + case 0x57e0a9cb: + result = new TL_decryptedMessageMediaAudio(); + break; + case 0x35480a59: + result = new TL_decryptedMessageMediaGeoPoint(); + break; + case 0x588a0a97: + result = new TL_decryptedMessageMediaContact(); + break; + case 0x89f5c4a: + result = new TL_decryptedMessageMediaEmpty(); + break; + case 0x7afe8ae2: + result = new TL_decryptedMessageMediaDocument(); + break; + case 0xe50511d8: + result = new TL_decryptedMessageMediaWebPage(); + break; + case 0xf1fa8d78: + result = new TL_decryptedMessageMediaPhoto(); + break; + case 0x970c8c0e: + result = new TL_decryptedMessageMediaVideo(); + break; + case 0xb095434b: + result = new TL_decryptedMessageMediaDocument_layer8(); + break; + case 0x4cee6ef3: + result = new TL_decryptedMessageMediaVideo_layer8(); + break; + case 0x8a0df56f: + result = new TL_decryptedMessageMediaVenue(); + break; + case 0xfa95b0dd: + result = new TL_decryptedMessageMediaExternalDocument(); + break; + case 0x524a415d: + result = new TL_decryptedMessageMediaVideo_layer17(); + break; + case 0x6080758f: + result = new TL_decryptedMessageMediaAudio_layer8(); + break; + case 0x32798a8c: + result = new TL_decryptedMessageMediaPhoto_layer8(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in DecryptedMessageMedia", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } + + public static class TL_decryptedMessageMediaAudio extends DecryptedMessageMedia { + public static int constructor = 0x57e0a9cb; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + duration = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(duration); + stream.writeString(mime_type); + stream.writeInt32(size); + stream.writeByteArray(key); + stream.writeByteArray(iv); + } + } + + public static class TL_decryptedMessageMediaGeoPoint extends DecryptedMessageMedia { + public static int constructor = 0x35480a59; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + lat = stream.readDouble(exception); + _long = stream.readDouble(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeDouble(lat); + stream.writeDouble(_long); + } + } + + public static class TL_decryptedMessageMediaContact extends DecryptedMessageMedia { + public static int constructor = 0x588a0a97; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + phone_number = stream.readString(exception); + first_name = stream.readString(exception); + last_name = stream.readString(exception); + user_id = stream.readInt32(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(phone_number); + stream.writeString(first_name); + stream.writeString(last_name); + stream.writeInt32((int) user_id); + } + } + + public static class TL_decryptedMessageMediaEmpty extends DecryptedMessageMedia { + public static int constructor = 0x89f5c4a; + + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } + + public static class TL_decryptedMessageMediaDocument extends DecryptedMessageMedia { + public static int constructor = 0x7afe8ae2; + + public byte[] thumb; + + public void readParams(AbstractSerializedData stream, boolean exception) { + thumb = stream.readByteArray(exception); + thumb_w = stream.readInt32(exception); + thumb_h = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + attributes.add(object); + } + caption = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(thumb); + stream.writeInt32(thumb_w); + stream.writeInt32(thumb_h); + stream.writeString(mime_type); + stream.writeInt32(size); + stream.writeByteArray(key); + stream.writeByteArray(iv); + stream.writeInt32(0x1cb5c415); + int count = attributes.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + attributes.get(a).serializeToStream(stream); + } + stream.writeString(caption); + } + } + + public static class TL_decryptedMessageMediaWebPage extends DecryptedMessageMedia { + public static int constructor = 0xe50511d8; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + url = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(url); + } + } + + public static class TL_decryptedMessageMediaPhoto extends DecryptedMessageMedia { + public static int constructor = 0xf1fa8d78; + + public byte[] thumb; + + public void readParams(AbstractSerializedData stream, boolean exception) { + thumb = stream.readByteArray(exception); + thumb_w = stream.readInt32(exception); + thumb_h = stream.readInt32(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + size = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + caption = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(thumb); + stream.writeInt32(thumb_w); + stream.writeInt32(thumb_h); + stream.writeInt32(w); + stream.writeInt32(h); + stream.writeInt32(size); + stream.writeByteArray(key); + stream.writeByteArray(iv); + stream.writeString(caption); + } + } + + public static class TL_decryptedMessageMediaVideo extends DecryptedMessageMedia { + public static int constructor = 0x970c8c0e; + + public byte[] thumb; + + public void readParams(AbstractSerializedData stream, boolean exception) { + thumb = stream.readByteArray(exception); + thumb_w = stream.readInt32(exception); + thumb_h = stream.readInt32(exception); + duration = stream.readInt32(exception); + mime_type = stream.readString(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + size = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + caption = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(thumb); + stream.writeInt32(thumb_w); + stream.writeInt32(thumb_h); + stream.writeInt32(duration); + stream.writeString(mime_type); + stream.writeInt32(w); + stream.writeInt32(h); + stream.writeInt32(size); + stream.writeByteArray(key); + stream.writeByteArray(iv); + stream.writeString(caption); + } + } + + public static class TL_decryptedMessageMediaDocument_layer8 extends TL_decryptedMessageMediaDocument { + public static int constructor = 0xb095434b; + + public byte[] thumb; + + public void readParams(AbstractSerializedData stream, boolean exception) { + thumb = stream.readByteArray(exception); + thumb_w = stream.readInt32(exception); + thumb_h = stream.readInt32(exception); + file_name = stream.readString(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(thumb); + stream.writeInt32(thumb_w); + stream.writeInt32(thumb_h); + stream.writeString(file_name); + stream.writeString(mime_type); + stream.writeInt32(size); + stream.writeByteArray(key); + stream.writeByteArray(iv); + } + } + + public static class TL_decryptedMessageMediaVideo_layer8 extends TL_decryptedMessageMediaVideo { + public static int constructor = 0x4cee6ef3; + + public byte[] thumb; + + public void readParams(AbstractSerializedData stream, boolean exception) { + thumb = stream.readByteArray(exception); + thumb_w = stream.readInt32(exception); + thumb_h = stream.readInt32(exception); + duration = stream.readInt32(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + size = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(thumb); + stream.writeInt32(thumb_w); + stream.writeInt32(thumb_h); + stream.writeInt32(duration); + stream.writeInt32(w); + stream.writeInt32(h); + stream.writeInt32(size); + stream.writeByteArray(key); + stream.writeByteArray(iv); + } + } + + public static class TL_decryptedMessageMediaVenue extends DecryptedMessageMedia { + public static int constructor = 0x8a0df56f; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + lat = stream.readDouble(exception); + _long = stream.readDouble(exception); + title = stream.readString(exception); + address = stream.readString(exception); + provider = stream.readString(exception); + venue_id = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeDouble(lat); + stream.writeDouble(_long); + stream.writeString(title); + stream.writeString(address); + stream.writeString(provider); + stream.writeString(venue_id); + } + } + + public static class TL_decryptedMessageMediaExternalDocument extends DecryptedMessageMedia { + public static int constructor = 0xfa95b0dd; + + public PhotoSize thumb; + + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + date = stream.readInt32(exception); + mime_type = stream.readString(exception); + size = stream.readInt32(exception); + thumb = PhotoSize.TLdeserialize(0, id, 0, stream, stream.readInt32(exception), exception); + dc_id = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + DocumentAttribute object = DocumentAttribute.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + attributes.add(object); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeInt32(date); + stream.writeString(mime_type); + stream.writeInt32(size); + thumb.serializeToStream(stream); + stream.writeInt32(dc_id); + stream.writeInt32(0x1cb5c415); + int count = attributes.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + attributes.get(a).serializeToStream(stream); + } + } + } + + public static class TL_decryptedMessageMediaVideo_layer17 extends TL_decryptedMessageMediaVideo { + public static int constructor = 0x524a415d; + + public byte[] thumb; + + public void readParams(AbstractSerializedData stream, boolean exception) { + thumb = stream.readByteArray(exception); + thumb_w = stream.readInt32(exception); + thumb_h = stream.readInt32(exception); + duration = stream.readInt32(exception); + mime_type = stream.readString(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + size = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(thumb); + stream.writeInt32(thumb_w); + stream.writeInt32(thumb_h); + stream.writeInt32(duration); + stream.writeString(mime_type); + stream.writeInt32(w); + stream.writeInt32(h); + stream.writeInt32(size); + stream.writeByteArray(key); + stream.writeByteArray(iv); + } + } + + public static class TL_decryptedMessageMediaAudio_layer8 extends TL_decryptedMessageMediaAudio { + public static int constructor = 0x6080758f; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + duration = stream.readInt32(exception); + size = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(duration); + stream.writeInt32(size); + stream.writeByteArray(key); + stream.writeByteArray(iv); + } + } + + public static class TL_decryptedMessageMediaPhoto_layer8 extends TL_decryptedMessageMediaPhoto { + public static int constructor = 0x32798a8c; + + public byte[] thumb; + + public void readParams(AbstractSerializedData stream, boolean exception) { + thumb = stream.readByteArray(exception); + thumb_w = stream.readInt32(exception); + thumb_h = stream.readInt32(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + size = stream.readInt32(exception); + key = stream.readByteArray(exception); + iv = stream.readByteArray(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(thumb); + stream.writeInt32(thumb_w); + stream.writeInt32(thumb_h); + stream.writeInt32(w); + stream.writeInt32(h); + stream.writeInt32(size); + stream.writeByteArray(key); + stream.writeByteArray(iv); + } + } public static abstract class EmojiKeyword extends TLObject { @@ -35755,15 +35933,15 @@ public class TLRPC { } } - public static abstract class ChatParticipant extends TLObject { + public static abstract class ChatParticipant extends TLObject { - public long user_id; - public long inviter_id; - public int date; + public long user_id; + public long inviter_id; + public int date; - public static ChatParticipant TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - ChatParticipant result = null; - switch (constructor) { + public static ChatParticipant TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + ChatParticipant result = null; + switch (constructor) { case 0xe2d6e436: result = new TL_chatParticipantAdmin_layer131(); break; @@ -35782,16 +35960,16 @@ public class TLRPC { case 0xe46bcee4: result = new TL_chatParticipantCreator(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in ChatParticipant", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in ChatParticipant", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } public static class TL_chatParticipantAdmin_layer131 extends TL_chatParticipantAdmin { public static int constructor = 0xe2d6e436; @@ -35945,115 +36123,115 @@ public class TLRPC { } } - public static abstract class InputSecureFile extends TLObject { + public static abstract class InputSecureFile extends TLObject { - public static InputSecureFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - InputSecureFile result = null; - switch (constructor) { - case 0x3334b0f0: - result = new TL_inputSecureFileUploaded(); - break; - case 0x5367e5be: - result = new TL_inputSecureFile(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in InputSecureFile", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static InputSecureFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + InputSecureFile result = null; + switch (constructor) { + case 0x3334b0f0: + result = new TL_inputSecureFileUploaded(); + break; + case 0x5367e5be: + result = new TL_inputSecureFile(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in InputSecureFile", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_inputSecureFileUploaded extends InputSecureFile { - public static int constructor = 0x3334b0f0; + public static class TL_inputSecureFileUploaded extends InputSecureFile { + public static int constructor = 0x3334b0f0; - public long id; - public int parts; - public String md5_checksum; - public byte[] file_hash; - public byte[] secret; + public long id; + public int parts; + public String md5_checksum; + public byte[] file_hash; + public byte[] secret; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - parts = stream.readInt32(exception); - md5_checksum = stream.readString(exception); - file_hash = stream.readByteArray(exception); - secret = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + parts = stream.readInt32(exception); + md5_checksum = stream.readString(exception); + file_hash = stream.readByteArray(exception); + secret = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt32(parts); - stream.writeString(md5_checksum); - stream.writeByteArray(file_hash); - stream.writeByteArray(secret); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt32(parts); + stream.writeString(md5_checksum); + stream.writeByteArray(file_hash); + stream.writeByteArray(secret); + } + } - public static class TL_inputSecureFile extends InputSecureFile { - public static int constructor = 0x5367e5be; + public static class TL_inputSecureFile extends InputSecureFile { + public static int constructor = 0x5367e5be; - public long id; - public long access_hash; + public long id; + public long access_hash; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + } + } - public static class TL_postAddress extends TLObject { - public static int constructor = 0x1e8caaeb; + public static class TL_postAddress extends TLObject { + public static int constructor = 0x1e8caaeb; - public String street_line1; - public String street_line2; - public String city; - public String state; - public String country_iso2; - public String post_code; + public String street_line1; + public String street_line2; + public String city; + public String state; + public String country_iso2; + public String post_code; - public static TL_postAddress TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_postAddress.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_postAddress", constructor)); - } else { - return null; - } - } - TL_postAddress result = new TL_postAddress(); - result.readParams(stream, exception); - return result; - } + public static TL_postAddress TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_postAddress.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_postAddress", constructor)); + } else { + return null; + } + } + TL_postAddress result = new TL_postAddress(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - street_line1 = stream.readString(exception); - street_line2 = stream.readString(exception); - city = stream.readString(exception); - state = stream.readString(exception); - country_iso2 = stream.readString(exception); - post_code = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + street_line1 = stream.readString(exception); + street_line2 = stream.readString(exception); + city = stream.readString(exception); + state = stream.readString(exception); + country_iso2 = stream.readString(exception); + post_code = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(street_line1); - stream.writeString(street_line2); - stream.writeString(city); - stream.writeString(state); - stream.writeString(country_iso2); - stream.writeString(post_code); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(street_line1); + stream.writeString(street_line2); + stream.writeString(city); + stream.writeString(state); + stream.writeString(country_iso2); + stream.writeString(post_code); + } + } public static abstract class ChannelAdminLogEventAction extends TLObject { @@ -36737,75 +36915,75 @@ public class TLRPC { } } - public static abstract class InputWebFileLocation extends TLObject { + public static abstract class InputWebFileLocation extends TLObject { - public static InputWebFileLocation TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - InputWebFileLocation result = null; - switch (constructor) { - case 0x9f2221c9: - result = new TL_inputWebFileGeoPointLocation(); - break; - case 0xc239d686: - result = new TL_inputWebFileLocation(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in InputWebFileLocation", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static InputWebFileLocation TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + InputWebFileLocation result = null; + switch (constructor) { + case 0x9f2221c9: + result = new TL_inputWebFileGeoPointLocation(); + break; + case 0xc239d686: + result = new TL_inputWebFileLocation(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in InputWebFileLocation", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_inputWebFileGeoPointLocation extends InputWebFileLocation { - public static int constructor = 0x9f2221c9; + public static class TL_inputWebFileGeoPointLocation extends InputWebFileLocation { + public static int constructor = 0x9f2221c9; - public InputGeoPoint geo_point; - public long access_hash; - public int w; - public int h; - public int zoom; - public int scale; + public InputGeoPoint geo_point; + public long access_hash; + public int w; + public int h; + public int zoom; + public int scale; - public void readParams(AbstractSerializedData stream, boolean exception) { - geo_point = InputGeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); - access_hash = stream.readInt64(exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - zoom = stream.readInt32(exception); - scale = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + geo_point = InputGeoPoint.TLdeserialize(stream, stream.readInt32(exception), exception); + access_hash = stream.readInt64(exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + zoom = stream.readInt32(exception); + scale = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - geo_point.serializeToStream(stream); - stream.writeInt64(access_hash); - stream.writeInt32(w); - stream.writeInt32(h); - stream.writeInt32(zoom); - stream.writeInt32(scale); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + geo_point.serializeToStream(stream); + stream.writeInt64(access_hash); + stream.writeInt32(w); + stream.writeInt32(h); + stream.writeInt32(zoom); + stream.writeInt32(scale); + } + } - public static class TL_inputWebFileLocation extends InputWebFileLocation { - public static int constructor = 0xc239d686; + public static class TL_inputWebFileLocation extends InputWebFileLocation { + public static int constructor = 0xc239d686; - public String url; - public long access_hash; + public String url; + public long access_hash; - public void readParams(AbstractSerializedData stream, boolean exception) { - url = stream.readString(exception); - access_hash = stream.readInt64(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + url = stream.readString(exception); + access_hash = stream.readInt64(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(url); - stream.writeInt64(access_hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(url); + stream.writeInt64(access_hash); + } + } public static abstract class PeerLocated extends TLObject { @@ -36948,36 +37126,36 @@ public class TLRPC { } } - public static class TL_account_sentEmailCode extends TLObject { - public static int constructor = 0x811f854f; + public static class TL_account_sentEmailCode extends TLObject { + public static int constructor = 0x811f854f; - public String email_pattern; - public int length; + public String email_pattern; + public int length; - public static TL_account_sentEmailCode TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_account_sentEmailCode.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_account_sentEmailCode", constructor)); - } else { - return null; - } - } - TL_account_sentEmailCode result = new TL_account_sentEmailCode(); - result.readParams(stream, exception); - return result; - } + public static TL_account_sentEmailCode TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_account_sentEmailCode.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_account_sentEmailCode", constructor)); + } else { + return null; + } + } + TL_account_sentEmailCode result = new TL_account_sentEmailCode(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - email_pattern = stream.readString(exception); - length = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + email_pattern = stream.readString(exception); + length = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(email_pattern); - stream.writeInt32(length); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(email_pattern); + stream.writeInt32(length); + } + } public static class TL_messages_inactiveChats extends TLObject { public static int constructor = 0xa927fec5; @@ -37066,88 +37244,88 @@ public class TLRPC { } } - public static class TL_channelAdminRights_layer92 extends TLObject { - public static int constructor = 0x5d7ceba5; + public static class TL_channelAdminRights_layer92 extends TLObject { + public static int constructor = 0x5d7ceba5; - public int flags; - public boolean change_info; - public boolean post_messages; - public boolean edit_messages; - public boolean delete_messages; - public boolean ban_users; - public boolean invite_users; - public boolean pin_messages; - public boolean add_admins; - public boolean manage_call; + public int flags; + public boolean change_info; + public boolean post_messages; + public boolean edit_messages; + public boolean delete_messages; + public boolean ban_users; + public boolean invite_users; + public boolean pin_messages; + public boolean add_admins; + public boolean manage_call; - public static TL_channelAdminRights_layer92 TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_channelAdminRights_layer92.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_channelAdminRights_layer92", constructor)); - } else { - return null; - } - } - TL_channelAdminRights_layer92 result = new TL_channelAdminRights_layer92(); - result.readParams(stream, exception); - return result; - } + public static TL_channelAdminRights_layer92 TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_channelAdminRights_layer92.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_channelAdminRights_layer92", constructor)); + } else { + return null; + } + } + TL_channelAdminRights_layer92 result = new TL_channelAdminRights_layer92(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - change_info = (flags & 1) != 0; - post_messages = (flags & 2) != 0; - edit_messages = (flags & 4) != 0; - delete_messages = (flags & 8) != 0; - ban_users = (flags & 16) != 0; - invite_users = (flags & 32) != 0; - pin_messages = (flags & 128) != 0; - add_admins = (flags & 512) != 0; - manage_call = (flags & 1024) != 0; - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + change_info = (flags & 1) != 0; + post_messages = (flags & 2) != 0; + edit_messages = (flags & 4) != 0; + delete_messages = (flags & 8) != 0; + ban_users = (flags & 16) != 0; + invite_users = (flags & 32) != 0; + pin_messages = (flags & 128) != 0; + add_admins = (flags & 512) != 0; + manage_call = (flags & 1024) != 0; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = change_info ? (flags | 1) : (flags &~ 1); - flags = post_messages ? (flags | 2) : (flags &~ 2); - flags = edit_messages ? (flags | 4) : (flags &~ 4); - flags = delete_messages ? (flags | 8) : (flags &~ 8); - flags = ban_users ? (flags | 16) : (flags &~ 16); - flags = invite_users ? (flags | 32) : (flags &~ 32); - flags = pin_messages ? (flags | 128) : (flags &~ 128); - flags = add_admins ? (flags | 512) : (flags &~ 512); - flags = manage_call ? (flags | 1024) : (flags &~ 1024); - stream.writeInt32(flags); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = change_info ? (flags | 1) : (flags &~ 1); + flags = post_messages ? (flags | 2) : (flags &~ 2); + flags = edit_messages ? (flags | 4) : (flags &~ 4); + flags = delete_messages ? (flags | 8) : (flags &~ 8); + flags = ban_users ? (flags | 16) : (flags &~ 16); + flags = invite_users ? (flags | 32) : (flags &~ 32); + flags = pin_messages ? (flags | 128) : (flags &~ 128); + flags = add_admins ? (flags | 512) : (flags &~ 512); + flags = manage_call ? (flags | 1024) : (flags &~ 1024); + stream.writeInt32(flags); + } + } - public static abstract class Chat extends TLObject { - public long id; - public String title; - public int date; - public int flags; - public boolean creator; - public boolean kicked; - public boolean deactivated; - public boolean left; + public static abstract class Chat extends TLObject { + public long id; + public String title; + public int date; + public int flags; + public boolean creator; + public boolean kicked; + public boolean deactivated; + public boolean left; public boolean has_geo; public boolean slowmode_enabled; - public ChatPhoto photo; - public int participants_count; - public int version; - public boolean broadcast; - public boolean megagroup; - public long access_hash; - public int until_date; - public boolean moderator; - public boolean verified; - public boolean restricted; - public boolean signatures; - public String username; - public boolean min; + public ChatPhoto photo; + public int participants_count; + public int version; + public boolean broadcast; + public boolean megagroup; + public long access_hash; + public int until_date; + public boolean moderator; + public boolean verified; + public boolean restricted; + public boolean signatures; + public String username; + public boolean min; public boolean scam; public boolean has_link; - public boolean explicit_content; + public boolean explicit_content; public boolean call_active; public boolean call_not_empty; public boolean fake; @@ -37159,7 +37337,7 @@ public class TLRPC { public TL_chatAdminRights admin_rights; public TL_chatBannedRights banned_rights; public TL_chatBannedRights default_banned_rights; - public InputChannel migrated_to; + public InputChannel migrated_to; public static Chat TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { Chat result = null; @@ -37244,8 +37422,8 @@ public class TLRPC { } protected static TL_chatBannedRights mergeBannedRights(TL_channelBannedRights_layer92 rights) { - if (rights == null) { - return null; + if (rights == null) { + return null; } TL_chatBannedRights newRights = new TL_chatBannedRights(); newRights.view_messages = rights.view_messages; @@ -37279,58 +37457,58 @@ public class TLRPC { newRights.add_admins = rights.add_admins; return newRights; } - } + } - public static class TL_chatForbidden_old extends TL_chatForbidden { - public static int constructor = 0xfb0ccc41; + public static class TL_chatForbidden_old extends TL_chatForbidden { + public static int constructor = 0xfb0ccc41; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - title = stream.readString(exception); - date = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + title = stream.readString(exception); + date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) id); - stream.writeString(title); - stream.writeInt32(date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) id); + stream.writeString(title); + stream.writeInt32(date); + } + } - public static class TL_chat_old2 extends TL_chat { - public static int constructor = 0x7312bc48; + public static class TL_chat_old2 extends TL_chat { + public static int constructor = 0x7312bc48; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - creator = (flags & 1) != 0; - kicked = (flags & 2) != 0; - left = (flags & 4) != 0; - deactivated = (flags & 32) != 0; - id = stream.readInt32(exception); - title = stream.readString(exception); - photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - participants_count = stream.readInt32(exception); - date = stream.readInt32(exception); - version = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + creator = (flags & 1) != 0; + kicked = (flags & 2) != 0; + left = (flags & 4) != 0; + deactivated = (flags & 32) != 0; + id = stream.readInt32(exception); + title = stream.readString(exception); + photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + participants_count = stream.readInt32(exception); + date = stream.readInt32(exception); + version = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = creator ? (flags | 1) : (flags &~ 1); - flags = kicked ? (flags | 2) : (flags &~ 2); - flags = left ? (flags | 4) : (flags &~ 4); - flags = deactivated ? (flags | 32) : (flags &~ 32); - stream.writeInt32(flags); - stream.writeInt32((int) id); - stream.writeString(title); - photo.serializeToStream(stream); - stream.writeInt32(participants_count); - stream.writeInt32(date); - stream.writeInt32(version); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = creator ? (flags | 1) : (flags &~ 1); + flags = kicked ? (flags | 2) : (flags &~ 2); + flags = left ? (flags | 4) : (flags &~ 4); + flags = deactivated ? (flags | 32) : (flags &~ 32); + stream.writeInt32(flags); + stream.writeInt32((int) id); + stream.writeString(title); + photo.serializeToStream(stream); + stream.writeInt32(participants_count); + stream.writeInt32(date); + stream.writeInt32(version); + } + } public static class TL_chat extends Chat { public static int constructor = 0x41cbf256; @@ -37476,132 +37654,132 @@ public class TLRPC { } } - public static class TL_channelForbidden_layer131 extends TL_channelForbidden { - public static int constructor = 0x289da732; + public static class TL_channelForbidden_layer131 extends TL_channelForbidden { + public static int constructor = 0x289da732; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - broadcast = (flags & 32) != 0; - megagroup = (flags & 256) != 0; - id = stream.readInt32(exception); - access_hash = stream.readInt64(exception); - title = stream.readString(exception); - if ((flags & 65536) != 0) { - until_date = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + broadcast = (flags & 32) != 0; + megagroup = (flags & 256) != 0; + id = stream.readInt32(exception); + access_hash = stream.readInt64(exception); + title = stream.readString(exception); + if ((flags & 65536) != 0) { + until_date = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = broadcast ? (flags | 32) : (flags &~ 32); - flags = megagroup ? (flags | 256) : (flags &~ 256); - stream.writeInt32(flags); - stream.writeInt32((int) id); - stream.writeInt64(access_hash); - stream.writeString(title); - if ((flags & 65536) != 0) { - stream.writeInt32(until_date); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = broadcast ? (flags | 32) : (flags &~ 32); + flags = megagroup ? (flags | 256) : (flags &~ 256); + stream.writeInt32(flags); + stream.writeInt32((int) id); + stream.writeInt64(access_hash); + stream.writeString(title); + if ((flags & 65536) != 0) { + stream.writeInt32(until_date); + } + } + } - public static class TL_channelForbidden_layer67 extends TL_channelForbidden { - public static int constructor = 0x8537784f; + public static class TL_channelForbidden_layer67 extends TL_channelForbidden { + public static int constructor = 0x8537784f; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - broadcast = (flags & 32) != 0; - megagroup = (flags & 256) != 0; - id = stream.readInt32(exception); - access_hash = stream.readInt64(exception); - title = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + broadcast = (flags & 32) != 0; + megagroup = (flags & 256) != 0; + id = stream.readInt32(exception); + access_hash = stream.readInt64(exception); + title = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = broadcast ? (flags | 32) : (flags &~ 32); - flags = megagroup ? (flags | 256) : (flags &~ 256); - stream.writeInt32(flags); - stream.writeInt32((int) id); - stream.writeInt64(access_hash); - stream.writeString(title); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = broadcast ? (flags | 32) : (flags &~ 32); + flags = megagroup ? (flags | 256) : (flags &~ 256); + stream.writeInt32(flags); + stream.writeInt32((int) id); + stream.writeInt64(access_hash); + stream.writeString(title); + } + } - public static class TL_channel_layer48 extends TL_channel { - public static int constructor = 0x4b1b7506; + public static class TL_channel_layer48 extends TL_channel { + public static int constructor = 0x4b1b7506; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - creator = (flags & 1) != 0; - kicked = (flags & 2) != 0; - left = (flags & 4) != 0; - moderator = (flags & 16) != 0; - broadcast = (flags & 32) != 0; - verified = (flags & 128) != 0; - megagroup = (flags & 256) != 0; - restricted = (flags & 512) != 0; - signatures = (flags & 2048) != 0; - id = stream.readInt32(exception); - access_hash = stream.readInt64(exception); - title = stream.readString(exception); - if ((flags & 64) != 0) { - username = stream.readString(exception); - } - photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - date = stream.readInt32(exception); - version = stream.readInt32(exception); - if ((flags & 512) != 0) { - stream.readString(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + creator = (flags & 1) != 0; + kicked = (flags & 2) != 0; + left = (flags & 4) != 0; + moderator = (flags & 16) != 0; + broadcast = (flags & 32) != 0; + verified = (flags & 128) != 0; + megagroup = (flags & 256) != 0; + restricted = (flags & 512) != 0; + signatures = (flags & 2048) != 0; + id = stream.readInt32(exception); + access_hash = stream.readInt64(exception); + title = stream.readString(exception); + if ((flags & 64) != 0) { + username = stream.readString(exception); + } + photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + date = stream.readInt32(exception); + version = stream.readInt32(exception); + if ((flags & 512) != 0) { + stream.readString(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = creator ? (flags | 1) : (flags &~ 1); - flags = kicked ? (flags | 2) : (flags &~ 2); - flags = left ? (flags | 4) : (flags &~ 4); - flags = moderator ? (flags | 16) : (flags &~ 16); - flags = broadcast ? (flags | 32) : (flags &~ 32); - flags = verified ? (flags | 128) : (flags &~ 128); - flags = megagroup ? (flags | 256) : (flags &~ 256); - flags = restricted ? (flags | 512) : (flags &~ 512); - flags = signatures ? (flags | 2048) : (flags &~ 2048); - stream.writeInt32(flags); - stream.writeInt32((int) id); - stream.writeInt64(access_hash); - stream.writeString(title); - if ((flags & 64) != 0) { - stream.writeString(username); - } - photo.serializeToStream(stream); - stream.writeInt32(date); - stream.writeInt32(version); - if ((flags & 512) != 0) { - stream.writeString(""); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = creator ? (flags | 1) : (flags &~ 1); + flags = kicked ? (flags | 2) : (flags &~ 2); + flags = left ? (flags | 4) : (flags &~ 4); + flags = moderator ? (flags | 16) : (flags &~ 16); + flags = broadcast ? (flags | 32) : (flags &~ 32); + flags = verified ? (flags | 128) : (flags &~ 128); + flags = megagroup ? (flags | 256) : (flags &~ 256); + flags = restricted ? (flags | 512) : (flags &~ 512); + flags = signatures ? (flags | 2048) : (flags &~ 2048); + stream.writeInt32(flags); + stream.writeInt32((int) id); + stream.writeInt64(access_hash); + stream.writeString(title); + if ((flags & 64) != 0) { + stream.writeString(username); + } + photo.serializeToStream(stream); + stream.writeInt32(date); + stream.writeInt32(version); + if ((flags & 512) != 0) { + stream.writeString(""); + } + } + } - public static class TL_channelForbidden_layer52 extends TL_channelForbidden { - public static int constructor = 0x2d85832c; + public static class TL_channelForbidden_layer52 extends TL_channelForbidden { + public static int constructor = 0x2d85832c; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - access_hash = stream.readInt64(exception); - title = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + access_hash = stream.readInt64(exception); + title = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) id); - stream.writeInt64(access_hash); - stream.writeString(title); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) id); + stream.writeInt64(access_hash); + stream.writeString(title); + } + } public static class TL_channel extends Chat { public static int constructor = 0x8261ac61; @@ -37736,154 +37914,154 @@ public class TLRPC { } } - public static class TL_chatForbidden_layer131 extends TL_chatForbidden { - public static int constructor = 0x7328bdb; + public static class TL_chatForbidden_layer131 extends TL_chatForbidden { + public static int constructor = 0x7328bdb; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - title = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + title = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) id); - stream.writeString(title); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) id); + stream.writeString(title); + } + } - public static class TL_channel_layer67 extends TL_channel { - public static int constructor = 0xa14dca52; + public static class TL_channel_layer67 extends TL_channel { + public static int constructor = 0xa14dca52; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - creator = (flags & 1) != 0; - kicked = (flags & 2) != 0; - left = (flags & 4) != 0; - moderator = (flags & 16) != 0; - broadcast = (flags & 32) != 0; - verified = (flags & 128) != 0; - megagroup = (flags & 256) != 0; - restricted = (flags & 512) != 0; - signatures = (flags & 2048) != 0; - min = (flags & 4096) != 0; - id = stream.readInt32(exception); - if ((flags & 8192) != 0) { - access_hash = stream.readInt64(exception); - } - title = stream.readString(exception); - if ((flags & 64) != 0) { - username = stream.readString(exception); - } - photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - date = stream.readInt32(exception); - version = stream.readInt32(exception); - if ((flags & 512) != 0) { - stream.readString(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + creator = (flags & 1) != 0; + kicked = (flags & 2) != 0; + left = (flags & 4) != 0; + moderator = (flags & 16) != 0; + broadcast = (flags & 32) != 0; + verified = (flags & 128) != 0; + megagroup = (flags & 256) != 0; + restricted = (flags & 512) != 0; + signatures = (flags & 2048) != 0; + min = (flags & 4096) != 0; + id = stream.readInt32(exception); + if ((flags & 8192) != 0) { + access_hash = stream.readInt64(exception); + } + title = stream.readString(exception); + if ((flags & 64) != 0) { + username = stream.readString(exception); + } + photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + date = stream.readInt32(exception); + version = stream.readInt32(exception); + if ((flags & 512) != 0) { + stream.readString(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = creator ? (flags | 1) : (flags &~ 1); - flags = kicked ? (flags | 2) : (flags &~ 2); - flags = left ? (flags | 4) : (flags &~ 4); - flags = moderator ? (flags | 16) : (flags &~ 16); - flags = broadcast ? (flags | 32) : (flags &~ 32); - flags = verified ? (flags | 128) : (flags &~ 128); - flags = megagroup ? (flags | 256) : (flags &~ 256); - flags = restricted ? (flags | 512) : (flags &~ 512); - flags = signatures ? (flags | 2048) : (flags &~ 2048); - flags = min ? (flags | 4096) : (flags &~ 4096); - stream.writeInt32(flags); - stream.writeInt32((int) id); - if ((flags & 8192) != 0) { - stream.writeInt64(access_hash); - } - stream.writeString(title); - if ((flags & 64) != 0) { - stream.writeString(username); - } - photo.serializeToStream(stream); - stream.writeInt32(date); - stream.writeInt32(version); - if ((flags & 512) != 0) { - stream.writeString(""); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = creator ? (flags | 1) : (flags &~ 1); + flags = kicked ? (flags | 2) : (flags &~ 2); + flags = left ? (flags | 4) : (flags &~ 4); + flags = moderator ? (flags | 16) : (flags &~ 16); + flags = broadcast ? (flags | 32) : (flags &~ 32); + flags = verified ? (flags | 128) : (flags &~ 128); + flags = megagroup ? (flags | 256) : (flags &~ 256); + flags = restricted ? (flags | 512) : (flags &~ 512); + flags = signatures ? (flags | 2048) : (flags &~ 2048); + flags = min ? (flags | 4096) : (flags &~ 4096); + stream.writeInt32(flags); + stream.writeInt32((int) id); + if ((flags & 8192) != 0) { + stream.writeInt64(access_hash); + } + stream.writeString(title); + if ((flags & 64) != 0) { + stream.writeString(username); + } + photo.serializeToStream(stream); + stream.writeInt32(date); + stream.writeInt32(version); + if ((flags & 512) != 0) { + stream.writeString(""); + } + } + } - public static class TL_channel_old extends TL_channel { - public static int constructor = 0x678e9587; + public static class TL_channel_old extends TL_channel { + public static int constructor = 0x678e9587; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - creator = (flags & 1) != 0; - kicked = (flags & 2) != 0; - left = (flags & 4) != 0; - moderator = (flags & 16) != 0; - broadcast = (flags & 32) != 0; - verified = (flags & 128) != 0; - megagroup = (flags & 256) != 0; - explicit_content = (flags & 512) != 0; - id = stream.readInt32(exception); - access_hash = stream.readInt64(exception); - title = stream.readString(exception); - if ((flags & 64) != 0) { - username = stream.readString(exception); - } - photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - date = stream.readInt32(exception); - version = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + creator = (flags & 1) != 0; + kicked = (flags & 2) != 0; + left = (flags & 4) != 0; + moderator = (flags & 16) != 0; + broadcast = (flags & 32) != 0; + verified = (flags & 128) != 0; + megagroup = (flags & 256) != 0; + explicit_content = (flags & 512) != 0; + id = stream.readInt32(exception); + access_hash = stream.readInt64(exception); + title = stream.readString(exception); + if ((flags & 64) != 0) { + username = stream.readString(exception); + } + photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + date = stream.readInt32(exception); + version = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = creator ? (flags | 1) : (flags &~ 1); - flags = kicked ? (flags | 2) : (flags &~ 2); - flags = left ? (flags | 4) : (flags &~ 4); - flags = moderator ? (flags | 16) : (flags &~ 16); - flags = broadcast ? (flags | 32) : (flags &~ 32); - flags = verified ? (flags | 128) : (flags &~ 128); - flags = megagroup ? (flags | 256) : (flags &~ 256); - flags = explicit_content ? (flags | 512) : (flags &~ 512); - stream.writeInt32(flags); - stream.writeInt32((int) id); - stream.writeInt64(access_hash); - stream.writeString(title); - if ((flags & 64) != 0) { - stream.writeString(username); - } - photo.serializeToStream(stream); - stream.writeInt32(date); - stream.writeInt32(version); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = creator ? (flags | 1) : (flags &~ 1); + flags = kicked ? (flags | 2) : (flags &~ 2); + flags = left ? (flags | 4) : (flags &~ 4); + flags = moderator ? (flags | 16) : (flags &~ 16); + flags = broadcast ? (flags | 32) : (flags &~ 32); + flags = verified ? (flags | 128) : (flags &~ 128); + flags = megagroup ? (flags | 256) : (flags &~ 256); + flags = explicit_content ? (flags | 512) : (flags &~ 512); + stream.writeInt32(flags); + stream.writeInt32((int) id); + stream.writeInt64(access_hash); + stream.writeString(title); + if ((flags & 64) != 0) { + stream.writeString(username); + } + photo.serializeToStream(stream); + stream.writeInt32(date); + stream.writeInt32(version); + } + } - public static class TL_chat_old extends TL_chat { - public static int constructor = 0x6e9c9bc7; + public static class TL_chat_old extends TL_chat { + public static int constructor = 0x6e9c9bc7; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - title = stream.readString(exception); - photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - participants_count = stream.readInt32(exception); - date = stream.readInt32(exception); - left = stream.readBool(exception); - version = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + title = stream.readString(exception); + photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + participants_count = stream.readInt32(exception); + date = stream.readInt32(exception); + left = stream.readBool(exception); + version = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32((int) id); - stream.writeString(title); - photo.serializeToStream(stream); - stream.writeInt32(participants_count); - stream.writeInt32(date); - stream.writeBool(left); - stream.writeInt32(version); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32((int) id); + stream.writeString(title); + photo.serializeToStream(stream); + stream.writeInt32(participants_count); + stream.writeInt32(date); + stream.writeBool(left); + stream.writeInt32(version); + } + } public static class TL_channel_layer131 extends TL_channel { public static int constructor = 0xd31a961e; @@ -38267,121 +38445,121 @@ public class TLRPC { } } - public static class TL_channel_layer92 extends TL_channel { - public static int constructor = 0xc88974ac; + public static class TL_channel_layer92 extends TL_channel { + public static int constructor = 0xc88974ac; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - creator = (flags & 1) != 0; - left = (flags & 4) != 0; - broadcast = (flags & 32) != 0; - verified = (flags & 128) != 0; - megagroup = (flags & 256) != 0; - restricted = (flags & 512) != 0; - signatures = (flags & 2048) != 0; - min = (flags & 4096) != 0; - id = stream.readInt32(exception); - if ((flags & 8192) != 0) { - access_hash = stream.readInt64(exception); - } - title = stream.readString(exception); - if ((flags & 64) != 0) { - username = stream.readString(exception); - } - photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - date = stream.readInt32(exception); - version = stream.readInt32(exception); - if ((flags & 512) != 0) { - stream.readString(exception); - } - if ((flags & 16384) != 0) { - admin_rights_layer92 = TL_channelAdminRights_layer92.TLdeserialize(stream, stream.readInt32(exception), exception); + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + creator = (flags & 1) != 0; + left = (flags & 4) != 0; + broadcast = (flags & 32) != 0; + verified = (flags & 128) != 0; + megagroup = (flags & 256) != 0; + restricted = (flags & 512) != 0; + signatures = (flags & 2048) != 0; + min = (flags & 4096) != 0; + id = stream.readInt32(exception); + if ((flags & 8192) != 0) { + access_hash = stream.readInt64(exception); + } + title = stream.readString(exception); + if ((flags & 64) != 0) { + username = stream.readString(exception); + } + photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + date = stream.readInt32(exception); + version = stream.readInt32(exception); + if ((flags & 512) != 0) { + stream.readString(exception); + } + if ((flags & 16384) != 0) { + admin_rights_layer92 = TL_channelAdminRights_layer92.TLdeserialize(stream, stream.readInt32(exception), exception); admin_rights = mergeAdminRights(admin_rights_layer92); - } - if ((flags & 32768) != 0) { - banned_rights_layer92 = TL_channelBannedRights_layer92.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 32768) != 0) { + banned_rights_layer92 = TL_channelBannedRights_layer92.TLdeserialize(stream, stream.readInt32(exception), exception); banned_rights = mergeBannedRights(banned_rights_layer92); - } - if ((flags & 131072) != 0) { - participants_count = stream.readInt32(exception); - } - } + } + if ((flags & 131072) != 0) { + participants_count = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = creator ? (flags | 1) : (flags &~ 1); - flags = left ? (flags | 4) : (flags &~ 4); - flags = broadcast ? (flags | 32) : (flags &~ 32); - flags = verified ? (flags | 128) : (flags &~ 128); - flags = megagroup ? (flags | 256) : (flags &~ 256); - flags = restricted ? (flags | 512) : (flags &~ 512); - flags = signatures ? (flags | 2048) : (flags &~ 2048); - flags = min ? (flags | 4096) : (flags &~ 4096); - stream.writeInt32(flags); - stream.writeInt32((int) id); - if ((flags & 8192) != 0) { - stream.writeInt64(access_hash); - } - stream.writeString(title); - if ((flags & 64) != 0) { - stream.writeString(username); - } - photo.serializeToStream(stream); - stream.writeInt32(date); - stream.writeInt32(version); - if ((flags & 512) != 0) { - stream.writeString(""); - } - if ((flags & 16384) != 0) { - admin_rights_layer92.serializeToStream(stream); - } - if ((flags & 32768) != 0) { - banned_rights_layer92.serializeToStream(stream); - } - if ((flags & 131072) != 0) { - stream.writeInt32(participants_count); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = creator ? (flags | 1) : (flags &~ 1); + flags = left ? (flags | 4) : (flags &~ 4); + flags = broadcast ? (flags | 32) : (flags &~ 32); + flags = verified ? (flags | 128) : (flags &~ 128); + flags = megagroup ? (flags | 256) : (flags &~ 256); + flags = restricted ? (flags | 512) : (flags &~ 512); + flags = signatures ? (flags | 2048) : (flags &~ 2048); + flags = min ? (flags | 4096) : (flags &~ 4096); + stream.writeInt32(flags); + stream.writeInt32((int) id); + if ((flags & 8192) != 0) { + stream.writeInt64(access_hash); + } + stream.writeString(title); + if ((flags & 64) != 0) { + stream.writeString(username); + } + photo.serializeToStream(stream); + stream.writeInt32(date); + stream.writeInt32(version); + if ((flags & 512) != 0) { + stream.writeString(""); + } + if ((flags & 16384) != 0) { + admin_rights_layer92.serializeToStream(stream); + } + if ((flags & 32768) != 0) { + banned_rights_layer92.serializeToStream(stream); + } + if ((flags & 131072) != 0) { + stream.writeInt32(participants_count); + } + } + } - public static class TL_chat_layer92 extends TL_chat { - public static int constructor = 0xd91cdd54; + public static class TL_chat_layer92 extends TL_chat { + public static int constructor = 0xd91cdd54; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - creator = (flags & 1) != 0; - kicked = (flags & 2) != 0; - left = (flags & 4) != 0; - deactivated = (flags & 32) != 0; - id = stream.readInt32(exception); - title = stream.readString(exception); - photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); - participants_count = stream.readInt32(exception); - date = stream.readInt32(exception); - version = stream.readInt32(exception); - if ((flags & 64) != 0) { - migrated_to = InputChannel.TLdeserialize(stream, stream.readInt32(exception), exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + creator = (flags & 1) != 0; + kicked = (flags & 2) != 0; + left = (flags & 4) != 0; + deactivated = (flags & 32) != 0; + id = stream.readInt32(exception); + title = stream.readString(exception); + photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); + participants_count = stream.readInt32(exception); + date = stream.readInt32(exception); + version = stream.readInt32(exception); + if ((flags & 64) != 0) { + migrated_to = InputChannel.TLdeserialize(stream, stream.readInt32(exception), exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = creator ? (flags | 1) : (flags &~ 1); - flags = kicked ? (flags | 2) : (flags &~ 2); - flags = left ? (flags | 4) : (flags &~ 4); - flags = deactivated ? (flags | 32) : (flags &~ 32); - stream.writeInt32(flags); - stream.writeInt32((int) id); - stream.writeString(title); - photo.serializeToStream(stream); - stream.writeInt32(participants_count); - stream.writeInt32(date); - stream.writeInt32(version); - if ((flags & 64) != 0) { - migrated_to.serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = creator ? (flags | 1) : (flags &~ 1); + flags = kicked ? (flags | 2) : (flags &~ 2); + flags = left ? (flags | 4) : (flags &~ 4); + flags = deactivated ? (flags | 32) : (flags &~ 32); + stream.writeInt32(flags); + stream.writeInt32((int) id); + stream.writeString(title); + photo.serializeToStream(stream); + stream.writeInt32(participants_count); + stream.writeInt32(date); + stream.writeInt32(version); + if ((flags & 64) != 0) { + migrated_to.serializeToStream(stream); + } + } + } public static class TL_restrictionReason extends TLObject { public static int constructor = 0xd072acb4; @@ -38813,346 +38991,346 @@ public class TLRPC { } } - public static abstract class storage_FileType extends TLObject { + public static abstract class storage_FileType extends TLObject { - public static storage_FileType TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - storage_FileType result = null; - switch (constructor) { - case 0xaa963b05: - result = new TL_storage_fileUnknown(); - break; - case 0xb3cea0e4: - result = new TL_storage_fileMp4(); - break; - case 0x1081464c: - result = new TL_storage_fileWebp(); - break; - case 0xa4f63c0: - result = new TL_storage_filePng(); - break; - case 0xcae1aadf: - result = new TL_storage_fileGif(); - break; - case 0xae1e508d: - result = new TL_storage_filePdf(); - break; - case 0x528a0677: - result = new TL_storage_fileMp3(); - break; - case 0x7efe0e: - result = new TL_storage_fileJpeg(); - break; - case 0x4b09ebbc: - result = new TL_storage_fileMov(); - break; - case 0x40bc6f52: - result = new TL_storage_filePartial(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in storage_FileType", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static storage_FileType TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + storage_FileType result = null; + switch (constructor) { + case 0xaa963b05: + result = new TL_storage_fileUnknown(); + break; + case 0xb3cea0e4: + result = new TL_storage_fileMp4(); + break; + case 0x1081464c: + result = new TL_storage_fileWebp(); + break; + case 0xa4f63c0: + result = new TL_storage_filePng(); + break; + case 0xcae1aadf: + result = new TL_storage_fileGif(); + break; + case 0xae1e508d: + result = new TL_storage_filePdf(); + break; + case 0x528a0677: + result = new TL_storage_fileMp3(); + break; + case 0x7efe0e: + result = new TL_storage_fileJpeg(); + break; + case 0x4b09ebbc: + result = new TL_storage_fileMov(); + break; + case 0x40bc6f52: + result = new TL_storage_filePartial(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in storage_FileType", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_storage_fileUnknown extends storage_FileType { - public static int constructor = 0xaa963b05; + public static class TL_storage_fileUnknown extends storage_FileType { + public static int constructor = 0xaa963b05; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_storage_fileMp4 extends storage_FileType { - public static int constructor = 0xb3cea0e4; + public static class TL_storage_fileMp4 extends storage_FileType { + public static int constructor = 0xb3cea0e4; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_storage_fileWebp extends storage_FileType { - public static int constructor = 0x1081464c; + public static class TL_storage_fileWebp extends storage_FileType { + public static int constructor = 0x1081464c; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_storage_filePng extends storage_FileType { - public static int constructor = 0xa4f63c0; + public static class TL_storage_filePng extends storage_FileType { + public static int constructor = 0xa4f63c0; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_storage_fileGif extends storage_FileType { - public static int constructor = 0xcae1aadf; + public static class TL_storage_fileGif extends storage_FileType { + public static int constructor = 0xcae1aadf; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_storage_filePdf extends storage_FileType { - public static int constructor = 0xae1e508d; + public static class TL_storage_filePdf extends storage_FileType { + public static int constructor = 0xae1e508d; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_storage_fileMp3 extends storage_FileType { - public static int constructor = 0x528a0677; + public static class TL_storage_fileMp3 extends storage_FileType { + public static int constructor = 0x528a0677; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_storage_fileJpeg extends storage_FileType { - public static int constructor = 0x7efe0e; + public static class TL_storage_fileJpeg extends storage_FileType { + public static int constructor = 0x7efe0e; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_storage_fileMov extends storage_FileType { - public static int constructor = 0x4b09ebbc; + public static class TL_storage_fileMov extends storage_FileType { + public static int constructor = 0x4b09ebbc; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_storage_filePartial extends storage_FileType { - public static int constructor = 0x40bc6f52; + public static class TL_storage_filePartial extends storage_FileType { + public static int constructor = 0x40bc6f52; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static abstract class auth_CodeType extends TLObject { + public static abstract class auth_CodeType extends TLObject { - public static auth_CodeType TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - auth_CodeType result = null; - switch (constructor) { - case 0x72a3158c: - result = new TL_auth_codeTypeSms(); - break; - case 0x741cd3e3: - result = new TL_auth_codeTypeCall(); - break; - case 0x226ccefb: - result = new TL_auth_codeTypeFlashCall(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in auth_CodeType", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static auth_CodeType TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + auth_CodeType result = null; + switch (constructor) { + case 0x72a3158c: + result = new TL_auth_codeTypeSms(); + break; + case 0x741cd3e3: + result = new TL_auth_codeTypeCall(); + break; + case 0x226ccefb: + result = new TL_auth_codeTypeFlashCall(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in auth_CodeType", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_auth_codeTypeSms extends auth_CodeType { - public static int constructor = 0x72a3158c; + public static class TL_auth_codeTypeSms extends auth_CodeType { + public static int constructor = 0x72a3158c; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_auth_codeTypeCall extends auth_CodeType { - public static int constructor = 0x741cd3e3; + public static class TL_auth_codeTypeCall extends auth_CodeType { + public static int constructor = 0x741cd3e3; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_auth_codeTypeFlashCall extends auth_CodeType { - public static int constructor = 0x226ccefb; + public static class TL_auth_codeTypeFlashCall extends auth_CodeType { + public static int constructor = 0x226ccefb; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static abstract class MessagesFilter extends TLObject { - public int flags; - public boolean missed; + public static abstract class MessagesFilter extends TLObject { + public int flags; + public boolean missed; - public static MessagesFilter TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - MessagesFilter result = null; - switch (constructor) { - case 0xffc86587: - result = new TL_inputMessagesFilterGif(); - break; - case 0x3751b49e: - result = new TL_inputMessagesFilterMusic(); - break; - case 0x3a20ecb8: - result = new TL_inputMessagesFilterChatPhotos(); - break; - case 0x9609a51c: - result = new TL_inputMessagesFilterPhotos(); - break; - case 0x7ef0dd87: - result = new TL_inputMessagesFilterUrl(); - break; - case 0x9eddf188: - result = new TL_inputMessagesFilterDocument(); - break; - case 0x56e9f0e4: - result = new TL_inputMessagesFilterPhotoVideo(); - break; - case 0xd95e73bb: - result = new TL_inputMessagesFilterPhotoVideoDocuments(); - break; - case 0xe7026d0d: - result = new TL_inputMessagesFilterGeo(); - break; + public static MessagesFilter TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + MessagesFilter result = null; + switch (constructor) { + case 0xffc86587: + result = new TL_inputMessagesFilterGif(); + break; + case 0x3751b49e: + result = new TL_inputMessagesFilterMusic(); + break; + case 0x3a20ecb8: + result = new TL_inputMessagesFilterChatPhotos(); + break; + case 0x9609a51c: + result = new TL_inputMessagesFilterPhotos(); + break; + case 0x7ef0dd87: + result = new TL_inputMessagesFilterUrl(); + break; + case 0x9eddf188: + result = new TL_inputMessagesFilterDocument(); + break; + case 0x56e9f0e4: + result = new TL_inputMessagesFilterPhotoVideo(); + break; + case 0xd95e73bb: + result = new TL_inputMessagesFilterPhotoVideoDocuments(); + break; + case 0xe7026d0d: + result = new TL_inputMessagesFilterGeo(); + break; case 0x1bb00451: result = new TL_inputMessagesFilterPinned(); break; - case 0xc1f8e69a: - result = new TL_inputMessagesFilterMyMentions(); - break; - case 0x7a7c17a4: - result = new TL_inputMessagesFilterRoundVoice(); - break; - case 0xe062db83: - result = new TL_inputMessagesFilterContacts(); - break; - case 0x50f5c392: - result = new TL_inputMessagesFilterVoice(); - break; - case 0x9fc00e65: - result = new TL_inputMessagesFilterVideo(); - break; - case 0x80c99768: - result = new TL_inputMessagesFilterPhoneCalls(); - break; - case 0x57e2f66c: - result = new TL_inputMessagesFilterEmpty(); - break; - case 0xb549da53: - result = new TL_inputMessagesFilterRoundVideo(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in MessagesFilter", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0xc1f8e69a: + result = new TL_inputMessagesFilterMyMentions(); + break; + case 0x7a7c17a4: + result = new TL_inputMessagesFilterRoundVoice(); + break; + case 0xe062db83: + result = new TL_inputMessagesFilterContacts(); + break; + case 0x50f5c392: + result = new TL_inputMessagesFilterVoice(); + break; + case 0x9fc00e65: + result = new TL_inputMessagesFilterVideo(); + break; + case 0x80c99768: + result = new TL_inputMessagesFilterPhoneCalls(); + break; + case 0x57e2f66c: + result = new TL_inputMessagesFilterEmpty(); + break; + case 0xb549da53: + result = new TL_inputMessagesFilterRoundVideo(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in MessagesFilter", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_inputMessagesFilterGif extends MessagesFilter { - public static int constructor = 0xffc86587; + public static class TL_inputMessagesFilterGif extends MessagesFilter { + public static int constructor = 0xffc86587; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterMusic extends MessagesFilter { - public static int constructor = 0x3751b49e; + public static class TL_inputMessagesFilterMusic extends MessagesFilter { + public static int constructor = 0x3751b49e; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterChatPhotos extends MessagesFilter { - public static int constructor = 0x3a20ecb8; + public static class TL_inputMessagesFilterChatPhotos extends MessagesFilter { + public static int constructor = 0x3a20ecb8; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterPhotos extends MessagesFilter { - public static int constructor = 0x9609a51c; + public static class TL_inputMessagesFilterPhotos extends MessagesFilter { + public static int constructor = 0x9609a51c; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterUrl extends MessagesFilter { - public static int constructor = 0x7ef0dd87; + public static class TL_inputMessagesFilterUrl extends MessagesFilter { + public static int constructor = 0x7ef0dd87; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterDocument extends MessagesFilter { - public static int constructor = 0x9eddf188; + public static class TL_inputMessagesFilterDocument extends MessagesFilter { + public static int constructor = 0x9eddf188; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterPhotoVideo extends MessagesFilter { - public static int constructor = 0x56e9f0e4; + public static class TL_inputMessagesFilterPhotoVideo extends MessagesFilter { + public static int constructor = 0x56e9f0e4; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterPhotoVideoDocuments extends MessagesFilter { - public static int constructor = 0xd95e73bb; + public static class TL_inputMessagesFilterPhotoVideoDocuments extends MessagesFilter { + public static int constructor = 0xd95e73bb; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterGeo extends MessagesFilter { - public static int constructor = 0xe7026d0d; + public static class TL_inputMessagesFilterGeo extends MessagesFilter { + public static int constructor = 0xe7026d0d; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_inputMessagesFilterPinned extends MessagesFilter { public static int constructor = 0x1bb00451; @@ -39163,84 +39341,84 @@ public class TLRPC { } } - public static class TL_inputMessagesFilterMyMentions extends MessagesFilter { - public static int constructor = 0xc1f8e69a; + public static class TL_inputMessagesFilterMyMentions extends MessagesFilter { + public static int constructor = 0xc1f8e69a; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterRoundVoice extends MessagesFilter { - public static int constructor = 0x7a7c17a4; + public static class TL_inputMessagesFilterRoundVoice extends MessagesFilter { + public static int constructor = 0x7a7c17a4; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterVoice extends MessagesFilter { - public static int constructor = 0x50f5c392; + public static class TL_inputMessagesFilterVoice extends MessagesFilter { + public static int constructor = 0x50f5c392; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterContacts extends MessagesFilter { - public static int constructor = 0xe062db83; + public static class TL_inputMessagesFilterContacts extends MessagesFilter { + public static int constructor = 0xe062db83; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterVideo extends MessagesFilter { - public static int constructor = 0x9fc00e65; + public static class TL_inputMessagesFilterVideo extends MessagesFilter { + public static int constructor = 0x9fc00e65; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterPhoneCalls extends MessagesFilter { - public static int constructor = 0x80c99768; + public static class TL_inputMessagesFilterPhoneCalls extends MessagesFilter { + public static int constructor = 0x80c99768; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - missed = (flags & 1) != 0; - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + missed = (flags & 1) != 0; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = missed ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = missed ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + } + } - public static class TL_inputMessagesFilterEmpty extends MessagesFilter { - public static int constructor = 0x57e2f66c; + public static class TL_inputMessagesFilterEmpty extends MessagesFilter { + public static int constructor = 0x57e2f66c; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputMessagesFilterRoundVideo extends MessagesFilter { - public static int constructor = 0xb549da53; + public static class TL_inputMessagesFilterRoundVideo extends MessagesFilter { + public static int constructor = 0xb549da53; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_phone_groupParticipants extends TLObject { public static int constructor = 0xf47751b6; @@ -39342,138 +39520,138 @@ public class TLRPC { } } - public static abstract class PageListOrderedItem extends TLObject { + public static abstract class PageListOrderedItem extends TLObject { - public static PageListOrderedItem TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - PageListOrderedItem result = null; - switch (constructor) { - case 0x5e068047: - result = new TL_pageListOrderedItemText(); - break; - case 0x98dd8936: - result = new TL_pageListOrderedItemBlocks(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in PageListOrderedItem", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static PageListOrderedItem TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + PageListOrderedItem result = null; + switch (constructor) { + case 0x5e068047: + result = new TL_pageListOrderedItemText(); + break; + case 0x98dd8936: + result = new TL_pageListOrderedItemBlocks(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in PageListOrderedItem", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_pageListOrderedItemText extends PageListOrderedItem { - public static int constructor = 0x5e068047; + public static class TL_pageListOrderedItemText extends PageListOrderedItem { + public static int constructor = 0x5e068047; - public String num; - public RichText text; + public String num; + public RichText text; - public void readParams(AbstractSerializedData stream, boolean exception) { - num = stream.readString(exception); - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + num = stream.readString(exception); + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(num); - text.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(num); + text.serializeToStream(stream); + } + } - public static class TL_pageListOrderedItemBlocks extends PageListOrderedItem { - public static int constructor = 0x98dd8936; + public static class TL_pageListOrderedItemBlocks extends PageListOrderedItem { + public static int constructor = 0x98dd8936; - public String num; - public ArrayList blocks = new ArrayList<>(); + public String num; + public ArrayList blocks = new ArrayList<>(); - public void readParams(AbstractSerializedData stream, boolean exception) { - num = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - blocks.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + num = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + blocks.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(num); - stream.writeInt32(0x1cb5c415); - int count = blocks.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - blocks.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(num); + stream.writeInt32(0x1cb5c415); + int count = blocks.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + blocks.get(a).serializeToStream(stream); + } + } + } - public static class TL_messages_messageEmpty extends TLObject { - public static int constructor = 0x3f4e0648; + public static class TL_messages_messageEmpty extends TLObject { + public static int constructor = 0x3f4e0648; - public static TL_messages_messageEmpty TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_messageEmpty.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_messageEmpty", constructor)); - } else { - return null; - } - } - TL_messages_messageEmpty result = new TL_messages_messageEmpty(); - result.readParams(stream, exception); - return result; - } + public static TL_messages_messageEmpty TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_messageEmpty.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_messageEmpty", constructor)); + } else { + return null; + } + } + TL_messages_messageEmpty result = new TL_messages_messageEmpty(); + result.readParams(stream, exception); + return result; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_secureCredentialsEncrypted extends TLObject { - public static int constructor = 0x33f0ea47; + public static class TL_secureCredentialsEncrypted extends TLObject { + public static int constructor = 0x33f0ea47; - public byte[] data; - public byte[] hash; - public byte[] secret; + public byte[] data; + public byte[] hash; + public byte[] secret; - public static TL_secureCredentialsEncrypted TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_secureCredentialsEncrypted.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_secureCredentialsEncrypted", constructor)); - } else { - return null; - } - } - TL_secureCredentialsEncrypted result = new TL_secureCredentialsEncrypted(); - result.readParams(stream, exception); - return result; - } + public static TL_secureCredentialsEncrypted TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_secureCredentialsEncrypted.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_secureCredentialsEncrypted", constructor)); + } else { + return null; + } + } + TL_secureCredentialsEncrypted result = new TL_secureCredentialsEncrypted(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - data = stream.readByteArray(exception); - hash = stream.readByteArray(exception); - secret = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + data = stream.readByteArray(exception); + hash = stream.readByteArray(exception); + secret = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(data); - stream.writeByteArray(hash); - stream.writeByteArray(secret); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(data); + stream.writeByteArray(hash); + stream.writeByteArray(secret); + } + } public static abstract class MessageFwdHeader extends TLObject { @@ -39977,38 +40155,38 @@ public class TLRPC { } } - public static abstract class messages_SavedGifs extends TLObject { - public long hash; - public ArrayList gifs = new ArrayList<>(); + public static abstract class messages_SavedGifs extends TLObject { + public long hash; + public ArrayList gifs = new ArrayList<>(); - public static messages_SavedGifs TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_SavedGifs result = null; - switch (constructor) { - case 0xe8025ca2: - result = new TL_messages_savedGifsNotModified(); - break; + public static messages_SavedGifs TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_SavedGifs result = null; + switch (constructor) { + case 0xe8025ca2: + result = new TL_messages_savedGifsNotModified(); + break; case 0x84a02a0d: result = new TL_messages_savedGifs(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_SavedGifs", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_SavedGifs", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messages_savedGifsNotModified extends messages_SavedGifs { - public static int constructor = 0xe8025ca2; + public static class TL_messages_savedGifsNotModified extends messages_SavedGifs { + public static int constructor = 0xe8025ca2; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messages_savedGifs extends messages_SavedGifs { public static int constructor = 0x84a02a0d; @@ -40045,36 +40223,36 @@ public class TLRPC { } } - public static abstract class PhotoSize extends TLObject { - public String type; - public FileLocation location; - public int w; - public int h; - public int size; - public byte[] bytes; + public static abstract class PhotoSize extends TLObject { + public String type; + public FileLocation location; + public int w; + public int h; + public int size; + public byte[] bytes; - public static PhotoSize TLdeserialize(long photo_id, long document_id, long sticker_set_id, AbstractSerializedData stream, int constructor, boolean exception) { - PhotoSize result = null; - switch (constructor) { + public static PhotoSize TLdeserialize(long photo_id, long document_id, long sticker_set_id, AbstractSerializedData stream, int constructor, boolean exception) { + PhotoSize result = null; + switch (constructor) { case 0xd8214d41: result = new TL_photoPathSize(); break; - case 0x77bfb61b: - result = new TL_photoSize_layer127(); - break; - case 0xe17e23c: - result = new TL_photoSizeEmpty(); - break; + case 0x77bfb61b: + result = new TL_photoSize_layer127(); + break; + case 0xe17e23c: + result = new TL_photoSizeEmpty(); + break; case 0x5aa86a51: result = new TL_photoSizeProgressive_layer127(); break; case 0xe0b0bc2e: result = new TL_photoStrippedSize(); break; - case 0xe9a734fa: - result = new TL_photoCachedSize_layer127(); - break; + case 0xe9a734fa: + result = new TL_photoCachedSize_layer127(); + break; case 0x75c78e60: result = new TL_photoSize(); break; @@ -40084,14 +40262,14 @@ public class TLRPC { case 0xfa3efb95: result = new TL_photoSizeProgressive(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in PhotoSize", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - if (result.location == null) { - if (!TextUtils.isEmpty(result.type) && (photo_id != 0 || document_id != 0 || sticker_set_id != 0)) { + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in PhotoSize", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + if (result.location == null) { + if (!TextUtils.isEmpty(result.type) && (photo_id != 0 || document_id != 0 || sticker_set_id != 0)) { result.location = new TL_fileLocationToBeDeprecated(); if (photo_id != 0) { result.location.volume_id = -photo_id; @@ -40107,10 +40285,10 @@ public class TLRPC { result.location = new TL_fileLocationUnavailable(); } } - } - return result; - } - } + } + return result; + } + } public static class TL_photoStrippedSize extends PhotoSize { public static int constructor = 0xe0b0bc2e; @@ -40169,63 +40347,63 @@ public class TLRPC { } } - public static class TL_photoSize_layer127 extends TL_photoSize { - public static int constructor = 0x77bfb61b; + public static class TL_photoSize_layer127 extends TL_photoSize { + public static int constructor = 0x77bfb61b; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = stream.readString(exception); - location = FileLocation.TLdeserialize(stream, stream.readInt32(exception), exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - size = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = stream.readString(exception); + location = FileLocation.TLdeserialize(stream, stream.readInt32(exception), exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + size = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(type); - location.serializeToStream(stream); - stream.writeInt32(w); - stream.writeInt32(h); - stream.writeInt32(size); - } - } - - public static class TL_photoSizeEmpty extends PhotoSize { - public static int constructor = 0xe17e23c; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - type = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(type); - } - } - - public static class TL_photoCachedSize_layer127 extends TL_photoCachedSize { - public static int constructor = 0xe9a734fa; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - type = stream.readString(exception); - location = FileLocation.TLdeserialize(stream, stream.readInt32(exception), exception); - w = stream.readInt32(exception); - h = stream.readInt32(exception); - bytes = stream.readByteArray(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(type); - location.serializeToStream(stream); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(type); + location.serializeToStream(stream); stream.writeInt32(w); - stream.writeInt32(h); + stream.writeInt32(h); + stream.writeInt32(size); + } + } + + public static class TL_photoSizeEmpty extends PhotoSize { + public static int constructor = 0xe17e23c; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + type = stream.readString(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(type); + } + } + + public static class TL_photoCachedSize_layer127 extends TL_photoCachedSize { + public static int constructor = 0xe9a734fa; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + type = stream.readString(exception); + location = FileLocation.TLdeserialize(stream, stream.readInt32(exception), exception); + w = stream.readInt32(exception); + h = stream.readInt32(exception); + bytes = stream.readByteArray(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(type); + location.serializeToStream(stream); + stream.writeInt32(w); + stream.writeInt32(h); stream.writeByteArray(bytes); - } - } + } + } public static class TL_photoSize extends PhotoSize { public static int constructor = 0x75c78e60; @@ -40532,178 +40710,178 @@ public class TLRPC { } } - public static abstract class InputFile extends TLObject { - public long id; - public int parts; - public String name; - public String md5_checksum; + public static abstract class InputFile extends TLObject { + public long id; + public int parts; + public String name; + public String md5_checksum; - public static InputFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - InputFile result = null; - switch (constructor) { - case 0xfa4f0bb5: - result = new TL_inputFileBig(); - break; - case 0xf52ff27f: - result = new TL_inputFile(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in InputFile", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static InputFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + InputFile result = null; + switch (constructor) { + case 0xfa4f0bb5: + result = new TL_inputFileBig(); + break; + case 0xf52ff27f: + result = new TL_inputFile(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in InputFile", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_inputFileBig extends InputFile { - public static int constructor = 0xfa4f0bb5; + public static class TL_inputFileBig extends InputFile { + public static int constructor = 0xfa4f0bb5; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - parts = stream.readInt32(exception); - name = stream.readString(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + parts = stream.readInt32(exception); + name = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt32(parts); - stream.writeString(name); - } - } - - public static class TL_inputFile extends InputFile { - public static int constructor = 0xf52ff27f; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - parts = stream.readInt32(exception); - name = stream.readString(exception); - md5_checksum = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt32(parts); - stream.writeString(name); - stream.writeString(md5_checksum); - } - } + stream.writeInt64(id); + stream.writeInt32(parts); + stream.writeString(name); + } + } - public static class TL_account_webAuthorizations extends TLObject { - public static int constructor = 0xed56c9fc; + public static class TL_inputFile extends InputFile { + public static int constructor = 0xf52ff27f; - public ArrayList authorizations = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); - public static TL_account_webAuthorizations TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_account_webAuthorizations.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_account_webAuthorizations", constructor)); - } else { - return null; - } - } - TL_account_webAuthorizations result = new TL_account_webAuthorizations(); - result.readParams(stream, exception); - return result; - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + parts = stream.readInt32(exception); + name = stream.readString(exception); + md5_checksum = stream.readString(exception); + } - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_webAuthorization object = TL_webAuthorization.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - authorizations.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt32(parts); + stream.writeString(name); + stream.writeString(md5_checksum); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = authorizations.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - authorizations.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - } - } + public static class TL_account_webAuthorizations extends TLObject { + public static int constructor = 0xed56c9fc; - public static class TL_updates_state extends TLObject { - public static int constructor = 0xa56c2a3e; + public ArrayList authorizations = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); - public int pts; - public int qts; - public int date; - public int seq; - public int unread_count; + public static TL_account_webAuthorizations TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_account_webAuthorizations.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_account_webAuthorizations", constructor)); + } else { + return null; + } + } + TL_account_webAuthorizations result = new TL_account_webAuthorizations(); + result.readParams(stream, exception); + return result; + } - public static TL_updates_state TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_updates_state.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_updates_state", constructor)); - } else { - return null; - } - } - TL_updates_state result = new TL_updates_state(); - result.readParams(stream, exception); - return result; - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_webAuthorization object = TL_webAuthorization.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + authorizations.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + } - public void readParams(AbstractSerializedData stream, boolean exception) { - pts = stream.readInt32(exception); - qts = stream.readInt32(exception); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = authorizations.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + authorizations.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + } + } + + public static class TL_updates_state extends TLObject { + public static int constructor = 0xa56c2a3e; + + public int pts; + public int qts; + public int date; + public int seq; + public int unread_count; + + public static TL_updates_state TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_updates_state.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_updates_state", constructor)); + } else { + return null; + } + } + TL_updates_state result = new TL_updates_state(); + result.readParams(stream, exception); + return result; + } + + public void readParams(AbstractSerializedData stream, boolean exception) { + pts = stream.readInt32(exception); + qts = stream.readInt32(exception); date = stream.readInt32(exception); - seq = stream.readInt32(exception); - unread_count = stream.readInt32(exception); - } + seq = stream.readInt32(exception); + unread_count = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - stream.writeInt32(pts); + stream.writeInt32(pts); stream.writeInt32(qts); stream.writeInt32(date); - stream.writeInt32(seq); - stream.writeInt32(unread_count); - } - } + stream.writeInt32(seq); + stream.writeInt32(unread_count); + } + } public static class TL_reactionCount extends TLObject { public static int constructor = 0x6fb250d1; @@ -40763,13 +40941,18 @@ public class TLRPC { public int ttl_period; public TL_peerSettings settings; public String theme_emoticon; + public long id; + public String private_forward_name; public static UserFull TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { UserFull result = null; switch (constructor) { - case 0xd697ff05: + case 0xcf366521: result = new TL_userFull(); break; + case 0xd697ff05: + result = new TL_userFull_layer134(); + break; case 0x139a9a77: result = new TL_userFull_layer131(); break; @@ -40794,6 +40977,87 @@ public class TLRPC { } public static class TL_userFull extends UserFull { + public static int constructor = 0xcf366521; + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + blocked = (flags & 1) != 0; + phone_calls_available = (flags & 16) != 0; + phone_calls_private = (flags & 32) != 0; + can_pin_message = (flags & 128) != 0; + has_scheduled = (flags & 4096) != 0; + video_calls_available = (flags & 8192) != 0; + id = stream.readInt64(exception); + if ((flags & 2) != 0) { + about = stream.readString(exception); + } + settings = TL_peerSettings.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 4) != 0) { + profile_photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception); + } + notify_settings = PeerNotifySettings.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 8) != 0) { + bot_info = BotInfo.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 64) != 0) { + pinned_msg_id = stream.readInt32(exception); + } + common_chats_count = stream.readInt32(exception); + if ((flags & 2048) != 0) { + folder_id = stream.readInt32(exception); + } + if ((flags & 16384) != 0) { + ttl_period = stream.readInt32(exception); + } + if ((flags & 32768) != 0) { + theme_emoticon = stream.readString(exception); + } + if ((flags & 65536) != 0) { + private_forward_name = stream.readString(exception); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = blocked ? (flags | 1) : (flags &~ 1); + flags = phone_calls_available ? (flags | 16) : (flags &~ 16); + flags = phone_calls_private ? (flags | 32) : (flags &~ 32); + flags = can_pin_message ? (flags | 128) : (flags &~ 128); + flags = has_scheduled ? (flags | 4096) : (flags &~ 4096); + flags = video_calls_available ? (flags | 8192) : (flags &~ 8192); + stream.writeInt32(flags); + stream.writeInt64(id); + if ((flags & 2) != 0) { + stream.writeString(about); + } + settings.serializeToStream(stream); + if ((flags & 4) != 0) { + profile_photo.serializeToStream(stream); + } + notify_settings.serializeToStream(stream); + if ((flags & 8) != 0) { + bot_info.serializeToStream(stream); + } + if ((flags & 64) != 0) { + stream.writeInt32(pinned_msg_id); + } + stream.writeInt32(common_chats_count); + if ((flags & 2048) != 0) { + stream.writeInt32(folder_id); + } + if ((flags & 16384) != 0) { + stream.writeInt32(ttl_period); + } + if ((flags & 32768) != 0) { + stream.writeString(theme_emoticon); + } + if ((flags & 65536) != 0) { + stream.writeString(private_forward_name); + } + } + } + + public static class TL_userFull_layer134 extends TL_userFull { public static int constructor = 0xd697ff05; @@ -41116,36 +41380,36 @@ public class TLRPC { } } - public static abstract class Updates extends TLObject { - public ArrayList updates = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); - public ArrayList chats = new ArrayList<>(); - public int date; - public int seq; - public int flags; - public boolean out; - public boolean mentioned; - public boolean media_unread; - public boolean silent; - public int id; - public long user_id; - public String message; - public int pts; - public int pts_count; - public MessageFwdHeader fwd_from; - public long via_bot_id; + public static abstract class Updates extends TLObject { + public ArrayList updates = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); + public ArrayList chats = new ArrayList<>(); + public int date; + public int seq; + public int flags; + public boolean out; + public boolean mentioned; + public boolean media_unread; + public boolean silent; + public int id; + public long user_id; + public String message; + public int pts; + public int pts_count; + public MessageFwdHeader fwd_from; + public long via_bot_id; public TL_messageReplyHeader reply_to; - public ArrayList entities = new ArrayList<>(); - public MessageMedia media; - public Update update; - public long from_id; - public long chat_id; - public int seq_start; + public ArrayList entities = new ArrayList<>(); + public MessageMedia media; + public Update update; + public long from_id; + public long chat_id; + public int seq_start; public int ttl_period; - public static Updates TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - Updates result = null; - switch (constructor) { + public static Updates TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + Updates result = null; + switch (constructor) { case 0x74ae4240: result = new TL_updates(); break; @@ -41167,71 +41431,71 @@ public class TLRPC { case 0xe317af7e: result = new TL_updatesTooLong(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in Updates", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in Updates", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_updates extends Updates { - public static int constructor = 0x74ae4240; + public static class TL_updates extends Updates { + public static int constructor = 0x74ae4240; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Update object = Update.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - updates.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - date = stream.readInt32(exception); - seq = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Update object = Update.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + updates.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + date = stream.readInt32(exception); + seq = stream.readInt32(exception); + } + } public static class TL_updateShortMessage extends Updates { public static int constructor = 0x313bc7f8; @@ -41318,15 +41582,15 @@ public class TLRPC { } } - public static class TL_updateShort extends Updates { - public static int constructor = 0x78d4dec1; + public static class TL_updateShort extends Updates { + public static int constructor = 0x78d4dec1; - public void readParams(AbstractSerializedData stream, boolean exception) { - update = Update.TLdeserialize(stream, stream.readInt32(exception), exception); - date = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + update = Update.TLdeserialize(stream, stream.readInt32(exception), exception); + date = stream.readInt32(exception); + } + } public static class TL_updateShortChatMessage extends Updates { public static int constructor = 0x4d6deea5; @@ -41377,65 +41641,65 @@ public class TLRPC { } } - public static class TL_updatesCombined extends Updates { - public static int constructor = 0x725b04c3; + public static class TL_updatesCombined extends Updates { + public static int constructor = 0x725b04c3; - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Update object = Update.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - updates.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - date = stream.readInt32(exception); - seq_start = stream.readInt32(exception); - seq = stream.readInt32(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Update object = Update.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + updates.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + date = stream.readInt32(exception); + seq_start = stream.readInt32(exception); + seq = stream.readInt32(exception); + } + } - public static class TL_updatesTooLong extends Updates { - public static int constructor = 0xe317af7e; - } + public static class TL_updatesTooLong extends Updates { + public static int constructor = 0xe317af7e; + } public static abstract class WallPaper extends TLObject { @@ -41588,184 +41852,184 @@ public class TLRPC { } } - public static class TL_paymentSavedCredentialsCard extends TLObject { - public static int constructor = 0xcdc27a1f; + public static class TL_paymentSavedCredentialsCard extends TLObject { + public static int constructor = 0xcdc27a1f; - public String id; - public String title; + public String id; + public String title; - public static TL_paymentSavedCredentialsCard TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_paymentSavedCredentialsCard.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_paymentSavedCredentialsCard", constructor)); - } else { - return null; - } - } - TL_paymentSavedCredentialsCard result = new TL_paymentSavedCredentialsCard(); - result.readParams(stream, exception); - return result; - } - - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readString(exception); - title = stream.readString(exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(id); - stream.writeString(title); - } - } - - public static abstract class PageListItem extends TLObject { - - public static PageListItem TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - PageListItem result = null; - switch (constructor) { - case 0x25e073fc: - result = new TL_pageListItemBlocks(); - break; - case 0xb92fb6cd: - result = new TL_pageListItemText(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in PageListItem", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } - - public static class TL_pageListItemBlocks extends PageListItem { - public static int constructor = 0x25e073fc; - - public ArrayList blocks = new ArrayList<>(); - - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - blocks.add(object); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = blocks.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - blocks.get(a).serializeToStream(stream); - } - } - } - - public static class TL_pageListItemText extends PageListItem { - public static int constructor = 0xb92fb6cd; - - public RichText text; - - public void readParams(AbstractSerializedData stream, boolean exception) { - text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - text.serializeToStream(stream); - } - } - - public static class TL_stickerPack extends TLObject { - public static int constructor = 0x12b299d4; - - public String emoticon; - public ArrayList documents = new ArrayList<>(); - - public static TL_stickerPack TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_stickerPack.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_stickerPack", constructor)); - } else { - return null; - } - } - TL_stickerPack result = new TL_stickerPack(); - result.readParams(stream, exception); - return result; + public static TL_paymentSavedCredentialsCard TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_paymentSavedCredentialsCard.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_paymentSavedCredentialsCard", constructor)); + } else { + return null; + } + } + TL_paymentSavedCredentialsCard result = new TL_paymentSavedCredentialsCard(); + result.readParams(stream, exception); + return result; } public void readParams(AbstractSerializedData stream, boolean exception) { - emoticon = stream.readString(exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - documents.add(stream.readInt64(exception)); - } - } + id = stream.readString(exception); + title = stream.readString(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(emoticon); - stream.writeInt32(0x1cb5c415); - int count = documents.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt64(documents.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(id); + stream.writeString(title); + } + } - public static class TL_inputEncryptedChat extends TLObject { - public static int constructor = 0xf141b5e1; + public static abstract class PageListItem extends TLObject { - public int chat_id; - public long access_hash; + public static PageListItem TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + PageListItem result = null; + switch (constructor) { + case 0x25e073fc: + result = new TL_pageListItemBlocks(); + break; + case 0xb92fb6cd: + result = new TL_pageListItemText(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in PageListItem", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static TL_inputEncryptedChat TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_inputEncryptedChat.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_inputEncryptedChat", constructor)); - } else { - return null; - } - } - TL_inputEncryptedChat result = new TL_inputEncryptedChat(); - result.readParams(stream, exception); - return result; + public static class TL_pageListItemBlocks extends PageListItem { + public static int constructor = 0x25e073fc; + + public ArrayList blocks = new ArrayList<>(); + + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + PageBlock object = PageBlock.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + blocks.add(object); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = blocks.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + blocks.get(a).serializeToStream(stream); + } + } + } + + public static class TL_pageListItemText extends PageListItem { + public static int constructor = 0xb92fb6cd; + + public RichText text; + + public void readParams(AbstractSerializedData stream, boolean exception) { + text = RichText.TLdeserialize(stream, stream.readInt32(exception), exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + text.serializeToStream(stream); + } + } + + public static class TL_stickerPack extends TLObject { + public static int constructor = 0x12b299d4; + + public String emoticon; + public ArrayList documents = new ArrayList<>(); + + public static TL_stickerPack TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_stickerPack.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_stickerPack", constructor)); + } else { + return null; + } + } + TL_stickerPack result = new TL_stickerPack(); + result.readParams(stream, exception); + return result; } public void readParams(AbstractSerializedData stream, boolean exception) { - chat_id = stream.readInt32(exception); - access_hash = stream.readInt64(exception); - } + emoticon = stream.readString(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + documents.add(stream.readInt64(exception)); + } + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(emoticon); + stream.writeInt32(0x1cb5c415); + int count = documents.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt64(documents.get(a)); + } + } + } + + public static class TL_inputEncryptedChat extends TLObject { + public static int constructor = 0xf141b5e1; + + public int chat_id; + public long access_hash; + + public static TL_inputEncryptedChat TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_inputEncryptedChat.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_inputEncryptedChat", constructor)); + } else { + return null; + } + } + TL_inputEncryptedChat result = new TL_inputEncryptedChat(); + result.readParams(stream, exception); + return result; + } + + public void readParams(AbstractSerializedData stream, boolean exception) { + chat_id = stream.readInt32(exception); + access_hash = stream.readInt64(exception); + } + + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); stream.writeInt32(chat_id); - stream.writeInt64(access_hash); - } - } + stream.writeInt64(access_hash); + } + } public static abstract class InputChatPhoto extends TLObject { @@ -41852,129 +42116,129 @@ public class TLRPC { } } - public static class TL_nearestDc extends TLObject { - public static int constructor = 0x8e1a1775; + public static class TL_nearestDc extends TLObject { + public static int constructor = 0x8e1a1775; - public String country; - public int this_dc; - public int nearest_dc; + public String country; + public int this_dc; + public int nearest_dc; - public static TL_nearestDc TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_nearestDc.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_nearestDc", constructor)); - } else { - return null; - } - } - TL_nearestDc result = new TL_nearestDc(); - result.readParams(stream, exception); - return result; - } + public static TL_nearestDc TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_nearestDc.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_nearestDc", constructor)); + } else { + return null; + } + } + TL_nearestDc result = new TL_nearestDc(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { + public void readParams(AbstractSerializedData stream, boolean exception) { country = stream.readString(exception); - this_dc = stream.readInt32(exception); - nearest_dc = stream.readInt32(exception); - } + this_dc = stream.readInt32(exception); + nearest_dc = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); stream.writeString(country); - stream.writeInt32(this_dc); - stream.writeInt32(nearest_dc); - } - } + stream.writeInt32(this_dc); + stream.writeInt32(nearest_dc); + } + } - public static class TL_payments_savedInfo extends TLObject { - public static int constructor = 0xfb8fe43c; + public static class TL_payments_savedInfo extends TLObject { + public static int constructor = 0xfb8fe43c; - public int flags; - public boolean has_saved_credentials; - public TL_paymentRequestedInfo saved_info; + public int flags; + public boolean has_saved_credentials; + public TL_paymentRequestedInfo saved_info; - public static TL_payments_savedInfo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_payments_savedInfo.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_payments_savedInfo", constructor)); - } else { - return null; - } - } - TL_payments_savedInfo result = new TL_payments_savedInfo(); - result.readParams(stream, exception); - return result; - } + public static TL_payments_savedInfo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_payments_savedInfo.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_payments_savedInfo", constructor)); + } else { + return null; + } + } + TL_payments_savedInfo result = new TL_payments_savedInfo(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - has_saved_credentials = (flags & 2) != 0; - if ((flags & 1) != 0) { - saved_info = TL_paymentRequestedInfo.TLdeserialize(stream, stream.readInt32(exception), exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + has_saved_credentials = (flags & 2) != 0; + if ((flags & 1) != 0) { + saved_info = TL_paymentRequestedInfo.TLdeserialize(stream, stream.readInt32(exception), exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = has_saved_credentials ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - saved_info.serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = has_saved_credentials ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + saved_info.serializeToStream(stream); + } + } + } - public static abstract class InputPhoto extends TLObject { - public long id; - public long access_hash; - public byte[] file_reference; + public static abstract class InputPhoto extends TLObject { + public long id; + public long access_hash; + public byte[] file_reference; - public static InputPhoto TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - InputPhoto result = null; - switch (constructor) { - case 0x1cd7bf0d: - result = new TL_inputPhotoEmpty(); - break; - case 0x3bb3b94a: - result = new TL_inputPhoto(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in InputPhoto", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static InputPhoto TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + InputPhoto result = null; + switch (constructor) { + case 0x1cd7bf0d: + result = new TL_inputPhotoEmpty(); + break; + case 0x3bb3b94a: + result = new TL_inputPhoto(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in InputPhoto", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_inputPhotoEmpty extends InputPhoto { - public static int constructor = 0x1cd7bf0d; + public static class TL_inputPhotoEmpty extends InputPhoto { + public static int constructor = 0x1cd7bf0d; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_inputPhoto extends InputPhoto { - public static int constructor = 0x3bb3b94a; + public static class TL_inputPhoto extends InputPhoto { + public static int constructor = 0x3bb3b94a; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt64(exception); - access_hash = stream.readInt64(exception); - file_reference = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt64(exception); + access_hash = stream.readInt64(exception); + file_reference = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(id); - stream.writeInt64(access_hash); - stream.writeByteArray(file_reference); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(id); + stream.writeInt64(access_hash); + stream.writeByteArray(file_reference); + } + } public static class TL_importedContact extends TLObject { public static int constructor = 0xc13e3c50; @@ -42035,27 +42299,27 @@ public class TLRPC { } } - public static abstract class messages_RecentStickers extends TLObject { + public static abstract class messages_RecentStickers extends TLObject { - public static messages_RecentStickers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_RecentStickers result = null; - switch (constructor) { + public static messages_RecentStickers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_RecentStickers result = null; + switch (constructor) { case 0x88d37c56: result = new TL_messages_recentStickers(); break; - case 0xb17f890: - result = new TL_messages_recentStickersNotModified(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_RecentStickers", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0xb17f890: + result = new TL_messages_recentStickersNotModified(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_RecentStickers", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } public static class TL_messages_recentStickers extends messages_RecentStickers { public static int constructor = 0x88d37c56; @@ -42134,14 +42398,14 @@ public class TLRPC { } } - public static class TL_messages_recentStickersNotModified extends messages_RecentStickers { - public static int constructor = 0xb17f890; + public static class TL_messages_recentStickersNotModified extends messages_RecentStickers { + public static int constructor = 0xb17f890; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_pageRelatedArticle extends TLObject { public static int constructor = 0xb390dc08; @@ -42212,64 +42476,64 @@ public class TLRPC { } } - public static class TL_accountDaysTTL extends TLObject { - public static int constructor = 0xb8d0afdf; + public static class TL_accountDaysTTL extends TLObject { + public static int constructor = 0xb8d0afdf; - public int days; + public int days; - public static TL_accountDaysTTL TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_accountDaysTTL.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_accountDaysTTL", constructor)); - } else { - return null; - } - } - TL_accountDaysTTL result = new TL_accountDaysTTL(); - result.readParams(stream, exception); - return result; - } + public static TL_accountDaysTTL TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_accountDaysTTL.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_accountDaysTTL", constructor)); + } else { + return null; + } + } + TL_accountDaysTTL result = new TL_accountDaysTTL(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - days = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + days = stream.readInt32(exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(days); - } - } + stream.writeInt32(constructor); + stream.writeInt32(days); + } + } - public static abstract class messages_Stickers extends TLObject { + public static abstract class messages_Stickers extends TLObject { - public static messages_Stickers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - messages_Stickers result = null; - switch (constructor) { - case 0xf1749a22: - result = new TL_messages_stickersNotModified(); - break; + public static messages_Stickers TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + messages_Stickers result = null; + switch (constructor) { + case 0xf1749a22: + result = new TL_messages_stickersNotModified(); + break; case 0x30a6ec7e: result = new TL_messages_stickers(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in messages_Stickers", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in messages_Stickers", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_messages_stickersNotModified extends messages_Stickers { - public static int constructor = 0xf1749a22; + public static class TL_messages_stickersNotModified extends messages_Stickers { + public static int constructor = 0xf1749a22; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messages_stickers extends messages_Stickers { public static int constructor = 0x30a6ec7e; @@ -42549,54 +42813,54 @@ public class TLRPC { } } - public static abstract class help_PassportConfig extends TLObject { + public static abstract class help_PassportConfig extends TLObject { - public static help_PassportConfig TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - help_PassportConfig result = null; - switch (constructor) { - case 0xbfb9f457: - result = new TL_help_passportConfigNotModified(); - break; - case 0xa098d6af: - result = new TL_help_passportConfig(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in help_PassportConfig", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static help_PassportConfig TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + help_PassportConfig result = null; + switch (constructor) { + case 0xbfb9f457: + result = new TL_help_passportConfigNotModified(); + break; + case 0xa098d6af: + result = new TL_help_passportConfig(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in help_PassportConfig", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_help_passportConfigNotModified extends help_PassportConfig { - public static int constructor = 0xbfb9f457; + public static class TL_help_passportConfigNotModified extends help_PassportConfig { + public static int constructor = 0xbfb9f457; - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_help_passportConfig extends help_PassportConfig { - public static int constructor = 0xa098d6af; + public static class TL_help_passportConfig extends help_PassportConfig { + public static int constructor = 0xa098d6af; - public int hash; - public TL_dataJSON countries_langs; + public int hash; + public TL_dataJSON countries_langs; - public void readParams(AbstractSerializedData stream, boolean exception) { - hash = stream.readInt32(exception); - countries_langs = TL_dataJSON.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + hash = stream.readInt32(exception); + countries_langs = TL_dataJSON.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(hash); - countries_langs.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(hash); + countries_langs.serializeToStream(stream); + } + } public static class TL_phone_exportedGroupCallInvite extends TLObject { public static int constructor = 0x204bd158; @@ -42626,174 +42890,174 @@ public class TLRPC { } } - public static class TL_account_passwordInputSettings extends TLObject { - public static int constructor = 0xc23727c9; + public static class TL_account_passwordInputSettings extends TLObject { + public static int constructor = 0xc23727c9; - public int flags; - public PasswordKdfAlgo new_algo; - public byte[] new_password_hash; - public String hint; - public String email; - public TL_secureSecretSettings new_secure_settings; + public int flags; + public PasswordKdfAlgo new_algo; + public byte[] new_password_hash; + public String hint; + public String email; + public TL_secureSecretSettings new_secure_settings; - public static TL_account_passwordInputSettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_account_passwordInputSettings.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_account_passwordInputSettings", constructor)); - } else { - return null; - } - } - TL_account_passwordInputSettings result = new TL_account_passwordInputSettings(); - result.readParams(stream, exception); - return result; - } + public static TL_account_passwordInputSettings TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_account_passwordInputSettings.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_account_passwordInputSettings", constructor)); + } else { + return null; + } + } + TL_account_passwordInputSettings result = new TL_account_passwordInputSettings(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - if ((flags & 1) != 0) { - new_algo = PasswordKdfAlgo.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 1) != 0) { - new_password_hash = stream.readByteArray(exception); - } - if ((flags & 1) != 0) { - hint = stream.readString(exception); - } - if ((flags & 2) != 0) { - email = stream.readString(exception); - } - if ((flags & 4) != 0) { - new_secure_settings = TL_secureSecretSettings.TLdeserialize(stream, stream.readInt32(exception), exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + if ((flags & 1) != 0) { + new_algo = PasswordKdfAlgo.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 1) != 0) { + new_password_hash = stream.readByteArray(exception); + } + if ((flags & 1) != 0) { + hint = stream.readString(exception); + } + if ((flags & 2) != 0) { + email = stream.readString(exception); + } + if ((flags & 4) != 0) { + new_secure_settings = TL_secureSecretSettings.TLdeserialize(stream, stream.readInt32(exception), exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - new_algo.serializeToStream(stream); - } - if ((flags & 1) != 0) { - stream.writeByteArray(new_password_hash); - } - if ((flags & 1) != 0) { - stream.writeString(hint); - } - if ((flags & 2) != 0) { - stream.writeString(email); - } - if ((flags & 4) != 0) { - new_secure_settings.serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + new_algo.serializeToStream(stream); + } + if ((flags & 1) != 0) { + stream.writeByteArray(new_password_hash); + } + if ((flags & 1) != 0) { + stream.writeString(hint); + } + if ((flags & 2) != 0) { + stream.writeString(email); + } + if ((flags & 4) != 0) { + new_secure_settings.serializeToStream(stream); + } + } + } - public static class TL_dcOption extends TLObject { - public static int constructor = 0x18b7a10d; + public static class TL_dcOption extends TLObject { + public static int constructor = 0x18b7a10d; - public int flags; - public boolean ipv6; - public boolean media_only; - public boolean tcpo_only; - public boolean cdn; - public boolean isStatic; - public int id; - public String ip_address; - public int port; - public byte[] secret; + public int flags; + public boolean ipv6; + public boolean media_only; + public boolean tcpo_only; + public boolean cdn; + public boolean isStatic; + public int id; + public String ip_address; + public int port; + public byte[] secret; - public static TL_dcOption TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_dcOption.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_dcOption", constructor)); - } else { - return null; - } - } - TL_dcOption result = new TL_dcOption(); - result.readParams(stream, exception); - return result; - } + public static TL_dcOption TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_dcOption.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_dcOption", constructor)); + } else { + return null; + } + } + TL_dcOption result = new TL_dcOption(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - ipv6 = (flags & 1) != 0; - media_only = (flags & 2) != 0; - tcpo_only = (flags & 4) != 0; - cdn = (flags & 8) != 0; - isStatic = (flags & 16) != 0; - id = stream.readInt32(exception); - ip_address = stream.readString(exception); - port = stream.readInt32(exception); - if ((flags & 1024) != 0) { - secret = stream.readByteArray(exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + ipv6 = (flags & 1) != 0; + media_only = (flags & 2) != 0; + tcpo_only = (flags & 4) != 0; + cdn = (flags & 8) != 0; + isStatic = (flags & 16) != 0; + id = stream.readInt32(exception); + ip_address = stream.readString(exception); + port = stream.readInt32(exception); + if ((flags & 1024) != 0) { + secret = stream.readByteArray(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = ipv6 ? (flags | 1) : (flags &~ 1); - flags = media_only ? (flags | 2) : (flags &~ 2); - flags = tcpo_only ? (flags | 4) : (flags &~ 4); - flags = cdn ? (flags | 8) : (flags &~ 8); - flags = isStatic ? (flags | 16) : (flags &~ 16); - stream.writeInt32(flags); - stream.writeInt32(id); - stream.writeString(ip_address); - stream.writeInt32(port); - if ((flags & 1024) != 0) { - stream.writeByteArray(secret); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = ipv6 ? (flags | 1) : (flags &~ 1); + flags = media_only ? (flags | 2) : (flags &~ 2); + flags = tcpo_only ? (flags | 4) : (flags &~ 4); + flags = cdn ? (flags | 8) : (flags &~ 8); + flags = isStatic ? (flags | 16) : (flags &~ 16); + stream.writeInt32(flags); + stream.writeInt32(id); + stream.writeString(ip_address); + stream.writeInt32(port); + if ((flags & 1024) != 0) { + stream.writeByteArray(secret); + } + } + } - public static class TL_pageTableRow extends TLObject { - public static int constructor = 0xe0c0c5e5; + public static class TL_pageTableRow extends TLObject { + public static int constructor = 0xe0c0c5e5; - public ArrayList cells = new ArrayList<>(); + public ArrayList cells = new ArrayList<>(); - public static TL_pageTableRow TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_pageTableRow.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_pageTableRow", constructor)); - } else { - return null; - } - } - TL_pageTableRow result = new TL_pageTableRow(); - result.readParams(stream, exception); - return result; - } + public static TL_pageTableRow TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_pageTableRow.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_pageTableRow", constructor)); + } else { + return null; + } + } + TL_pageTableRow result = new TL_pageTableRow(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_pageTableCell object = TL_pageTableCell.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - cells.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_pageTableCell object = TL_pageTableCell.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + cells.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = cells.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - cells.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = cells.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + cells.get(a).serializeToStream(stream); + } + } + } public static class TL_emojiURL extends TLObject { public static int constructor = 0xa575739d; @@ -42823,45 +43087,45 @@ public class TLRPC { } } - public static class TL_decryptedMessageLayer extends TLObject { - public static int constructor = 0x1be31789; + public static class TL_decryptedMessageLayer extends TLObject { + public static int constructor = 0x1be31789; - public byte[] random_bytes; - public int layer; - public int in_seq_no; - public int out_seq_no; - public DecryptedMessage message; + public byte[] random_bytes; + public int layer; + public int in_seq_no; + public int out_seq_no; + public DecryptedMessage message; - public static TL_decryptedMessageLayer TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_decryptedMessageLayer.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_decryptedMessageLayer", constructor)); - } else { - return null; - } - } - TL_decryptedMessageLayer result = new TL_decryptedMessageLayer(); - result.readParams(stream, exception); - return result; - } + public static TL_decryptedMessageLayer TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_decryptedMessageLayer.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_decryptedMessageLayer", constructor)); + } else { + return null; + } + } + TL_decryptedMessageLayer result = new TL_decryptedMessageLayer(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - random_bytes = stream.readByteArray(exception); - layer = stream.readInt32(exception); + public void readParams(AbstractSerializedData stream, boolean exception) { + random_bytes = stream.readByteArray(exception); + layer = stream.readInt32(exception); in_seq_no = stream.readInt32(exception); out_seq_no = stream.readInt32(exception); - message = DecryptedMessage.TLdeserialize(stream, stream.readInt32(exception), exception); - } + message = DecryptedMessage.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(random_bytes); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(random_bytes); stream.writeInt32(layer); - stream.writeInt32(in_seq_no); - stream.writeInt32(out_seq_no); - message.serializeToStream(stream); - } - } + stream.writeInt32(in_seq_no); + stream.writeInt32(out_seq_no); + message.serializeToStream(stream); + } + } public static class TL_groupCallParticipant extends TLObject { public static int constructor = 0xeba636fe; @@ -42986,186 +43250,186 @@ public class TLRPC { } } - public static class TL_fileHash extends TLObject { - public static int constructor = 0x6242c773; + public static class TL_fileHash extends TLObject { + public static int constructor = 0x6242c773; - public int offset; - public int limit; - public byte[] hash; + public int offset; + public int limit; + public byte[] hash; - public static TL_fileHash TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_fileHash.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_fileHash", constructor)); - } else { - return null; - } - } - TL_fileHash result = new TL_fileHash(); - result.readParams(stream, exception); - return result; - } + public static TL_fileHash TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_fileHash.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_fileHash", constructor)); + } else { + return null; + } + } + TL_fileHash result = new TL_fileHash(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - offset = stream.readInt32(exception); - limit = stream.readInt32(exception); - hash = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + offset = stream.readInt32(exception); + limit = stream.readInt32(exception); + hash = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(limit); - stream.writeByteArray(hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(offset); + stream.writeInt32(limit); + stream.writeByteArray(hash); + } + } - public static class TL_messages_peerDialogs extends TLObject { - public static int constructor = 0x3371c354; + public static class TL_messages_peerDialogs extends TLObject { + public static int constructor = 0x3371c354; - public ArrayList dialogs = new ArrayList<>(); - public ArrayList messages = new ArrayList<>(); - public ArrayList chats = new ArrayList<>(); - public ArrayList users = new ArrayList<>(); - public TL_updates_state state; + public ArrayList dialogs = new ArrayList<>(); + public ArrayList messages = new ArrayList<>(); + public ArrayList chats = new ArrayList<>(); + public ArrayList users = new ArrayList<>(); + public TL_updates_state state; - public static TL_messages_peerDialogs TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_peerDialogs.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_peerDialogs", constructor)); - } else { - return null; - } - } - TL_messages_peerDialogs result = new TL_messages_peerDialogs(); - result.readParams(stream, exception); - return result; - } + public static TL_messages_peerDialogs TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_peerDialogs.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_peerDialogs", constructor)); + } else { + return null; + } + } + TL_messages_peerDialogs result = new TL_messages_peerDialogs(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Dialog object = Dialog.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - dialogs.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Message object = Message.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - messages.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - chats.add(object); - } - magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - users.add(object); - } - state = TL_updates_state.TLdeserialize(stream, stream.readInt32(exception), exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Dialog object = Dialog.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + dialogs.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Message object = Message.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + messages.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + Chat object = Chat.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + chats.add(object); + } + magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + users.add(object); + } + state = TL_updates_state.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = dialogs.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - dialogs.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = messages.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - messages.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = chats.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - chats.get(a).serializeToStream(stream); - } - stream.writeInt32(0x1cb5c415); - count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - state.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = dialogs.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + dialogs.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = messages.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + messages.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = chats.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + chats.get(a).serializeToStream(stream); + } + stream.writeInt32(0x1cb5c415); + count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + state.serializeToStream(stream); + } + } - public static class TL_topPeer extends TLObject { - public static int constructor = 0xedcdc05b; + public static class TL_topPeer extends TLObject { + public static int constructor = 0xedcdc05b; - public Peer peer; - public double rating; + public Peer peer; + public double rating; - public static TL_topPeer TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_topPeer.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_topPeer", constructor)); - } else { - return null; - } - } - TL_topPeer result = new TL_topPeer(); - result.readParams(stream, exception); - return result; - } + public static TL_topPeer TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_topPeer.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_topPeer", constructor)); + } else { + return null; + } + } + TL_topPeer result = new TL_topPeer(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - peer = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - rating = stream.readDouble(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + peer = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + rating = stream.readDouble(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - stream.writeDouble(rating); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + stream.writeDouble(rating); + } + } public static abstract class account_ResetPasswordResult extends TLObject { @@ -43467,108 +43731,111 @@ public class TLRPC { } } - public static class TL_account_authorizations extends TLObject { - public static int constructor = 0x1250abde; + public static class TL_account_authorizations extends TLObject { + public static int constructor = 0x4bff8ea0; - public ArrayList authorizations = new ArrayList<>(); + public int authorization_ttl_days; + public ArrayList authorizations = new ArrayList<>(); - public static TL_account_authorizations TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_account_authorizations.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_account_authorizations", constructor)); - } else { - return null; - } + public static TL_account_authorizations TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_account_authorizations.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_account_authorizations", constructor)); + } else { + return null; + } } TL_account_authorizations result = new TL_account_authorizations(); - result.readParams(stream, exception); - return result; - } + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - TL_authorization object = TL_authorization.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - authorizations.add(object); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + authorization_ttl_days = stream.readInt32(exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + TL_authorization object = TL_authorization.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + authorizations.add(object); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = authorizations.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - authorizations.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(authorization_ttl_days); + stream.writeInt32(0x1cb5c415); + int count = authorizations.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + authorizations.get(a).serializeToStream(stream); + } + } + } - public static class TL_paymentRequestedInfo extends TLObject { - public static int constructor = 0x909c3f94; + public static class TL_paymentRequestedInfo extends TLObject { + public static int constructor = 0x909c3f94; - public int flags; - public String name; - public String phone; - public String email; - public TL_postAddress shipping_address; + public int flags; + public String name; + public String phone; + public String email; + public TL_postAddress shipping_address; - public static TL_paymentRequestedInfo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_paymentRequestedInfo.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_paymentRequestedInfo", constructor)); - } else { - return null; - } - } - TL_paymentRequestedInfo result = new TL_paymentRequestedInfo(); - result.readParams(stream, exception); - return result; - } + public static TL_paymentRequestedInfo TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_paymentRequestedInfo.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_paymentRequestedInfo", constructor)); + } else { + return null; + } + } + TL_paymentRequestedInfo result = new TL_paymentRequestedInfo(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - if ((flags & 1) != 0) { - name = stream.readString(exception); - } - if ((flags & 2) != 0) { - phone = stream.readString(exception); - } - if ((flags & 4) != 0) { - email = stream.readString(exception); - } - if ((flags & 8) != 0) { - shipping_address = TL_postAddress.TLdeserialize(stream, stream.readInt32(exception), exception); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + if ((flags & 1) != 0) { + name = stream.readString(exception); + } + if ((flags & 2) != 0) { + phone = stream.readString(exception); + } + if ((flags & 4) != 0) { + email = stream.readString(exception); + } + if ((flags & 8) != 0) { + shipping_address = TL_postAddress.TLdeserialize(stream, stream.readInt32(exception), exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - stream.writeString(name); - } - if ((flags & 2) != 0) { - stream.writeString(phone); - } - if ((flags & 4) != 0) { - stream.writeString(email); - } - if ((flags & 8) != 0) { - shipping_address.serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + stream.writeString(name); + } + if ((flags & 2) != 0) { + stream.writeString(phone); + } + if ((flags & 4) != 0) { + stream.writeString(email); + } + if ((flags & 8) != 0) { + shipping_address.serializeToStream(stream); + } + } + } public static class TL_auth_sendCode extends TLObject { public static int constructor = 0xa677244f; @@ -43612,65 +43879,65 @@ public class TLRPC { } } - public static class TL_auth_signIn extends TLObject { - public static int constructor = 0xbcd51581; + public static class TL_auth_signIn extends TLObject { + public static int constructor = 0xbcd51581; - public String phone_number; - public String phone_code_hash; - public String phone_code; + public String phone_number; + public String phone_code_hash; + public String phone_code; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return auth_Authorization.TLdeserialize(stream, constructor, exception); + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return auth_Authorization.TLdeserialize(stream, constructor, exception); } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(phone_number); - stream.writeString(phone_code_hash); - stream.writeString(phone_code); - } - } + stream.writeInt32(constructor); + stream.writeString(phone_number); + stream.writeString(phone_code_hash); + stream.writeString(phone_code); + } + } - public static class TL_auth_logOut extends TLObject { - public static int constructor = 0x5717da40; + public static class TL_auth_logOut extends TLObject { + public static int constructor = 0x5717da40; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + stream.writeInt32(constructor); + } + } - public static class TL_auth_resetAuthorizations extends TLObject { - public static int constructor = 0x9fab0d1a; + public static class TL_auth_resetAuthorizations extends TLObject { + public static int constructor = 0x9fab0d1a; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } - - public static class TL_auth_exportAuthorization extends TLObject { - public static int constructor = 0xe5bfffcd; - - public int dc_id; - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_auth_exportedAuthorization.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(dc_id); - } - } + stream.writeInt32(constructor); + } + } + + public static class TL_auth_exportAuthorization extends TLObject { + public static int constructor = 0xe5bfffcd; + + public int dc_id; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_auth_exportedAuthorization.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(dc_id); + } + } public static class TL_auth_importAuthorization extends TLObject { public static int constructor = 0xa57a7dad; @@ -43814,92 +44081,92 @@ public class TLRPC { } } - public static class TL_account_updateNotifySettings extends TLObject { - public static int constructor = 0x84be5b93; + public static class TL_account_updateNotifySettings extends TLObject { + public static int constructor = 0x84be5b93; - public InputNotifyPeer peer; - public TL_inputPeerNotifySettings settings; + public InputNotifyPeer peer; + public TL_inputPeerNotifySettings settings; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - settings.serializeToStream(stream); - } - } - - public static class TL_account_getNotifySettings extends TLObject { - public static int constructor = 0x12b3ad31; - - public InputNotifyPeer peer; - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return PeerNotifySettings.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - } - } + stream.writeInt32(constructor); + peer.serializeToStream(stream); + settings.serializeToStream(stream); + } + } - public static class TL_account_resetNotifySettings extends TLObject { - public static int constructor = 0xdb7e1747; + public static class TL_account_getNotifySettings extends TLObject { + public static int constructor = 0x12b3ad31; + public InputNotifyPeer peer; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return PeerNotifySettings.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + stream.writeInt32(constructor); + peer.serializeToStream(stream); + } + } - public static class TL_account_updateProfile extends TLObject { - public static int constructor = 0x78515775; + public static class TL_account_resetNotifySettings extends TLObject { + public static int constructor = 0xdb7e1747; - public int flags; - public String first_name; - public String last_name; - public String about; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return User.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - stream.writeString(first_name); - } - if ((flags & 2) != 0) { - stream.writeString(last_name); - } - if ((flags & 4) != 0) { - stream.writeString(about); - } - } - } - - public static class TL_account_updateStatus extends TLObject { - public static int constructor = 0x6628562c; - - public boolean offline; - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeBool(offline); - } - } + stream.writeInt32(constructor); + } + } + + public static class TL_account_updateProfile extends TLObject { + public static int constructor = 0x78515775; + + public int flags; + public String first_name; + public String last_name; + public String about; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return User.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + stream.writeString(first_name); + } + if ((flags & 2) != 0) { + stream.writeString(last_name); + } + if ((flags & 4) != 0) { + stream.writeString(about); + } + } + } + + public static class TL_account_updateStatus extends TLObject { + public static int constructor = 0x6628562c; + + public boolean offline; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeBool(offline); + } + } public static class TL_account_getWallPapers extends TLObject { public static int constructor = 0x7967d36; @@ -43916,34 +44183,34 @@ public class TLRPC { } } - public static class TL_users_getUsers extends TLObject { - public static int constructor = 0xd91a548; + public static class TL_users_getUsers extends TLObject { + public static int constructor = 0xd91a548; - public ArrayList id = new ArrayList<>(); + public ArrayList id = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + User object = User.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = id.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - id.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = id.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + id.get(a).serializeToStream(stream); + } + } + } public static class TL_account_reportPeer extends TLObject { public static int constructor = 0xc5ba3d86; @@ -44005,42 +44272,74 @@ public class TLRPC { } } - public static class TL_users_getFullUser extends TLObject { - public static int constructor = 0xca30a5b1; + public static class TL_account_setAuthorizationTTL extends TLObject { + public static int constructor = 0xbf899aa0; - public InputUser id; + public int authorization_ttl_days; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return UserFull.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - id.serializeToStream(stream); - } - } - - public static class TL_contacts_getStatuses extends TLObject { - public static int constructor = 0xc4a353ee; - - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - TL_contactStatus object = TL_contactStatus.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + stream.writeInt32(constructor); + stream.writeInt32(authorization_ttl_days); + } + } + + public static class TL_account_changeAuthorizationSettings extends TLObject { + public static int constructor = 0x432910d5; + + public long hash; + public boolean encrypted_requests_disabled; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(hash); + stream.writeBool(encrypted_requests_disabled); + } + } + + public static class TL_users_getFullUser extends TLObject { + public static int constructor = 0xb60f5918; + + public InputUser id; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_users_userFull.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + id.serializeToStream(stream); + } + } + + public static class TL_contacts_getStatuses extends TLObject { + public static int constructor = 0xc4a353ee; + + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + TL_contactStatus object = TL_contactStatus.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_contacts_getContacts extends TLObject { public static int constructor = 0x5dd69e12; @@ -44057,25 +44356,25 @@ public class TLRPC { } } - public static class TL_contacts_importContacts extends TLObject { - public static int constructor = 0x2c800be5; + public static class TL_contacts_importContacts extends TLObject { + public static int constructor = 0x2c800be5; - public ArrayList contacts = new ArrayList<>(); + public ArrayList contacts = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_contacts_importedContacts.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_contacts_importedContacts.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = contacts.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - contacts.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = contacts.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + contacts.get(a).serializeToStream(stream); + } + } + } public static class TL_contacts_deleteContacts extends TLObject { public static int constructor = 0x96a0e00; @@ -44147,88 +44446,88 @@ public class TLRPC { } } - public static class TL_contacts_getBlocked extends TLObject { + public static class TL_contacts_getBlocked extends TLObject { public static int constructor = 0xf57c350f; - public int offset; - public int limit; + public int offset; + public int limit; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return contacts_Blocked.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return contacts_Blocked.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - stream.writeInt32(offset); - stream.writeInt32(limit); - } - } + stream.writeInt32(offset); + stream.writeInt32(limit); + } + } - public static class TL_contacts_exportCard extends TLObject { - public static int constructor = 0x84e53737; + public static class TL_contacts_exportCard extends TLObject { + public static int constructor = 0x84e53737; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - vector.objects.add(stream.readInt32(exception)); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + vector.objects.add(stream.readInt32(exception)); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_contacts_importCard extends TLObject { - public static int constructor = 0x4fe196fe; + public static class TL_contacts_importCard extends TLObject { + public static int constructor = 0x4fe196fe; - public ArrayList export_card = new ArrayList<>(); + public ArrayList export_card = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return User.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return User.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = export_card.size(); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = export_card.size(); stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt32(export_card.get(a)); - } - } - } + for (int a = 0; a < count; a++) { + stream.writeInt32(export_card.get(a)); + } + } + } - public static class TL_contacts_resetSaved extends TLObject { - public static int constructor = 0x879537f1; + public static class TL_contacts_resetSaved extends TLObject { + public static int constructor = 0x879537f1; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_contacts_toggleTopPeers extends TLObject { - public static int constructor = 0x8514bdda; + public static class TL_contacts_toggleTopPeers extends TLObject { + public static int constructor = 0x8514bdda; - public boolean enabled; + public boolean enabled; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeBool(enabled); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeBool(enabled); + } + } public static class TL_contacts_addContact extends TLObject { public static int constructor = 0xe8f463d0; @@ -44316,25 +44615,25 @@ public class TLRPC { } } - public static class TL_messages_getMessages extends TLObject { - public static int constructor = 0x4222fa74; + public static class TL_messages_getMessages extends TLObject { + public static int constructor = 0x4222fa74; - public ArrayList id = new ArrayList<>(); + public ArrayList id = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return messages_Messages.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return messages_Messages.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = id.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt32(id.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = id.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt32(id.get(a)); + } + } + } public static class TL_messages_getDialogs extends TLObject { public static int constructor = 0xa0f4cb4f; @@ -44441,48 +44740,48 @@ public class TLRPC { } } - public static class TL_help_getTermsOfServiceUpdate extends TLObject { - public static int constructor = 0x2ca51fd1; + public static class TL_help_getTermsOfServiceUpdate extends TLObject { + public static int constructor = 0x2ca51fd1; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return help_TermsOfServiceUpdate.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return help_TermsOfServiceUpdate.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_help_acceptTermsOfService extends TLObject { - public static int constructor = 0xee72f79a; + public static class TL_help_acceptTermsOfService extends TLObject { + public static int constructor = 0xee72f79a; - public TL_dataJSON id; + public TL_dataJSON id; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - id.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + id.serializeToStream(stream); + } + } - public static class TL_help_getPassportConfig extends TLObject { - public static int constructor = 0xc661ad08; + public static class TL_help_getPassportConfig extends TLObject { + public static int constructor = 0xc661ad08; - public int hash; + public int hash; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return help_PassportConfig.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return help_PassportConfig.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(hash); + } + } public static class TL_help_getSupportName extends TLObject { public static int constructor = 0xd360e72c; @@ -44598,22 +44897,22 @@ public class TLRPC { } } - public static class TL_messages_readHistory extends TLObject { - public static int constructor = 0xe306d3a; + public static class TL_messages_readHistory extends TLObject { + public static int constructor = 0xe306d3a; - public InputPeer peer; - public int max_id; + public InputPeer peer; + public int max_id; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_affectedMessages.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_affectedMessages.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - stream.writeInt32(max_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + stream.writeInt32(max_id); + } + } public static class TL_messages_deleteHistory extends TLObject { public static int constructor = 0xb08f922a; @@ -44646,22 +44945,22 @@ public class TLRPC { } } - public static class TL_channels_togglePreHistoryHidden extends TLObject { - public static int constructor = 0xeabbb94c; + public static class TL_channels_togglePreHistoryHidden extends TLObject { + public static int constructor = 0xeabbb94c; - public InputChannel channel; - public boolean enabled; + public InputChannel channel; + public boolean enabled; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Updates.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Updates.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - channel.serializeToStream(stream); - stream.writeBool(enabled); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + channel.serializeToStream(stream); + stream.writeBool(enabled); + } + } public static class TL_channels_getGroupsForDiscussion extends TLObject { public static int constructor = 0xf5dad378; @@ -44802,82 +45101,82 @@ public class TLRPC { } } - public static class TL_messages_deleteMessages extends TLObject { - public static int constructor = 0xe58e95d2; + public static class TL_messages_deleteMessages extends TLObject { + public static int constructor = 0xe58e95d2; - public int flags; - public boolean revoke; - public ArrayList id = new ArrayList<>(); + public int flags; + public boolean revoke; + public ArrayList id = new ArrayList<>(); - public static TL_messages_deleteMessages TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_messages_deleteMessages.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_messages_deleteMessages", constructor)); - } else { - return null; - } - } - TL_messages_deleteMessages result = new TL_messages_deleteMessages(); - result.readParams(stream, exception); - return result; - } + public static TL_messages_deleteMessages TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_messages_deleteMessages.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_messages_deleteMessages", constructor)); + } else { + return null; + } + } + TL_messages_deleteMessages result = new TL_messages_deleteMessages(); + result.readParams(stream, exception); + return result; + } - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_affectedMessages.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_affectedMessages.TLdeserialize(stream, constructor, exception); + } - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - revoke = (flags & 1) != 0; - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - id.add(stream.readInt32(exception)); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + revoke = (flags & 1) != 0; + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + id.add(stream.readInt32(exception)); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = revoke ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeInt32(0x1cb5c415); - int count = id.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt32(id.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = revoke ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeInt32(0x1cb5c415); + int count = id.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt32(id.get(a)); + } + } + } - public static class TL_messages_receivedMessages extends TLObject { - public static int constructor = 0x5a954c0; + public static class TL_messages_receivedMessages extends TLObject { + public static int constructor = 0x5a954c0; public int max_id; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - TL_receivedNotifyMessage object = TL_receivedNotifyMessage.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + TL_receivedNotifyMessage object = TL_receivedNotifyMessage.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(max_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(max_id); + } + } public static class TL_messages_setTyping extends TLObject { public static int constructor = 0x58943ee2; @@ -45061,35 +45360,35 @@ public class TLRPC { } } - public static class TL_messages_reportSpam extends TLObject { - public static int constructor = 0xcf1592db; + public static class TL_messages_reportSpam extends TLObject { + public static int constructor = 0xcf1592db; - public InputPeer peer; + public InputPeer peer; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + } + } - public static class TL_messages_getPeerSettings extends TLObject { - public static int constructor = 0x3672e09c; + public static class TL_messages_getPeerSettings extends TLObject { + public static int constructor = 0xefd9a6a2; - public InputPeer peer; + public InputPeer peer; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_peerSettings.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_peerSettings.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + } + } public static class TL_messages_report extends TLObject { public static int constructor = 0x8953ab4e; @@ -45226,27 +45525,27 @@ public class TLRPC { } } - public static class TL_messages_createChat extends TLObject { - public static int constructor = 0x9cb126e; + public static class TL_messages_createChat extends TLObject { + public static int constructor = 0x9cb126e; - public ArrayList users = new ArrayList<>(); - public String title; + public ArrayList users = new ArrayList<>(); + public String title; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Updates.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Updates.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32(0x1cb5c415); - int count = users.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - users.get(a).serializeToStream(stream); - } - stream.writeString(title); - } - } + int count = users.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + users.get(a).serializeToStream(stream); + } + stream.writeString(title); + } + } public static class TL_messages_getSearchResultsCalendar extends TLObject { public static int constructor = 0x49f0bde9; @@ -45269,68 +45568,68 @@ public class TLRPC { } } - public static class TL_updates_getState extends TLObject { - public static int constructor = 0xedd4882a; + public static class TL_updates_getState extends TLObject { + public static int constructor = 0xedd4882a; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_updates_state.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_updates_state.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + stream.writeInt32(constructor); + } + } - public static class TL_updates_getDifference extends TLObject { - public static int constructor = 0x25939651; + public static class TL_updates_getDifference extends TLObject { + public static int constructor = 0x25939651; - public int flags; - public int pts; - public int pts_total_limit; - public int date; - public int qts; + public int flags; + public int pts; + public int pts_total_limit; + public int date; + public int qts; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return updates_Difference.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return updates_Difference.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeInt32(pts); - if ((flags & 1) != 0) { - stream.writeInt32(pts_total_limit); - } - stream.writeInt32(date); - stream.writeInt32(qts); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeInt32(pts); + if ((flags & 1) != 0) { + stream.writeInt32(pts_total_limit); + } + stream.writeInt32(date); + stream.writeInt32(qts); + } + } - public static class TL_updates_getChannelDifference extends TLObject { - public static int constructor = 0x3173d78; + public static class TL_updates_getChannelDifference extends TLObject { + public static int constructor = 0x3173d78; - public int flags; - public boolean force; - public InputChannel channel; - public ChannelMessagesFilter filter; - public int pts; - public int limit; + public int flags; + public boolean force; + public InputChannel channel; + public ChannelMessagesFilter filter; + public int pts; + public int limit; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return updates_ChannelDifference.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return updates_ChannelDifference.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = force ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - channel.serializeToStream(stream); - filter.serializeToStream(stream); - stream.writeInt32(pts); - stream.writeInt32(limit); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = force ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + channel.serializeToStream(stream); + filter.serializeToStream(stream); + stream.writeInt32(pts); + stream.writeInt32(limit); + } + } public static class TL_photos_updateProfilePhoto extends TLObject { public static int constructor = 0x72d4742c; @@ -45374,30 +45673,30 @@ public class TLRPC { } } - public static class TL_photos_deletePhotos extends TLObject { - public static int constructor = 0x87cf7f2f; + public static class TL_photos_deletePhotos extends TLObject { + public static int constructor = 0x87cf7f2f; - public ArrayList id = new ArrayList<>(); + public ArrayList id = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - vector.objects.add(stream.readInt64(exception)); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + vector.objects.add(stream.readInt64(exception)); + } return vector; - } + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); stream.writeInt32(0x1cb5c415); - int count = id.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { + int count = id.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { id.get(a).serializeToStream(stream); - } - } - } + } + } + } public static class TL_upload_getFile extends TLObject { public static int constructor = 0xb15a9afc; @@ -45424,46 +45723,46 @@ public class TLRPC { } } - public static class TL_help_getConfig extends TLObject { + public static class TL_help_getConfig extends TLObject { public static int constructor = 0xc4f9186b; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_config.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_config.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_help_getNearestDc extends TLObject { - public static int constructor = 0x1fb33026; + public static class TL_help_getNearestDc extends TLObject { + public static int constructor = 0x1fb33026; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_nearestDc.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_nearestDc.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_help_getAppUpdate extends TLObject { - public static int constructor = 0x522d5a7d; + public static class TL_help_getAppUpdate extends TLObject { + public static int constructor = 0x522d5a7d; - public String source; + public String source; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return help_AppUpdate.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return help_AppUpdate.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(source); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(source); + } + } public static class TL_help_getAppConfig extends TLObject { public static int constructor = 0x98914110; @@ -45478,133 +45777,133 @@ public class TLRPC { } } - public static class TL_help_saveAppLog extends TLObject { - public static int constructor = 0x6f02f748; + public static class TL_help_saveAppLog extends TLObject { + public static int constructor = 0x6f02f748; - public ArrayList events = new ArrayList<>(); + public ArrayList events = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = events.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - events.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = events.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + events.get(a).serializeToStream(stream); + } + } + } - public static class TL_help_getInviteText extends TLObject { - public static int constructor = 0x4d392343; + public static class TL_help_getInviteText extends TLObject { + public static int constructor = 0x4d392343; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_help_inviteText.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_help_inviteText.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_photos_getUserPhotos extends TLObject { - public static int constructor = 0x91cd32a8; + public static class TL_photos_getUserPhotos extends TLObject { + public static int constructor = 0x91cd32a8; - public InputUser user_id; - public int offset; - public long max_id; - public int limit; + public InputUser user_id; + public int offset; + public long max_id; + public int limit; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return photos_Photos.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return photos_Photos.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); user_id.serializeToStream(stream); - stream.writeInt32(offset); - stream.writeInt64(max_id); - stream.writeInt32(limit); - } - } + stream.writeInt32(offset); + stream.writeInt64(max_id); + stream.writeInt32(limit); + } + } - public static class TL_messages_forwardMessage extends TLObject { - public static int constructor = 0x33963bf9; + public static class TL_messages_forwardMessage extends TLObject { + public static int constructor = 0x33963bf9; - public InputPeer peer; - public int id; - public long random_id; + public InputPeer peer; + public int id; + public long random_id; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { return Updates.TLdeserialize(stream, constructor, exception); } public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - peer.serializeToStream(stream); - stream.writeInt32(id); - stream.writeInt64(random_id); - } - } + peer.serializeToStream(stream); + stream.writeInt32(id); + stream.writeInt64(random_id); + } + } - public static class TL_messages_getDhConfig extends TLObject { - public static int constructor = 0x26cf8950; + public static class TL_messages_getDhConfig extends TLObject { + public static int constructor = 0x26cf8950; - public int version; - public int random_length; + public int version; + public int random_length; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return messages_DhConfig.TLdeserialize(stream, constructor, exception); + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return messages_DhConfig.TLdeserialize(stream, constructor, exception); } public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - stream.writeInt32(version); - stream.writeInt32(random_length); - } - } + stream.writeInt32(version); + stream.writeInt32(random_length); + } + } - public static class TL_messages_requestEncryption extends TLObject { - public static int constructor = 0xf64daf43; + public static class TL_messages_requestEncryption extends TLObject { + public static int constructor = 0xf64daf43; - public InputUser user_id; - public int random_id; - public byte[] g_a; + public InputUser user_id; + public int random_id; + public byte[] g_a; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return EncryptedChat.TLdeserialize(stream, constructor, exception); + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return EncryptedChat.TLdeserialize(stream, constructor, exception); } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - user_id.serializeToStream(stream); - stream.writeInt32(random_id); - stream.writeByteArray(g_a); - } - } + stream.writeInt32(constructor); + user_id.serializeToStream(stream); + stream.writeInt32(random_id); + stream.writeByteArray(g_a); + } + } - public static class TL_messages_acceptEncryption extends TLObject { - public static int constructor = 0x3dbc0415; + public static class TL_messages_acceptEncryption extends TLObject { + public static int constructor = 0x3dbc0415; - public TL_inputEncryptedChat peer; - public byte[] g_b; - public long key_fingerprint; + public TL_inputEncryptedChat peer; + public byte[] g_b; + public long key_fingerprint; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { return EncryptedChat.TLdeserialize(stream, constructor, exception); - } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - stream.writeByteArray(g_b); - stream.writeInt64(key_fingerprint); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + stream.writeByteArray(g_b); + stream.writeInt64(key_fingerprint); + } + } public static class TL_messages_discardEncryption extends TLObject { public static int constructor = 0xf393aea0; @@ -45625,234 +45924,234 @@ public class TLRPC { } } - public static class TL_messages_setEncryptedTyping extends TLObject { - public static int constructor = 0x791451ed; + public static class TL_messages_setEncryptedTyping extends TLObject { + public static int constructor = 0x791451ed; - public TL_inputEncryptedChat peer; - public boolean typing; + public TL_inputEncryptedChat peer; + public boolean typing; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - stream.writeBool(typing); - } - } - - public static class TL_messages_readEncryptedHistory extends TLObject { - public static int constructor = 0x7f4b690a; - - public TL_inputEncryptedChat peer; - public int max_date; - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - stream.writeInt32(max_date); - } - } - - public static class TL_messages_receivedQueue extends TLObject { - public static int constructor = 0x55a5bb66; - - public int max_qts; - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - vector.objects.add(stream.readInt64(exception)); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(max_qts); - } - } + stream.writeInt32(constructor); + peer.serializeToStream(stream); + stream.writeBool(typing); + } + } - public static class TL_messages_reportEncryptedSpam extends TLObject { - public static int constructor = 0x4b0c8c0f; + public static class TL_messages_readEncryptedHistory extends TLObject { + public static int constructor = 0x7f4b690a; - public TL_inputEncryptedChat peer; + public TL_inputEncryptedChat peer; + public int max_date; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + stream.writeInt32(max_date); + } + } - public static class TL_help_getSupport extends TLObject { + public static class TL_messages_receivedQueue extends TLObject { + public static int constructor = 0x55a5bb66; + + public int max_qts; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + vector.objects.add(stream.readInt64(exception)); + } + return vector; + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(max_qts); + } + } + + public static class TL_messages_reportEncryptedSpam extends TLObject { + public static int constructor = 0x4b0c8c0f; + + public TL_inputEncryptedChat peer; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + } + } + + public static class TL_help_getSupport extends TLObject { public static int constructor = 0x9cdf08cd; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_help_support.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_help_support.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_messages_readMessageContents extends TLObject { - public static int constructor = 0x36a73f77; + public static class TL_messages_readMessageContents extends TLObject { + public static int constructor = 0x36a73f77; - public ArrayList id = new ArrayList<>(); + public ArrayList id = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_affectedMessages.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_affectedMessages.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); stream.writeInt32(0x1cb5c415); - int count = id.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt32(id.get(a)); - } - } - } + int count = id.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt32(id.get(a)); + } + } + } - public static class TL_account_checkUsername extends TLObject { - public static int constructor = 0x2714d86c; + public static class TL_account_checkUsername extends TLObject { + public static int constructor = 0x2714d86c; - public String username; + public String username; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(username); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(username); + } + } - public static class TL_account_updateUsername extends TLObject { - public static int constructor = 0x3e0bdd7c; + public static class TL_account_updateUsername extends TLObject { + public static int constructor = 0x3e0bdd7c; - public String username; + public String username; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return User.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return User.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(username); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(username); + } + } - public static class TL_contacts_search extends TLObject { - public static int constructor = 0x11f812d8; + public static class TL_contacts_search extends TLObject { + public static int constructor = 0x11f812d8; - public String q; - public int limit; + public String q; + public int limit; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_contacts_found.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_contacts_found.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(q); - stream.writeInt32(limit); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(q); + stream.writeInt32(limit); + } + } - public static class TL_account_getPrivacy extends TLObject { + public static class TL_account_getPrivacy extends TLObject { public static int constructor = 0xdadbc950; - public InputPrivacyKey key; + public InputPrivacyKey key; public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_account_privacyRules.TLdeserialize(stream, constructor, exception); - } + return TL_account_privacyRules.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - key.serializeToStream(stream); - } - } + stream.writeInt32(constructor); + key.serializeToStream(stream); + } + } - public static class TL_account_setPrivacy extends TLObject { - public static int constructor = 0xc9f81ce8; + public static class TL_account_setPrivacy extends TLObject { + public static int constructor = 0xc9f81ce8; - public InputPrivacyKey key; - public ArrayList rules = new ArrayList<>(); + public InputPrivacyKey key; + public ArrayList rules = new ArrayList<>(); public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_account_privacyRules.TLdeserialize(stream, constructor, exception); - } + return TL_account_privacyRules.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - key.serializeToStream(stream); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + key.serializeToStream(stream); stream.writeInt32(0x1cb5c415); - int count = rules.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { + int count = rules.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { rules.get(a).serializeToStream(stream); - } - } - } + } + } + } public static class TL_account_deleteAccount extends TLObject { - public static int constructor = 0x418d4e0b; + public static int constructor = 0x418d4e0b; - public String reason; + public String reason; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(reason); - } - } - - public static class TL_account_getAccountTTL extends TLObject { - public static int constructor = 0x8fc711d; - - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_accountDaysTTL.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + stream.writeInt32(constructor); + stream.writeString(reason); + } + } - public static class TL_account_setAccountTTL extends TLObject { - public static int constructor = 0x2442485e; + public static class TL_account_getAccountTTL extends TLObject { + public static int constructor = 0x8fc711d; - public TL_accountDaysTTL ttl; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_accountDaysTTL.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - ttl.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } + + public static class TL_account_setAccountTTL extends TLObject { + public static int constructor = 0x2442485e; + + public TL_accountDaysTTL ttl; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + ttl.serializeToStream(stream); + } + } public static class TL_contacts_resolveUsername extends TLObject { public static int constructor = 0xf93ccba3; @@ -45906,22 +46205,22 @@ public class TLRPC { } } - public static class TL_contacts_resetTopPeerRating extends TLObject { - public static int constructor = 0x1ae373ac; + public static class TL_contacts_resetTopPeerRating extends TLObject { + public static int constructor = 0x1ae373ac; - public TopPeerCategory category; - public InputPeer peer; + public TopPeerCategory category; + public InputPeer peer; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - category.serializeToStream(stream); - peer.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + category.serializeToStream(stream); + peer.serializeToStream(stream); + } + } public static class TL_account_sendChangePhoneCode extends TLObject { public static int constructor = 0x82574ae5; @@ -45940,65 +46239,65 @@ public class TLRPC { } } - public static class TL_account_changePhone extends TLObject { + public static class TL_account_changePhone extends TLObject { public static int constructor = 0x70c32edb; - public String phone_number; - public String phone_code_hash; - public String phone_code; + public String phone_number; + public String phone_code_hash; + public String phone_code; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return User.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return User.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(phone_number); - stream.writeString(phone_code_hash); - stream.writeString(phone_code); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(phone_number); + stream.writeString(phone_code_hash); + stream.writeString(phone_code); + } + } - public static class TL_account_getWebAuthorizations extends TLObject { - public static int constructor = 0x182e6d6f; + public static class TL_account_getWebAuthorizations extends TLObject { + public static int constructor = 0x182e6d6f; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_account_webAuthorizations.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_account_webAuthorizations.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_account_resetWebAuthorization extends TLObject { - public static int constructor = 0x2d01b9ef; + public static class TL_account_resetWebAuthorization extends TLObject { + public static int constructor = 0x2d01b9ef; - public long hash; + public long hash; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(hash); + } + } - public static class TL_account_resetWebAuthorizations extends TLObject { - public static int constructor = 0x682d2594; + public static class TL_account_resetWebAuthorizations extends TLObject { + public static int constructor = 0x682d2594; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_account_getMultiWallPapers extends TLObject { public static int constructor = 0x65ad71dc; @@ -46078,93 +46377,93 @@ public class TLRPC { } } - public static class TL_account_getAllSecureValues extends TLObject { - public static int constructor = 0xb288bc7d; + public static class TL_account_getAllSecureValues extends TLObject { + public static int constructor = 0xb288bc7d; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - TL_secureValue object = TL_secureValue.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + TL_secureValue object = TL_secureValue.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_account_getSecureValue extends TLObject { - public static int constructor = 0x73665bc2; + public static class TL_account_getSecureValue extends TLObject { + public static int constructor = 0x73665bc2; - public ArrayList types = new ArrayList<>(); + public ArrayList types = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - TL_secureValue object = TL_secureValue.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + TL_secureValue object = TL_secureValue.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = types.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - types.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = types.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + types.get(a).serializeToStream(stream); + } + } + } - public static class TL_account_saveSecureValue extends TLObject { - public static int constructor = 0x899fe31d; + public static class TL_account_saveSecureValue extends TLObject { + public static int constructor = 0x899fe31d; - public TL_inputSecureValue value; - public long secure_secret_id; + public TL_inputSecureValue value; + public long secure_secret_id; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_secureValue.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_secureValue.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - value.serializeToStream(stream); - stream.writeInt64(secure_secret_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + value.serializeToStream(stream); + stream.writeInt64(secure_secret_id); + } + } - public static class TL_account_deleteSecureValue extends TLObject { - public static int constructor = 0xb880bc4b; + public static class TL_account_deleteSecureValue extends TLObject { + public static int constructor = 0xb880bc4b; - public ArrayList types = new ArrayList<>(); + public ArrayList types = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = types.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - types.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = types.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + types.get(a).serializeToStream(stream); + } + } + } public static class TL_account_getAuthorizationForm extends TLObject { public static int constructor = 0xa929597a; @@ -46230,56 +46529,56 @@ public class TLRPC { } } - public static class TL_account_verifyPhone extends TLObject { - public static int constructor = 0x4dd3a7f6; + public static class TL_account_verifyPhone extends TLObject { + public static int constructor = 0x4dd3a7f6; - public String phone_number; - public String phone_code_hash; - public String phone_code; + public String phone_number; + public String phone_code_hash; + public String phone_code; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(phone_number); - stream.writeString(phone_code_hash); - stream.writeString(phone_code); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(phone_number); + stream.writeString(phone_code_hash); + stream.writeString(phone_code); + } + } - public static class TL_account_sendVerifyEmailCode extends TLObject { - public static int constructor = 0x7011509f; + public static class TL_account_sendVerifyEmailCode extends TLObject { + public static int constructor = 0x7011509f; - public String email; + public String email; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_account_sentEmailCode.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_account_sentEmailCode.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(email); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(email); + } + } - public static class TL_account_verifyEmail extends TLObject { - public static int constructor = 0xecba39db; + public static class TL_account_verifyEmail extends TLObject { + public static int constructor = 0xecba39db; - public String email; - public String code; + public String email; + public String code; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(email); - stream.writeString(code); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(email); + stream.writeString(code); + } + } public static class TL_account_confirmPasswordEmail extends TLObject { public static int constructor = 0x8fdf1920; @@ -46653,87 +46952,87 @@ public class TLRPC { } } - public static class TL_account_updateDeviceLocked extends TLObject { - public static int constructor = 0x38df3532; + public static class TL_account_updateDeviceLocked extends TLObject { + public static int constructor = 0x38df3532; - public int period; + public int period; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(period); - } - } + stream.writeInt32(constructor); + stream.writeInt32(period); + } + } - public static class TL_messages_getWebPagePreview extends TLObject { - public static int constructor = 0x8b68b0cc; + public static class TL_messages_getWebPagePreview extends TLObject { + public static int constructor = 0x8b68b0cc; - public int flags; - public String message; - public ArrayList entities = new ArrayList<>(); + public int flags; + public String message; + public ArrayList entities = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return MessageMedia.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - stream.writeString(message); - if ((flags & 8) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - } - } - - public static class TL_account_getAuthorizations extends TLObject { - public static int constructor = 0xe320c158; - - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_account_authorizations.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return MessageMedia.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + stream.writeInt32(constructor); + stream.writeInt32(flags); + stream.writeString(message); + if ((flags & 8) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + } + } - public static class TL_account_resetAuthorization extends TLObject { - public static int constructor = 0xdf77f3bc; + public static class TL_account_getAuthorizations extends TLObject { + public static int constructor = 0xe320c158; - public long hash; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_account_authorizations.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt64(hash); - } - } + stream.writeInt32(constructor); + } + } - public static class TL_account_getPassword extends TLObject { + public static class TL_account_resetAuthorization extends TLObject { + public static int constructor = 0xdf77f3bc; + + public long hash; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt64(hash); + } + } + + public static class TL_account_getPassword extends TLObject { public static int constructor = 0x548a30f5; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_account_password.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_account_password.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + stream.writeInt32(constructor); + } + } public static class TL_account_getPasswordSettings extends TLObject { public static int constructor = 0x9cd4eaf9; @@ -46833,16 +47132,16 @@ public class TLRPC { } } - public static class TL_auth_requestPasswordRecovery extends TLObject { - public static int constructor = 0xd897bc66; + public static class TL_auth_requestPasswordRecovery extends TLObject { + public static int constructor = 0xd897bc66; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_auth_passwordRecovery.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_auth_passwordRecovery.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); + stream.writeInt32(constructor); } } @@ -46867,39 +47166,39 @@ public class TLRPC { } } - public static class TL_auth_resendCode extends TLObject { - public static int constructor = 0x3ef1a9bf; + public static class TL_auth_resendCode extends TLObject { + public static int constructor = 0x3ef1a9bf; - public String phone_number; - public String phone_code_hash; + public String phone_number; + public String phone_code_hash; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_auth_sentCode.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_auth_sentCode.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(phone_number); - stream.writeString(phone_code_hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(phone_number); + stream.writeString(phone_code_hash); + } + } - public static class TL_auth_cancelCode extends TLObject { - public static int constructor = 0x1f040578; + public static class TL_auth_cancelCode extends TLObject { + public static int constructor = 0x1f040578; - public String phone_number; - public String phone_code_hash; + public String phone_number; + public String phone_code_hash; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(phone_number); - stream.writeString(phone_code_hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(phone_number); + stream.writeString(phone_code_hash); + } + } public static class TL_messages_exportChatInvite extends TLObject { public static int constructor = 0xa02ce5d5; @@ -46934,103 +47233,103 @@ public class TLRPC { } } - public static class TL_messages_checkChatInvite extends TLObject { - public static int constructor = 0x3eadb1bb; + public static class TL_messages_checkChatInvite extends TLObject { + public static int constructor = 0x3eadb1bb; - public String hash; + public String hash; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return ChatInvite.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(hash); - } - } - - public static class TL_messages_importChatInvite extends TLObject { - public static int constructor = 0x6c50051c; - - public String hash; - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Updates.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(hash); - } - } - - public static class TL_messages_getStickerSet extends TLObject { - public static int constructor = 0x2619a90e; - - public InputStickerSet stickerset; - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_stickerSet.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stickerset.serializeToStream(stream); - } - } - - public static class TL_messages_installStickerSet extends TLObject { - public static int constructor = 0xc78fe460; - - public InputStickerSet stickerset; - public boolean archived; - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return messages_StickerSetInstallResult.TLdeserialize(stream, constructor, exception); - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stickerset.serializeToStream(stream); - stream.writeBool(archived); - } - } - - public static class TL_messages_uninstallStickerSet extends TLObject { - public static int constructor = 0xf96e55de; - - public InputStickerSet stickerset; - - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return ChatInvite.TLdeserialize(stream, constructor, exception); + } public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stickerset.serializeToStream(stream); - } - } + stream.writeInt32(constructor); + stream.writeString(hash); + } + } - public static class TL_messages_startBot extends TLObject { - public static int constructor = 0xe6df7378; + public static class TL_messages_importChatInvite extends TLObject { + public static int constructor = 0x6c50051c; - public InputUser bot; - public InputPeer peer; - public long random_id; - public String start_param; + public String hash; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Updates.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Updates.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - bot.serializeToStream(stream); - peer.serializeToStream(stream); - stream.writeInt64(random_id); - stream.writeString(start_param); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(hash); + } + } + + public static class TL_messages_getStickerSet extends TLObject { + public static int constructor = 0x2619a90e; + + public InputStickerSet stickerset; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_stickerSet.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stickerset.serializeToStream(stream); + } + } + + public static class TL_messages_installStickerSet extends TLObject { + public static int constructor = 0xc78fe460; + + public InputStickerSet stickerset; + public boolean archived; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return messages_StickerSetInstallResult.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stickerset.serializeToStream(stream); + stream.writeBool(archived); + } + } + + public static class TL_messages_uninstallStickerSet extends TLObject { + public static int constructor = 0xf96e55de; + + public InputStickerSet stickerset; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stickerset.serializeToStream(stream); + } + } + + public static class TL_messages_startBot extends TLObject { + public static int constructor = 0xe6df7378; + + public InputUser bot; + public InputPeer peer; + public long random_id; + public String start_param; + + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Updates.TLdeserialize(stream, constructor, exception); + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + bot.serializeToStream(stream); + peer.serializeToStream(stream); + stream.writeInt64(random_id); + stream.writeString(start_param); + } + } public static class TL_messages_getMessagesViews extends TLObject { public static int constructor = 0x5784d3e1; @@ -47071,49 +47370,49 @@ public class TLRPC { } } - public static class TL_messages_saveGif extends TLObject { - public static int constructor = 0x327a30cb; + public static class TL_messages_saveGif extends TLObject { + public static int constructor = 0x327a30cb; - public InputDocument id; - public boolean unsave; + public InputDocument id; + public boolean unsave; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - id.serializeToStream(stream); - stream.writeBool(unsave); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + id.serializeToStream(stream); + stream.writeBool(unsave); + } + } - public static class TL_messages_getInlineBotResults extends TLObject { - public static int constructor = 0x514e999d; + public static class TL_messages_getInlineBotResults extends TLObject { + public static int constructor = 0x514e999d; - public int flags; - public InputUser bot; - public InputPeer peer; - public InputGeoPoint geo_point; - public String query; - public String offset; + public int flags; + public InputUser bot; + public InputPeer peer; + public InputGeoPoint geo_point; + public String query; + public String offset; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return messages_BotResults.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return messages_BotResults.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - bot.serializeToStream(stream); - peer.serializeToStream(stream); - if ((flags & 1) != 0) { - geo_point.serializeToStream(stream); - } - stream.writeString(query); - stream.writeString(offset); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + bot.serializeToStream(stream); + peer.serializeToStream(stream); + if ((flags & 1) != 0) { + geo_point.serializeToStream(stream); + } + stream.writeString(query); + stream.writeString(offset); + } + } public static class TL_messages_sendInlineBotResult extends TLObject { public static int constructor = 0x7aa11297; @@ -47158,22 +47457,22 @@ public class TLRPC { } } - public static class TL_messages_getMessageEditData extends TLObject { - public static int constructor = 0xfda68d36; + public static class TL_messages_getMessageEditData extends TLObject { + public static int constructor = 0xfda68d36; - public InputPeer peer; - public int id; + public InputPeer peer; + public int id; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_messageEditData.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_messageEditData.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - stream.writeInt32(id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + stream.writeInt32(id); + } + } public static class TL_messages_editMessage extends TLObject { public static int constructor = 0x48f71778; @@ -47250,101 +47549,101 @@ public class TLRPC { } } - public static class TL_messages_setBotCallbackAnswer extends TLObject { - public static int constructor = 0xd58f130a; + public static class TL_messages_setBotCallbackAnswer extends TLObject { + public static int constructor = 0xd58f130a; - public int flags; - public boolean alert; - public long query_id; - public String message; - public String url; - public int cache_time; + public int flags; + public boolean alert; + public long query_id; + public String message; + public String url; + public int cache_time; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = alert ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - stream.writeInt64(query_id); - if ((flags & 1) != 0) { - stream.writeString(message); - } - if ((flags & 4) != 0) { - stream.writeString(url); - } - stream.writeInt32(cache_time); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = alert ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + stream.writeInt64(query_id); + if ((flags & 1) != 0) { + stream.writeString(message); + } + if ((flags & 4) != 0) { + stream.writeString(url); + } + stream.writeInt32(cache_time); + } + } - public static class TL_messages_getPeerDialogs extends TLObject { - public static int constructor = 0xe470bcfd; + public static class TL_messages_getPeerDialogs extends TLObject { + public static int constructor = 0xe470bcfd; - public ArrayList peers = new ArrayList<>(); + public ArrayList peers = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_peerDialogs.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_peerDialogs.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = peers.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - peers.get(a).serializeToStream(stream); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = peers.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + peers.get(a).serializeToStream(stream); + } + } + } - public static class TL_messages_saveDraft extends TLObject { - public static int constructor = 0xbc39e14b; + public static class TL_messages_saveDraft extends TLObject { + public static int constructor = 0xbc39e14b; - public int flags; - public boolean no_webpage; - public int reply_to_msg_id; - public InputPeer peer; - public String message; - public ArrayList entities = new ArrayList<>(); + public int flags; + public boolean no_webpage; + public int reply_to_msg_id; + public InputPeer peer; + public String message; + public ArrayList entities = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = no_webpage ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - if ((flags & 1) != 0) { - stream.writeInt32(reply_to_msg_id); - } - peer.serializeToStream(stream); - stream.writeString(message); - if ((flags & 8) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = no_webpage ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + if ((flags & 1) != 0) { + stream.writeInt32(reply_to_msg_id); + } + peer.serializeToStream(stream); + stream.writeString(message); + if ((flags & 8) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + } + } - public static class TL_messages_getAllDrafts extends TLObject { - public static int constructor = 0x6a3f8d65; + public static class TL_messages_getAllDrafts extends TLObject { + public static int constructor = 0x6a3f8d65; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Updates.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Updates.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messages_getFeaturedStickers extends TLObject { public static int constructor = 0x64780b14; @@ -47361,25 +47660,25 @@ public class TLRPC { } } - public static class TL_messages_readFeaturedStickers extends TLObject { - public static int constructor = 0x5b118126; + public static class TL_messages_readFeaturedStickers extends TLObject { + public static int constructor = 0x5b118126; - public ArrayList id = new ArrayList<>(); + public ArrayList id = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(0x1cb5c415); - int count = id.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt64(id.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(0x1cb5c415); + int count = id.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt64(id.get(a)); + } + } + } public static class TL_messages_getRecentStickers extends TLObject { public static int constructor = 0x9da9403b; @@ -47400,116 +47699,116 @@ public class TLRPC { } } - public static class TL_messages_saveRecentSticker extends TLObject { - public static int constructor = 0x392718f8; + public static class TL_messages_saveRecentSticker extends TLObject { + public static int constructor = 0x392718f8; - public int flags; - public boolean attached; - public InputDocument id; - public boolean unsave; + public int flags; + public boolean attached; + public InputDocument id; + public boolean unsave; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = attached ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - id.serializeToStream(stream); - stream.writeBool(unsave); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = attached ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + id.serializeToStream(stream); + stream.writeBool(unsave); + } + } - public static class TL_messages_clearRecentStickers extends TLObject { - public static int constructor = 0x8999602d; + public static class TL_messages_clearRecentStickers extends TLObject { + public static int constructor = 0x8999602d; - public int flags; - public boolean attached; + public int flags; + public boolean attached; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = attached ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = attached ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + } + } - public static class TL_messages_getArchivedStickers extends TLObject { - public static int constructor = 0x57f17692; + public static class TL_messages_getArchivedStickers extends TLObject { + public static int constructor = 0x57f17692; - public int flags; - public boolean masks; - public long offset_id; - public int limit; + public int flags; + public boolean masks; + public long offset_id; + public int limit; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_archivedStickers.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_archivedStickers.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = masks ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeInt64(offset_id); - stream.writeInt32(limit); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = masks ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeInt64(offset_id); + stream.writeInt32(limit); + } + } - public static class TL_messages_setGameScore extends TLObject { - public static int constructor = 0x8ef8ecc0; + public static class TL_messages_setGameScore extends TLObject { + public static int constructor = 0x8ef8ecc0; - public int flags; - public boolean edit_message; - public boolean force; - public InputPeer peer; - public int id; - public InputUser user_id; - public int score; + public int flags; + public boolean edit_message; + public boolean force; + public InputPeer peer; + public int id; + public InputUser user_id; + public int score; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Updates.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Updates.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = edit_message ? (flags | 1) : (flags &~ 1); - flags = force ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - peer.serializeToStream(stream); - stream.writeInt32(id); - user_id.serializeToStream(stream); - stream.writeInt32(score); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = edit_message ? (flags | 1) : (flags &~ 1); + flags = force ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + peer.serializeToStream(stream); + stream.writeInt32(id); + user_id.serializeToStream(stream); + stream.writeInt32(score); + } + } - public static class TL_messages_setInlineGameScore extends TLObject { - public static int constructor = 0x15ad9f64; + public static class TL_messages_setInlineGameScore extends TLObject { + public static int constructor = 0x15ad9f64; - public int flags; - public boolean edit_message; - public boolean force; - public TL_inputBotInlineMessageID id; - public InputUser user_id; - public int score; + public int flags; + public boolean edit_message; + public boolean force; + public TL_inputBotInlineMessageID id; + public InputUser user_id; + public int score; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = edit_message ? (flags | 1) : (flags &~ 1); - flags = force ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - id.serializeToStream(stream); - user_id.serializeToStream(stream); - stream.writeInt32(score); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = edit_message ? (flags | 1) : (flags &~ 1); + flags = force ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + id.serializeToStream(stream); + user_id.serializeToStream(stream); + stream.writeInt32(score); + } + } public static class TL_messages_getMaskStickers extends TLObject { public static int constructor = 0x640f82b8; @@ -47526,65 +47825,65 @@ public class TLRPC { } } - public static class TL_messages_getGameHighScores extends TLObject { - public static int constructor = 0xe822649d; + public static class TL_messages_getGameHighScores extends TLObject { + public static int constructor = 0xe822649d; - public InputPeer peer; - public int id; - public InputUser user_id; + public InputPeer peer; + public int id; + public InputUser user_id; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_highScores.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_highScores.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - stream.writeInt32(id); - user_id.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + stream.writeInt32(id); + user_id.serializeToStream(stream); + } + } - public static class TL_messages_getInlineGameHighScores extends TLObject { - public static int constructor = 0xf635e1b; + public static class TL_messages_getInlineGameHighScores extends TLObject { + public static int constructor = 0xf635e1b; - public TL_inputBotInlineMessageID id; - public InputUser user_id; + public TL_inputBotInlineMessageID id; + public InputUser user_id; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_highScores.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_highScores.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - id.serializeToStream(stream); - user_id.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + id.serializeToStream(stream); + user_id.serializeToStream(stream); + } + } - public static class TL_messages_getAttachedStickers extends TLObject { - public static int constructor = 0xcc5b67cc; + public static class TL_messages_getAttachedStickers extends TLObject { + public static int constructor = 0xcc5b67cc; - public InputStickeredMedia media; + public InputStickeredMedia media; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - StickerSetCovered object = StickerSetCovered.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + StickerSetCovered object = StickerSetCovered.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - media.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + media.serializeToStream(stream); + } + } public static class TL_messages_getCommonChats extends TLObject { public static int constructor = 0xe40ca104; @@ -47625,41 +47924,41 @@ public class TLRPC { } } - public static class TL_messages_getWebPage extends TLObject { - public static int constructor = 0x32ca8f91; + public static class TL_messages_getWebPage extends TLObject { + public static int constructor = 0x32ca8f91; - public String url; - public int hash; + public String url; + public int hash; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return WebPage.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return WebPage.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(url); - stream.writeInt32(hash); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(url); + stream.writeInt32(hash); + } + } - public static class TL_messages_toggleDialogPin extends TLObject { - public static int constructor = 0xa731e257; + public static class TL_messages_toggleDialogPin extends TLObject { + public static int constructor = 0xa731e257; - public int flags; - public boolean pinned; - public InputDialogPeer peer; + public int flags; + public boolean pinned; + public InputDialogPeer peer; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = pinned ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - peer.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = pinned ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + peer.serializeToStream(stream); + } + } public static class TL_messages_reorderPinnedDialogs extends TLObject { public static int constructor = 0x3b1adf37; @@ -47702,41 +48001,41 @@ public class TLRPC { } } - public static class TL_messages_uploadMedia extends TLObject { - public static int constructor = 0x519bc2b1; + public static class TL_messages_uploadMedia extends TLObject { + public static int constructor = 0x519bc2b1; - public InputPeer peer; - public InputMedia media; + public InputPeer peer; + public InputMedia media; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return MessageMedia.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return MessageMedia.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - media.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + media.serializeToStream(stream); + } + } - public static class TL_messages_sendScreenshotNotification extends TLObject { - public static int constructor = 0xc97df020; + public static class TL_messages_sendScreenshotNotification extends TLObject { + public static int constructor = 0xc97df020; - public InputPeer peer; - public int reply_to_msg_id; - public long random_id; + public InputPeer peer; + public int reply_to_msg_id; + public long random_id; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Updates.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Updates.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - stream.writeInt32(reply_to_msg_id); - stream.writeInt64(random_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + stream.writeInt32(reply_to_msg_id); + stream.writeInt64(random_id); + } + } public static class TL_messages_getFavedStickers extends TLObject { public static int constructor = 0x4f1aaa9; @@ -47753,62 +48052,62 @@ public class TLRPC { } } - public static class TL_messages_faveSticker extends TLObject { - public static int constructor = 0xb9ffc55b; + public static class TL_messages_faveSticker extends TLObject { + public static int constructor = 0xb9ffc55b; - public InputDocument id; - public boolean unfave; + public InputDocument id; + public boolean unfave; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - id.serializeToStream(stream); - stream.writeBool(unfave); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + id.serializeToStream(stream); + stream.writeBool(unfave); + } + } - public static class TL_messages_getUnreadMentions extends TLObject { - public static int constructor = 0x46578472; + public static class TL_messages_getUnreadMentions extends TLObject { + public static int constructor = 0x46578472; - public InputPeer peer; - public int offset_id; - public int add_offset; - public int limit; - public int max_id; - public int min_id; + public InputPeer peer; + public int offset_id; + public int add_offset; + public int limit; + public int max_id; + public int min_id; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return messages_Messages.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return messages_Messages.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - stream.writeInt32(offset_id); - stream.writeInt32(add_offset); - stream.writeInt32(limit); - stream.writeInt32(max_id); - stream.writeInt32(min_id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + stream.writeInt32(offset_id); + stream.writeInt32(add_offset); + stream.writeInt32(limit); + stream.writeInt32(max_id); + stream.writeInt32(min_id); + } + } - public static class TL_messages_readMentions extends TLObject { - public static int constructor = 0xf0189d3; + public static class TL_messages_readMentions extends TLObject { + public static int constructor = 0xf0189d3; - public InputPeer peer; + public InputPeer peer; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_affectedHistory.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_affectedHistory.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + } + } public static class TL_messages_getRecentLocations extends TLObject { public static int constructor = 0x702a40e0; @@ -47871,18 +48170,18 @@ public class TLRPC { } } - public static class TL_messages_clearAllDrafts extends TLObject { - public static int constructor = 0x7e58ee9c; + public static class TL_messages_clearAllDrafts extends TLObject { + public static int constructor = 0x7e58ee9c; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_messages_updatePinnedMessage extends TLObject { public static int constructor = 0xd2aaf7ec; @@ -49139,20 +49438,20 @@ public class TLRPC { } } - public static class TL_help_getAppChangelog extends TLObject { - public static int constructor = 0x9010ef6f; + public static class TL_help_getAppChangelog extends TLObject { + public static int constructor = 0x9010ef6f; - public String prev_app_version; + public String prev_app_version; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Updates.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Updates.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(prev_app_version); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(prev_app_version); + } + } public static class TL_messages_toggleStickerSets extends TLObject { public static int constructor = 0xb5052fea; @@ -49182,22 +49481,22 @@ public class TLRPC { } } - public static class TL_messages_uploadEncryptedFile extends TLObject { - public static int constructor = 0x5057c497; + public static class TL_messages_uploadEncryptedFile extends TLObject { + public static int constructor = 0x5057c497; - public TL_inputEncryptedChat peer; - public InputEncryptedFile file; + public TL_inputEncryptedChat peer; + public InputEncryptedFile file; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return EncryptedFile.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return EncryptedFile.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - peer.serializeToStream(stream); - file.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + peer.serializeToStream(stream); + file.serializeToStream(stream); + } + } public static class TL_messages_searchStickerSets extends TLObject { public static int constructor = 0x35705b8a; @@ -49220,24 +49519,24 @@ public class TLRPC { } } - public static class TL_messages_markDialogUnread extends TLObject { - public static int constructor = 0xc286d98f; + public static class TL_messages_markDialogUnread extends TLObject { + public static int constructor = 0xc286d98f; - public int flags; - public boolean unread; - public InputDialogPeer peer; + public int flags; + public boolean unread; + public InputDialogPeer peer; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - peer.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = unread ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + peer.serializeToStream(stream); + } + } public static class TL_messages_getDialogUnreadMarks extends TLObject { public static int constructor = 0x22e24e22; @@ -49261,97 +49560,97 @@ public class TLRPC { } } - public static class TL_help_setBotUpdatesStatus extends TLObject { - public static int constructor = 0xec22cfcd; + public static class TL_help_setBotUpdatesStatus extends TLObject { + public static int constructor = 0xec22cfcd; - public int pending_updates_count; - public String message; + public int pending_updates_count; + public String message; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(pending_updates_count); - stream.writeString(message); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(pending_updates_count); + stream.writeString(message); + } + } - public static class TL_messages_reorderStickerSets extends TLObject { - public static int constructor = 0x78337739; + public static class TL_messages_reorderStickerSets extends TLObject { + public static int constructor = 0x78337739; - public int flags; - public boolean masks; - public ArrayList order = new ArrayList<>(); + public int flags; + public boolean masks; + public ArrayList order = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = masks ? (flags | 1) : (flags &~ 1); - stream.writeInt32(flags); - stream.writeInt32(0x1cb5c415); - int count = order.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt64(order.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = masks ? (flags | 1) : (flags &~ 1); + stream.writeInt32(flags); + stream.writeInt32(0x1cb5c415); + int count = order.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt64(order.get(a)); + } + } + } - public static class TL_messages_getDocumentByHash extends TLObject { - public static int constructor = 0x338e2464; + public static class TL_messages_getDocumentByHash extends TLObject { + public static int constructor = 0x338e2464; - public byte[] sha256; - public int size; - public String mime_type; + public byte[] sha256; + public int size; + public String mime_type; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Document.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Document.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(sha256); - stream.writeInt32(size); - stream.writeString(mime_type); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(sha256); + stream.writeInt32(size); + stream.writeString(mime_type); + } + } - public static class TL_help_getRecentMeUrls extends TLObject { - public static int constructor = 0x3dc0f114; + public static class TL_help_getRecentMeUrls extends TLObject { + public static int constructor = 0x3dc0f114; - public String referer; + public String referer; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_help_recentMeUrls.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_help_recentMeUrls.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(referer); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(referer); + } + } - public static class TL_help_getDeepLinkInfo extends TLObject { - public static int constructor = 0x3fedc75f; + public static class TL_help_getDeepLinkInfo extends TLObject { + public static int constructor = 0x3fedc75f; - public String path; + public String path; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return help_DeepLinkInfo.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return help_DeepLinkInfo.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(path); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(path); + } + } - public static class TL_channels_readHistory extends TLObject { + public static class TL_channels_readHistory extends TLObject { public static int constructor = 0xcc104937; public InputChannel channel; @@ -49368,96 +49667,96 @@ public class TLRPC { } } - public static class TL_channels_deleteMessages extends TLObject { - public static int constructor = 0x84c1fd4e; + public static class TL_channels_deleteMessages extends TLObject { + public static int constructor = 0x84c1fd4e; - public InputChannel channel; - public ArrayList id = new ArrayList<>(); + public InputChannel channel; + public ArrayList id = new ArrayList<>(); - public static TL_channels_deleteMessages TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_channels_deleteMessages.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_channels_deleteMessages", constructor)); - } else { - return null; - } - } - TL_channels_deleteMessages result = new TL_channels_deleteMessages(); - result.readParams(stream, exception); - return result; - } + public static TL_channels_deleteMessages TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_channels_deleteMessages.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_channels_deleteMessages", constructor)); + } else { + return null; + } + } + TL_channels_deleteMessages result = new TL_channels_deleteMessages(); + result.readParams(stream, exception); + return result; + } - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_affectedMessages.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_affectedMessages.TLdeserialize(stream, constructor, exception); + } - public void readParams(AbstractSerializedData stream, boolean exception) { - channel = InputChannel.TLdeserialize(stream, stream.readInt32(exception), exception); - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - id.add(stream.readInt32(exception)); - } - } + public void readParams(AbstractSerializedData stream, boolean exception) { + channel = InputChannel.TLdeserialize(stream, stream.readInt32(exception), exception); + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + id.add(stream.readInt32(exception)); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - channel.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = id.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt32(id.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + channel.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = id.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt32(id.get(a)); + } + } + } - public static class TL_channels_deleteUserHistory extends TLObject { - public static int constructor = 0xd10dd71b; + public static class TL_channels_deleteParticipantHistory extends TLObject { + public static int constructor = 0x367544db; - public InputChannel channel; - public InputUser user_id; + public InputChannel channel; + public InputPeer participant; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_messages_affectedHistory.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_messages_affectedHistory.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - channel.serializeToStream(stream); - user_id.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + channel.serializeToStream(stream); + participant.serializeToStream(stream); + } + } - public static class TL_channels_reportSpam extends TLObject { - public static int constructor = 0xfe087810; + public static class TL_channels_reportSpam extends TLObject { + public static int constructor = 0xfe087810; - public InputChannel channel; - public InputUser user_id; - public ArrayList id = new ArrayList<>(); + public InputChannel channel; + public InputUser user_id; + public ArrayList id = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - channel.serializeToStream(stream); - user_id.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = id.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt32(id.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + channel.serializeToStream(stream); + user_id.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = id.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt32(id.get(a)); + } + } + } public static class TL_channels_getMessages extends TLObject { public static int constructor = 0x93d7b347; @@ -49768,22 +50067,22 @@ public class TLRPC { } } - public static class TL_channels_toggleSignatures extends TLObject { - public static int constructor = 0x1f69b606; + public static class TL_channels_toggleSignatures extends TLObject { + public static int constructor = 0x1f69b606; - public InputChannel channel; - public boolean enabled; + public InputChannel channel; + public boolean enabled; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Updates.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Updates.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - channel.serializeToStream(stream); - stream.writeBool(enabled); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + channel.serializeToStream(stream); + stream.writeBool(enabled); + } + } public static class TL_channels_getAdminedPublicChannels extends TLObject { public static int constructor = 0xf8b036af; @@ -49823,82 +50122,82 @@ public class TLRPC { } } - public static class TL_channels_getAdminLog extends TLObject { - public static int constructor = 0x33ddf480; + public static class TL_channels_getAdminLog extends TLObject { + public static int constructor = 0x33ddf480; - public int flags; - public InputChannel channel; - public String q; - public TL_channelAdminLogEventsFilter events_filter; - public ArrayList admins = new ArrayList<>(); - public long max_id; - public long min_id; - public int limit; + public int flags; + public InputChannel channel; + public String q; + public TL_channelAdminLogEventsFilter events_filter; + public ArrayList admins = new ArrayList<>(); + public long max_id; + public long min_id; + public int limit; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_channels_adminLogResults.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_channels_adminLogResults.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(flags); - channel.serializeToStream(stream); - stream.writeString(q); - if ((flags & 1) != 0) { - events_filter.serializeToStream(stream); - } - if ((flags & 2) != 0) { - stream.writeInt32(0x1cb5c415); - int count = admins.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - admins.get(a).serializeToStream(stream); - } - } - stream.writeInt64(max_id); - stream.writeInt64(min_id); - stream.writeInt32(limit); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(flags); + channel.serializeToStream(stream); + stream.writeString(q); + if ((flags & 1) != 0) { + events_filter.serializeToStream(stream); + } + if ((flags & 2) != 0) { + stream.writeInt32(0x1cb5c415); + int count = admins.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + admins.get(a).serializeToStream(stream); + } + } + stream.writeInt64(max_id); + stream.writeInt64(min_id); + stream.writeInt32(limit); + } + } - public static class TL_channels_setStickers extends TLObject { - public static int constructor = 0xea8ca4f9; + public static class TL_channels_setStickers extends TLObject { + public static int constructor = 0xea8ca4f9; - public InputChannel channel; - public InputStickerSet stickerset; + public InputChannel channel; + public InputStickerSet stickerset; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - channel.serializeToStream(stream); - stickerset.serializeToStream(stream); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + channel.serializeToStream(stream); + stickerset.serializeToStream(stream); + } + } - public static class TL_channels_readMessageContents extends TLObject { - public static int constructor = 0xeab5dc38; + public static class TL_channels_readMessageContents extends TLObject { + public static int constructor = 0xeab5dc38; - public InputChannel channel; - public ArrayList id = new ArrayList<>(); + public InputChannel channel; + public ArrayList id = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - channel.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = id.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeInt32(id.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + channel.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = id.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeInt32(id.get(a)); + } + } + } public static class TL_channels_deleteHistory extends TLObject { public static int constructor = 0xaf369d42; @@ -50897,37 +51196,37 @@ public class TLRPC { } } - public static class TL_payments_getSavedInfo extends TLObject { - public static int constructor = 0x227d824b; + public static class TL_payments_getSavedInfo extends TLObject { + public static int constructor = 0x227d824b; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_payments_savedInfo.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_payments_savedInfo.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } - public static class TL_payments_clearSavedInfo extends TLObject { - public static int constructor = 0xd83d70c1; + public static class TL_payments_clearSavedInfo extends TLObject { + public static int constructor = 0xd83d70c1; - public int flags; - public boolean credentials; - public boolean info; + public int flags; + public boolean credentials; + public boolean info; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return Bool.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return Bool.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = credentials ? (flags | 1) : (flags &~ 1); - flags = info ? (flags | 2) : (flags &~ 2); - stream.writeInt32(flags); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = credentials ? (flags | 1) : (flags &~ 1); + flags = info ? (flags | 2) : (flags &~ 2); + stream.writeInt32(flags); + } + } public static class TL_payments_getBankCardData extends TLObject { public static int constructor = 0x2e79d779; @@ -50944,51 +51243,51 @@ public class TLRPC { } } - public static class TL_langpack_getLangPack extends TLObject { - public static int constructor = 0x9ab5c58e; + public static class TL_langpack_getLangPack extends TLObject { + public static int constructor = 0x9ab5c58e; - public String lang_code; + public String lang_code; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_langPackDifference.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_langPackDifference.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(lang_code); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(lang_code); + } + } - public static class TL_langpack_getStrings extends TLObject { - public static int constructor = 0x2e1ee318; + public static class TL_langpack_getStrings extends TLObject { + public static int constructor = 0x2e1ee318; - public String lang_code; - public ArrayList keys = new ArrayList<>(); + public String lang_code; + public ArrayList keys = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - LangPackString object = LangPackString.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + LangPackString object = LangPackString.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(lang_code); - stream.writeInt32(0x1cb5c415); - int count = keys.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - stream.writeString(keys.get(a)); - } - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(lang_code); + stream.writeInt32(0x1cb5c415); + int count = keys.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + stream.writeString(keys.get(a)); + } + } + } public static class TL_langpack_getDifference extends TLObject { public static int constructor = 0xcd984aa5; @@ -51009,27 +51308,27 @@ public class TLRPC { } } - public static class TL_langpack_getLanguages extends TLObject { - public static int constructor = 0x800fd57d; + public static class TL_langpack_getLanguages extends TLObject { + public static int constructor = 0x800fd57d; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - TL_langPackLanguage object = TL_langPackLanguage.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + TL_langPackLanguage object = TL_langPackLanguage.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + } + } public static class TL_langpack_getLanguage extends TLObject { public static int constructor = 0x6a596502; @@ -51207,75 +51506,75 @@ public class TLRPC { } } - //RichText start - public static abstract class RichText extends TLObject { - public String url; - public long webpage_id; - public String email; - public ArrayList texts = new ArrayList<>(); - public RichText parentRichText; + //RichText start + public static abstract class RichText extends TLObject { + public String url; + public long webpage_id; + public String email; + public ArrayList texts = new ArrayList<>(); + public RichText parentRichText; - public static RichText TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - RichText result = null; - switch (constructor) { - case 0x1ccb966a: - result = new TL_textPhone(); - break; - case 0xc7fb5e01: - result = new TL_textSuperscript(); - break; - case 0x81ccf4f: - result = new TL_textImage(); - break; - case 0xc12622c4: - result = new TL_textUnderline(); - break; - case 0xed6a8504: - result = new TL_textSubscript(); - break; - case 0x3c2884c1: - result = new TL_textUrl(); - break; + public static RichText TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + RichText result = null; + switch (constructor) { + case 0x1ccb966a: + result = new TL_textPhone(); + break; + case 0xc7fb5e01: + result = new TL_textSuperscript(); + break; + case 0x81ccf4f: + result = new TL_textImage(); + break; + case 0xc12622c4: + result = new TL_textUnderline(); + break; + case 0xed6a8504: + result = new TL_textSubscript(); + break; + case 0x3c2884c1: + result = new TL_textUrl(); + break; case 0x35553762: result = new TL_textAnchor(); break; - case 0xdc3d824f: - result = new TL_textEmpty(); - break; - case 0xde5a0dd6: - result = new TL_textEmail(); - break; - case 0x744694e0: - result = new TL_textPlain(); - break; - case 0x6724abc4: - result = new TL_textBold(); - break; - case 0x9bf8bb95: - result = new TL_textStrike(); - break; - case 0x7e6260d7: - result = new TL_textConcat(); - break; - case 0xd912a59c: - result = new TL_textItalic(); - break; - case 0x34b8621: - result = new TL_textMarked(); - break; - case 0x6c3f19b9: - result = new TL_textFixed(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in RichText", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + case 0xdc3d824f: + result = new TL_textEmpty(); + break; + case 0xde5a0dd6: + result = new TL_textEmail(); + break; + case 0x744694e0: + result = new TL_textPlain(); + break; + case 0x6724abc4: + result = new TL_textBold(); + break; + case 0x9bf8bb95: + result = new TL_textStrike(); + break; + case 0x7e6260d7: + result = new TL_textConcat(); + break; + case 0xd912a59c: + result = new TL_textItalic(); + break; + case 0x34b8621: + result = new TL_textMarked(); + break; + case 0x6c3f19b9: + result = new TL_textFixed(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in RichText", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } public static class TL_pageBlockList_layer82 extends TL_pageBlockList { public static int constructor = 0x3a58c7f4; @@ -51314,7 +51613,7 @@ public class TLRPC { } } } - //RichText end + //RichText end public static class TL_channels_sendAsPeers extends TLObject { public static int constructor = 0x8356cda9; @@ -51407,223 +51706,223 @@ public class TLRPC { } } - //MessageMedia start - public static abstract class MessageMedia extends TLObject { - public byte[] bytes; - public Audio audio_unused; - public int flags; - public boolean shipping_address_requested; - public Photo photo; - public GeoPoint geo; + //MessageMedia start + public static abstract class MessageMedia extends TLObject { + public byte[] bytes; + public Audio audio_unused; + public int flags; + public boolean shipping_address_requested; + public Photo photo; + public GeoPoint geo; public int heading; - public String currency; - public String description; - public int receipt_msg_id; - public long total_amount; - public String start_param; - public String title; - public String address; - public String provider; - public String venue_id; - public Video video_unused; - public Document document; - public String captionLegacy; - public TL_game game; - public String phone_number; - public String first_name; - public String last_name; - public String vcard; + public String currency; + public String description; + public int receipt_msg_id; + public long total_amount; + public String start_param; + public String title; + public String address; + public String provider; + public String venue_id; + public Video video_unused; + public Document document; + public String captionLegacy; + public TL_game game; + public String phone_number; + public String first_name; + public String last_name; + public String vcard; public long user_id; - public WebPage webpage; - public String venue_type; - public boolean test; - public int period; + public WebPage webpage; + public String venue_type; + public boolean test; + public int period; public int ttl_seconds; public int proximity_notification_radius; - public static MessageMedia TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - MessageMedia result = null; - switch (constructor) { - case 0x29632a36: - result = new TL_messageMediaUnsupported_old(); - break; - case 0xc6b68300: - result = new TL_messageMediaAudio_layer45(); - break; - case 0xc8c45a2a: - result = new TL_messageMediaPhoto_old(); - break; - case 0x84551347: - result = new TL_messageMediaInvoice(); - break; - case 0x9f84f49e: - result = new TL_messageMediaUnsupported(); - break; - case 0x3ded6320: - result = new TL_messageMediaEmpty(); - break; - case 0x7912b71f: - result = new TL_messageMediaVenue_layer71(); - break; + public static MessageMedia TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + MessageMedia result = null; + switch (constructor) { + case 0x29632a36: + result = new TL_messageMediaUnsupported_old(); + break; + case 0xc6b68300: + result = new TL_messageMediaAudio_layer45(); + break; + case 0xc8c45a2a: + result = new TL_messageMediaPhoto_old(); + break; + case 0x84551347: + result = new TL_messageMediaInvoice(); + break; + case 0x9f84f49e: + result = new TL_messageMediaUnsupported(); + break; + case 0x3ded6320: + result = new TL_messageMediaEmpty(); + break; + case 0x7912b71f: + result = new TL_messageMediaVenue_layer71(); + break; case 0xb940c666: result = new TL_messageMediaGeoLive(); break; - case 0x7c3c2609: - result = new TL_messageMediaGeoLive_layer119(); - break; - case 0x2ec0533f: - result = new TL_messageMediaVenue(); - break; - case 0xa2d24290: - result = new TL_messageMediaVideo_old(); - break; - case 0x2fda2204: - result = new TL_messageMediaDocument_old(); - break; - case 0xf3e02ea8: - result = new TL_messageMediaDocument_layer68(); - break; - case 0xfdb19008: - result = new TL_messageMediaGame(); - break; + case 0x7c3c2609: + result = new TL_messageMediaGeoLive_layer119(); + break; + case 0x2ec0533f: + result = new TL_messageMediaVenue(); + break; + case 0xa2d24290: + result = new TL_messageMediaVideo_old(); + break; + case 0x2fda2204: + result = new TL_messageMediaDocument_old(); + break; + case 0xf3e02ea8: + result = new TL_messageMediaDocument_layer68(); + break; + case 0xfdb19008: + result = new TL_messageMediaGame(); + break; case 0x7c4414d3: result = new TL_messageMediaDocument_layer74(); break; - case 0x5e7d2f39: - result = new TL_messageMediaContact_layer81(); - break; - case 0x695150d7: - result = new TL_messageMediaPhoto(); - break; + case 0x5e7d2f39: + result = new TL_messageMediaContact_layer81(); + break; + case 0x695150d7: + result = new TL_messageMediaPhoto(); + break; case 0x4bd6e798: result = new TL_messageMediaPoll(); break; case 0xb5223b0f: result = new TL_messageMediaPhoto_layer74(); break; - case 0x3d8ce53d: - result = new TL_messageMediaPhoto_layer68(); - break; - case 0x5bcf1675: - result = new TL_messageMediaVideo_layer45(); - break; + case 0x3d8ce53d: + result = new TL_messageMediaPhoto_layer68(); + break; + case 0x5bcf1675: + result = new TL_messageMediaVideo_layer45(); + break; case 0x3f7ee58b: result = new TL_messageMediaDice(); break; case 0x638fe46b: result = new TL_messageMediaDice_layer111(); break; - case 0x56e0d474: - result = new TL_messageMediaGeo(); - break; - case 0xa32dd600: - result = new TL_messageMediaWebPage(); - break; - case 0x9cb070d7: - result = new TL_messageMediaDocument(); - break; - case 0xcbf24940: - result = new TL_messageMediaContact_layer131(); - break; + case 0x56e0d474: + result = new TL_messageMediaGeo(); + break; + case 0xa32dd600: + result = new TL_messageMediaWebPage(); + break; + case 0x9cb070d7: + result = new TL_messageMediaDocument(); + break; + case 0xcbf24940: + result = new TL_messageMediaContact_layer131(); + break; case 0x70322949: result = new TL_messageMediaContact(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in MessageMedia", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - if (result.video_unused != null) { - TL_messageMediaDocument mediaDocument = new TL_messageMediaDocument(); - if (result.video_unused instanceof TL_videoEncrypted) { - mediaDocument.document = new TL_documentEncrypted(); - mediaDocument.document.key = result.video_unused.key; - mediaDocument.document.iv = result.video_unused.iv; - } else { - mediaDocument.document = new TL_document(); - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in MessageMedia", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + if (result.video_unused != null) { + TL_messageMediaDocument mediaDocument = new TL_messageMediaDocument(); + if (result.video_unused instanceof TL_videoEncrypted) { + mediaDocument.document = new TL_documentEncrypted(); + mediaDocument.document.key = result.video_unused.key; + mediaDocument.document.iv = result.video_unused.iv; + } else { + mediaDocument.document = new TL_document(); + } mediaDocument.flags = 3; - mediaDocument.document.file_reference = new byte[0]; - mediaDocument.document.id = result.video_unused.id; - mediaDocument.document.access_hash = result.video_unused.access_hash; - mediaDocument.document.date = result.video_unused.date; - if (result.video_unused.mime_type != null) { - mediaDocument.document.mime_type = result.video_unused.mime_type; - } else { - mediaDocument.document.mime_type = "video/mp4"; - } - mediaDocument.document.size = result.video_unused.size; - mediaDocument.document.thumbs.add(result.video_unused.thumb); - mediaDocument.document.dc_id = result.video_unused.dc_id; - mediaDocument.captionLegacy = result.captionLegacy; - TL_documentAttributeVideo attributeVideo = new TL_documentAttributeVideo(); - attributeVideo.w = result.video_unused.w; - attributeVideo.h = result.video_unused.h; - attributeVideo.duration = result.video_unused.duration; - mediaDocument.document.attributes.add(attributeVideo); - result = mediaDocument; - if (mediaDocument.captionLegacy == null) { - mediaDocument.captionLegacy = ""; - } - } else if (result.audio_unused != null) { - TL_messageMediaDocument mediaDocument = new TL_messageMediaDocument(); - if (result.audio_unused instanceof TL_audioEncrypted) { - mediaDocument.document = new TL_documentEncrypted(); - mediaDocument.document.key = result.audio_unused.key; - mediaDocument.document.iv = result.audio_unused.iv; - } else { - mediaDocument.document = new TL_document(); - } + mediaDocument.document.file_reference = new byte[0]; + mediaDocument.document.id = result.video_unused.id; + mediaDocument.document.access_hash = result.video_unused.access_hash; + mediaDocument.document.date = result.video_unused.date; + if (result.video_unused.mime_type != null) { + mediaDocument.document.mime_type = result.video_unused.mime_type; + } else { + mediaDocument.document.mime_type = "video/mp4"; + } + mediaDocument.document.size = result.video_unused.size; + mediaDocument.document.thumbs.add(result.video_unused.thumb); + mediaDocument.document.dc_id = result.video_unused.dc_id; + mediaDocument.captionLegacy = result.captionLegacy; + TL_documentAttributeVideo attributeVideo = new TL_documentAttributeVideo(); + attributeVideo.w = result.video_unused.w; + attributeVideo.h = result.video_unused.h; + attributeVideo.duration = result.video_unused.duration; + mediaDocument.document.attributes.add(attributeVideo); + result = mediaDocument; + if (mediaDocument.captionLegacy == null) { + mediaDocument.captionLegacy = ""; + } + } else if (result.audio_unused != null) { + TL_messageMediaDocument mediaDocument = new TL_messageMediaDocument(); + if (result.audio_unused instanceof TL_audioEncrypted) { + mediaDocument.document = new TL_documentEncrypted(); + mediaDocument.document.key = result.audio_unused.key; + mediaDocument.document.iv = result.audio_unused.iv; + } else { + mediaDocument.document = new TL_document(); + } mediaDocument.flags = 3; - mediaDocument.document.file_reference = new byte[0]; - mediaDocument.document.id = result.audio_unused.id; - mediaDocument.document.access_hash = result.audio_unused.access_hash; - mediaDocument.document.date = result.audio_unused.date; - if (result.audio_unused.mime_type != null) { - mediaDocument.document.mime_type = result.audio_unused.mime_type; - } else { - mediaDocument.document.mime_type = "audio/ogg"; - } - mediaDocument.document.size = result.audio_unused.size; - TL_photoSizeEmpty thumb = new TL_photoSizeEmpty(); + mediaDocument.document.file_reference = new byte[0]; + mediaDocument.document.id = result.audio_unused.id; + mediaDocument.document.access_hash = result.audio_unused.access_hash; + mediaDocument.document.date = result.audio_unused.date; + if (result.audio_unused.mime_type != null) { + mediaDocument.document.mime_type = result.audio_unused.mime_type; + } else { + mediaDocument.document.mime_type = "audio/ogg"; + } + mediaDocument.document.size = result.audio_unused.size; + TL_photoSizeEmpty thumb = new TL_photoSizeEmpty(); thumb.type = "s"; - mediaDocument.document.thumbs.add(thumb); - mediaDocument.document.dc_id = result.audio_unused.dc_id; - mediaDocument.captionLegacy = result.captionLegacy; - TL_documentAttributeAudio attributeAudio = new TL_documentAttributeAudio(); - attributeAudio.duration = result.audio_unused.duration; - attributeAudio.voice = true; - mediaDocument.document.attributes.add(attributeAudio); - result = mediaDocument; - if (mediaDocument.captionLegacy == null) { - mediaDocument.captionLegacy = ""; - } - } - } - return result; - } - } - //MessageMedia end + mediaDocument.document.thumbs.add(thumb); + mediaDocument.document.dc_id = result.audio_unused.dc_id; + mediaDocument.captionLegacy = result.captionLegacy; + TL_documentAttributeAudio attributeAudio = new TL_documentAttributeAudio(); + attributeAudio.duration = result.audio_unused.duration; + attributeAudio.voice = true; + mediaDocument.document.attributes.add(attributeAudio); + result = mediaDocument; + if (mediaDocument.captionLegacy == null) { + mediaDocument.captionLegacy = ""; + } + } + } + return result; + } + } + //MessageMedia end - //PageBlock start - public static class TL_pageBlockAuthorDate_layer60 extends TL_pageBlockAuthorDate { - public static int constructor = 0x3d5b64f2; + //PageBlock start + public static class TL_pageBlockAuthorDate_layer60 extends TL_pageBlockAuthorDate { + public static int constructor = 0x3d5b64f2; - public void readParams(AbstractSerializedData stream, boolean exception) { - String authorString = stream.readString(exception); - author = new TL_textPlain(); - ((TL_textPlain) author).text = authorString; - published_date = stream.readInt32(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + String authorString = stream.readString(exception); + author = new TL_textPlain(); + ((TL_textPlain) author).text = authorString; + published_date = stream.readInt32(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeString(((TL_textPlain) author).text); - stream.writeInt32(published_date); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeString(((TL_textPlain) author).text); + stream.writeInt32(published_date); + } + } public static class TL_pageBlockEmbedPost_layer82 extends TL_pageBlockEmbedPost { public static int constructor = 0x292c7be9; @@ -51849,7 +52148,7 @@ public class TLRPC { caption.text.serializeToStream(stream); } } - //PageBlock end + //PageBlock end //EncryptedChat start public static abstract class EncryptedChat extends TLObject { @@ -51872,8 +52171,8 @@ public class TLRPC { public int layer; //custom public int seq_in; //custom public int seq_out; //custom - public int in_seq_no; //custom - public int mtproto_seq; //custom + public int in_seq_no; //custom + public int mtproto_seq; //custom public byte[] key_hash; //custom public short key_use_count_in; //custom public short key_use_count_out; //custom @@ -51944,35 +52243,35 @@ public class TLRPC { public String message; public MessageMedia media; public int flags; - public boolean mentioned; - public boolean media_unread; - public boolean out; - public boolean unread; + public boolean mentioned; + public boolean media_unread; + public boolean out; + public boolean unread; public ArrayList entities = new ArrayList<>(); - public String via_bot_name; + public String via_bot_name; public ReplyMarkup reply_markup; - public int views; + public int views; public int forwards; public MessageReplies replies; - public int edit_date; - public boolean silent; - public boolean post; + public int edit_date; + public boolean silent; + public boolean post; public boolean from_scheduled; public boolean legacy; public boolean edit_hide; public boolean pinned; - public MessageFwdHeader fwd_from; - public long via_bot_id; + public MessageFwdHeader fwd_from; + public long via_bot_id; public TL_messageReplyHeader reply_to; public String post_author; - public long grouped_id; + public long grouped_id; public TL_messageReactions reactions; public ArrayList restriction_reason = new ArrayList<>(); public int ttl_period; public int send_state = 0; //custom public int fwd_msg_id = 0; //custom public String attachPath = ""; //custom - public HashMap params; //custom + public HashMap params; //custom public long random_id; //custom public int local_id = 0; //custom public long dialog_id; //custom @@ -51981,9 +52280,9 @@ public class TLRPC { public int layer; //custom public int seq_in; //custom public int seq_out; //custom - public boolean with_my_score; + public boolean with_my_score; public Message replyMessage; //custom - public int reqId; //custom + public int reqId; //custom public int realId; //custom public int stickerVerified = 1; //custom public boolean isThreadMessage; //custom @@ -52000,36 +52299,36 @@ public class TLRPC { case 0xc3060325: result = new TL_message_old4(); break; - case 0x555555fa: - result = new TL_message_secret(); - break; - case 0x555555f9: - result = new TL_message_secret_layer72(); - break; + case 0x555555fa: + result = new TL_message_secret(); + break; + case 0x555555f9: + result = new TL_message_secret_layer72(); + break; case 0x90dddc11: result = new TL_message_layer72(); break; - case 0xc09be45f: - result = new TL_message_layer68(); - break; - case 0xc992e15c: - result = new TL_message_layer47(); - break; - case 0x5ba66c13: - result = new TL_message_old7(); - break; + case 0xc09be45f: + result = new TL_message_layer68(); + break; + case 0xc992e15c: + result = new TL_message_layer47(); + break; + case 0x5ba66c13: + result = new TL_message_old7(); + break; case 0xc06b9607: - result = new TL_messageService_layer48(); - break; + result = new TL_messageService_layer48(); + break; case 0x83e5de54: result = new TL_messageEmpty_layer122(); break; case 0x2bebfa86: result = new TL_message_old6(); break; - case 0x44f9b43d: - result = new TL_message_layer104(); - break; + case 0x44f9b43d: + result = new TL_message_layer104(); + break; case 0x90a6ca84: result = new TL_messageEmpty(); break; @@ -52072,18 +52371,18 @@ public class TLRPC { case 0x85d6cbe2: result = new TL_message(); break; - case 0x9e19a1f6: - result = new TL_messageService_layer118(); - break; + case 0x9e19a1f6: + result = new TL_messageService_layer118(); + break; case 0x286fa604: result = new TL_messageService_layer123(); break; case 0x2b085862: result = new TL_messageService(); break; - case 0xf07814c8: - result = new TL_message_old5(); - break; + case 0xf07814c8: + result = new TL_message_old5(); + break; } if (result == null && exception) { throw new RuntimeException(String.format("can't parse magic %x in Message", constructor)); @@ -52098,28 +52397,28 @@ public class TLRPC { } public void readAttachPath(AbstractSerializedData stream, long currentUserId) { - boolean hasMedia = media != null && !(media instanceof TL_messageMediaEmpty) && !(media instanceof TL_messageMediaWebPage); - boolean fixCaption = !TextUtils.isEmpty(message) && - (media instanceof TL_messageMediaPhoto_old || - media instanceof TL_messageMediaPhoto_layer68 || - media instanceof TL_messageMediaPhoto_layer74 || - media instanceof TL_messageMediaDocument_old || - media instanceof TL_messageMediaDocument_layer68 || - media instanceof TL_messageMediaDocument_layer74) - && message.startsWith("-1"); - if ((out || peer_id != null && from_id != null && peer_id.user_id != 0 && peer_id.user_id == from_id.user_id && from_id.user_id == currentUserId) && (id < 0 || hasMedia || send_state == 3) || legacy) { - if (hasMedia && fixCaption) { - if (message.length() > 6 && message.charAt(2) == '_') { - params = new HashMap<>(); - params.put("ve", message); - } - if (params != null || message.length() == 2) { - message = ""; - } - } - if (stream.remaining() > 0) { - attachPath = stream.readString(false); - if (attachPath != null) { + boolean hasMedia = media != null && !(media instanceof TL_messageMediaEmpty) && !(media instanceof TL_messageMediaWebPage); + boolean fixCaption = !TextUtils.isEmpty(message) && + (media instanceof TL_messageMediaPhoto_old || + media instanceof TL_messageMediaPhoto_layer68 || + media instanceof TL_messageMediaPhoto_layer74 || + media instanceof TL_messageMediaDocument_old || + media instanceof TL_messageMediaDocument_layer68 || + media instanceof TL_messageMediaDocument_layer74) + && message.startsWith("-1"); + if ((out || peer_id != null && from_id != null && peer_id.user_id != 0 && peer_id.user_id == from_id.user_id && from_id.user_id == currentUserId) && (id < 0 || hasMedia || send_state == 3) || legacy) { + if (hasMedia && fixCaption) { + if (message.length() > 6 && message.charAt(2) == '_') { + params = new HashMap<>(); + params.put("ve", message); + } + if (params != null || message.length() == 2) { + message = ""; + } + } + if (stream.remaining() > 0) { + attachPath = stream.readString(false); + if (attachPath != null) { if ((id < 0 || send_state == 3 || legacy) && attachPath.startsWith("||")) { String args[] = attachPath.split("\\|\\|"); if (args.length > 0) { @@ -52141,15 +52440,15 @@ public class TLRPC { attachPath = attachPath.trim(); } } - } - } - if ((flags & MESSAGE_FLAG_FWD) != 0 && id < 0) { - fwd_msg_id = stream.readInt32(false); - } - } + } + } + if ((flags & MESSAGE_FLAG_FWD) != 0 && id < 0) { + fwd_msg_id = stream.readInt32(false); + } + } - protected void writeAttachPath(AbstractSerializedData stream) { - if (this instanceof TL_message_secret || this instanceof TL_message_secret_layer72) { + protected void writeAttachPath(AbstractSerializedData stream) { + if (this instanceof TL_message_secret || this instanceof TL_message_secret_layer72) { String path = attachPath != null ? attachPath : ""; if (send_state == 1 && params != null && params.size() > 0) { for (HashMap.Entry entry : params.entrySet()) { @@ -52158,43 +52457,43 @@ public class TLRPC { path = "||" + path; } stream.writeString(path); - } else { - String path = !TextUtils.isEmpty(attachPath) ? attachPath : " "; - if (legacy) { - if (params == null) { + } else { + String path = !TextUtils.isEmpty(attachPath) ? attachPath : " "; + if (legacy) { + if (params == null) { params = new HashMap<>(); } - layer = LAYER; + layer = LAYER; params.put("legacy_layer", "" + LAYER); } - if ((id < 0 || send_state == 3 || legacy) && params != null && params.size() > 0) { - for (HashMap.Entry entry : params.entrySet()) { - path = entry.getKey() + "|=|" + entry.getValue() + "||" + path; - } - path = "||" + path; - } - stream.writeString(path); - if ((flags & MESSAGE_FLAG_FWD) != 0 && id < 0) { - stream.writeInt32(fwd_msg_id); - } - } - } + if ((id < 0 || send_state == 3 || legacy) && params != null && params.size() > 0) { + for (HashMap.Entry entry : params.entrySet()) { + path = entry.getKey() + "|=|" + entry.getValue() + "||" + path; + } + path = "||" + path; + } + stream.writeString(path); + if ((flags & MESSAGE_FLAG_FWD) != 0 && id < 0) { + stream.writeInt32(fwd_msg_id); + } + } + } } - public static class TL_messageEmpty_layer122 extends TL_messageEmpty { - public static int constructor = 0x83e5de54; + public static class TL_messageEmpty_layer122 extends TL_messageEmpty { + public static int constructor = 0x83e5de54; - public void readParams(AbstractSerializedData stream, boolean exception) { - id = stream.readInt32(exception); - peer_id = new TL_peerUser(); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + id = stream.readInt32(exception); + peer_id = new TL_peerUser(); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(id); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(id); + } + } public static class TL_messageEmpty extends Message { public static int constructor = 0x90a6ca84; @@ -52219,39 +52518,39 @@ public class TLRPC { } } - public static class TL_messageService_old2 extends TL_messageService { - public static int constructor = 0x1d86f70e; + public static class TL_messageService_old2 extends TL_messageService { + public static int constructor = 0x1d86f70e; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; - id = stream.readInt32(exception); + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + id = stream.readInt32(exception); from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - date = stream.readInt32(exception); - action = MessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); - flags |= MESSAGE_FLAG_HAS_FROM_ID; - } + date = stream.readInt32(exception); + action = MessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); + flags |= MESSAGE_FLAG_HAS_FROM_ID; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); - stream.writeInt32(flags); - stream.writeInt32(id); - stream.writeInt32((int) from_id.user_id); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); + stream.writeInt32(flags); + stream.writeInt32(id); + stream.writeInt32((int) from_id.user_id); peer_id.serializeToStream(stream); - stream.writeInt32(date); - action.serializeToStream(stream); - } - } + stream.writeInt32(date); + action.serializeToStream(stream); + } + } public static class TL_message_layer72 extends TL_message { public static int constructor = 0x90dddc11; @@ -52283,12 +52582,12 @@ public class TLRPC { message = stream.readString(exception); if ((flags & 512) != 0) { media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null) { - ttl = media.ttl_seconds; - } - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } + if (media != null) { + ttl = media.ttl_seconds; + } + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } } if ((flags & 64) != 0) { reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); @@ -52372,350 +52671,350 @@ public class TLRPC { } } - public static class TL_message_layer68 extends TL_message { - public static int constructor = 0xc09be45f; + public static class TL_message_layer68 extends TL_message { + public static int constructor = 0xc09be45f; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; - silent = (flags & 8192) != 0; - post = (flags & 16384) != 0; - with_my_score = (flags & 1073741824) != 0; - id = stream.readInt32(exception); - if ((flags & 256) != 0) { + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + silent = (flags & 8192) != 0; + post = (flags & 16384) != 0; + with_my_score = (flags & 1073741824) != 0; + id = stream.readInt32(exception); + if ((flags & 256) != 0) { from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); - } - peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if (from_id == null) { - from_id = peer_id; - } - if ((flags & 4) != 0) { - fwd_from = MessageFwdHeader.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 2048) != 0) { - via_bot_id = stream.readInt32(exception); - } - if ((flags & 8) != 0) { - reply_to = new TLRPC.TL_messageReplyHeader(); - reply_to.reply_to_msg_id = stream.readInt32(exception); - } - date = stream.readInt32(exception); - message = stream.readString(exception); - if ((flags & 512) != 0) { - media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } - } else { - media = new TL_messageMediaEmpty(); - } - if ((flags & 64) != 0) { - reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 128) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - } - if ((flags & 1024) != 0) { - views = stream.readInt32(exception); - } - if ((flags & 32768) != 0) { - edit_date = stream.readInt32(exception); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); - flags = silent ? (flags | 8192) : (flags &~ 8192); - flags = post ? (flags | 16384) : (flags &~ 16384); - flags = with_my_score ? (flags | 1073741824) : (flags &~ 1073741824); - stream.writeInt32(flags); - stream.writeInt32(id); - if ((flags & 256) != 0) { - stream.writeInt32((int) from_id.user_id); - } - peer_id.serializeToStream(stream); - if ((flags & 4) != 0) { - fwd_from.serializeToStream(stream); - } - if ((flags & 2048) != 0) { - stream.writeInt32((int) via_bot_id); - } - if ((flags & 8) != 0) { - stream.writeInt32(reply_to.reply_to_msg_id); - } - stream.writeInt32(date); - stream.writeString(message); - if ((flags & 512) != 0) { - media.serializeToStream(stream); - } - if ((flags & 64) != 0) { - reply_markup.serializeToStream(stream); - } - if ((flags & 128) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - if ((flags & 1024) != 0) { - stream.writeInt32(views); - } - if ((flags & 32768) != 0) { - stream.writeInt32(edit_date); - } - writeAttachPath(stream); - } - } - - public static class TL_message_layer47 extends TL_message { - public static int constructor = 0xc992e15c; - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; - id = stream.readInt32(exception); - if ((flags & 256) != 0) { - from_id = new TLRPC.TL_peerUser(); - from_id.user_id = stream.readInt32(exception); - } - peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if (from_id == null) { - from_id = peer_id; - } - if ((flags & 4) != 0) { - fwd_from = new TL_messageFwdHeader(); - Peer peer = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if (peer != null) { - fwd_from.from_id = peer; - fwd_from.flags |= 1; - } - fwd_from.date = stream.readInt32(exception); - } - if ((flags & 2048) != 0) { - via_bot_id = stream.readInt32(exception); - } - if ((flags & 8) != 0) { - reply_to = new TLRPC.TL_messageReplyHeader(); - reply_to.reply_to_msg_id = stream.readInt32(exception); - } - date = stream.readInt32(exception); - message = stream.readString(exception); - if ((flags & 512) != 0) { - media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } - } else { - media = new TL_messageMediaEmpty(); - } - if ((flags & 64) != 0) { - reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 128) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - } - if ((flags & 1024) != 0) { - views = stream.readInt32(exception); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); - stream.writeInt32(flags); - stream.writeInt32(id); - if ((flags & 256) != 0) { - stream.writeInt32((int) from_id.user_id); - } - peer_id.serializeToStream(stream); - if ((flags & 4) != 0) { - if (fwd_from.from_id != null) { - fwd_from.from_id.serializeToStream(stream); - } - stream.writeInt32(fwd_from.date); - } - if ((flags & 2048) != 0) { - stream.writeInt32((int) via_bot_id); - } - if ((flags & 8) != 0) { - stream.writeInt32(reply_to.reply_to_msg_id); - } - stream.writeInt32(date); - stream.writeString(message); - if ((flags & 512) != 0) { - media.serializeToStream(stream); - } - if ((flags & 64) != 0) { - reply_markup.serializeToStream(stream); - } - if ((flags & 128) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - if ((flags & 1024) != 0) { - stream.writeInt32(views); - } - writeAttachPath(stream); - } - } - - public static class TL_message_old7 extends TL_message { - public static int constructor = 0x5ba66c13; - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; - id = stream.readInt32(exception); - if ((flags & 256) != 0) { - from_id = new TLRPC.TL_peerUser(); - from_id.user_id = stream.readInt32(exception); - } + } peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); if (from_id == null) { from_id = peer_id; } - if ((flags & 4) != 0) { - fwd_from = new TL_messageFwdHeader(); - Peer peer = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if (peer != null) { - fwd_from.from_id = peer; - fwd_from.flags |= 1; - } - fwd_from.date = stream.readInt32(exception); - } - if ((flags & 8) != 0) { + if ((flags & 4) != 0) { + fwd_from = MessageFwdHeader.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 2048) != 0) { + via_bot_id = stream.readInt32(exception); + } + if ((flags & 8) != 0) { reply_to = new TLRPC.TL_messageReplyHeader(); reply_to.reply_to_msg_id = stream.readInt32(exception); - } - date = stream.readInt32(exception); - message = stream.readString(exception); - if ((flags & 512) != 0) { - media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } - } else { - media = new TL_messageMediaEmpty(); - } + } + date = stream.readInt32(exception); + message = stream.readString(exception); + if ((flags & 512) != 0) { + media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } + } else { + media = new TL_messageMediaEmpty(); + } if ((flags & 64) != 0) { - reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 128) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - } - if ((flags & 1024) != 0) { - views = stream.readInt32(exception); - } - } + reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 128) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + } + if ((flags & 1024) != 0) { + views = stream.readInt32(exception); + } + if ((flags & 32768) != 0) { + edit_date = stream.readInt32(exception); + } + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); - stream.writeInt32(flags); - stream.writeInt32(id); - if ((flags & 256) != 0) { - stream.writeInt32((int) from_id.user_id); - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); + flags = silent ? (flags | 8192) : (flags &~ 8192); + flags = post ? (flags | 16384) : (flags &~ 16384); + flags = with_my_score ? (flags | 1073741824) : (flags &~ 1073741824); + stream.writeInt32(flags); + stream.writeInt32(id); + if ((flags & 256) != 0) { + stream.writeInt32((int) from_id.user_id); + } peer_id.serializeToStream(stream); if ((flags & 4) != 0) { - if (fwd_from.from_id != null) { + fwd_from.serializeToStream(stream); + } + if ((flags & 2048) != 0) { + stream.writeInt32((int) via_bot_id); + } + if ((flags & 8) != 0) { + stream.writeInt32(reply_to.reply_to_msg_id); + } + stream.writeInt32(date); + stream.writeString(message); + if ((flags & 512) != 0) { + media.serializeToStream(stream); + } + if ((flags & 64) != 0) { + reply_markup.serializeToStream(stream); + } + if ((flags & 128) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + if ((flags & 1024) != 0) { + stream.writeInt32(views); + } + if ((flags & 32768) != 0) { + stream.writeInt32(edit_date); + } + writeAttachPath(stream); + } + } + + public static class TL_message_layer47 extends TL_message { + public static int constructor = 0xc992e15c; + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + id = stream.readInt32(exception); + if ((flags & 256) != 0) { + from_id = new TLRPC.TL_peerUser(); + from_id.user_id = stream.readInt32(exception); + } + peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + if (from_id == null) { + from_id = peer_id; + } + if ((flags & 4) != 0) { + fwd_from = new TL_messageFwdHeader(); + Peer peer = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + if (peer != null) { + fwd_from.from_id = peer; + fwd_from.flags |= 1; + } + fwd_from.date = stream.readInt32(exception); + } + if ((flags & 2048) != 0) { + via_bot_id = stream.readInt32(exception); + } + if ((flags & 8) != 0) { + reply_to = new TLRPC.TL_messageReplyHeader(); + reply_to.reply_to_msg_id = stream.readInt32(exception); + } + date = stream.readInt32(exception); + message = stream.readString(exception); + if ((flags & 512) != 0) { + media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } + } else { + media = new TL_messageMediaEmpty(); + } + if ((flags & 64) != 0) { + reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 128) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + } + if ((flags & 1024) != 0) { + views = stream.readInt32(exception); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); + stream.writeInt32(flags); + stream.writeInt32(id); + if ((flags & 256) != 0) { + stream.writeInt32((int) from_id.user_id); + } + peer_id.serializeToStream(stream); + if ((flags & 4) != 0) { + if (fwd_from.from_id != null) { fwd_from.from_id.serializeToStream(stream); - } - stream.writeInt32(fwd_from.date); - } - if ((flags & 8) != 0) { - stream.writeInt32(reply_to.reply_to_msg_id); - } - stream.writeInt32(date); - stream.writeString(message); - if ((flags & 512) != 0) { - media.serializeToStream(stream); - } - if ((flags & 64) != 0) { - reply_markup.serializeToStream(stream); - } - if ((flags & 128) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - if ((flags & 1024) != 0) { - stream.writeInt32(views); - } - writeAttachPath(stream); - } - } + } + stream.writeInt32(fwd_from.date); + } + if ((flags & 2048) != 0) { + stream.writeInt32((int) via_bot_id); + } + if ((flags & 8) != 0) { + stream.writeInt32(reply_to.reply_to_msg_id); + } + stream.writeInt32(date); + stream.writeString(message); + if ((flags & 512) != 0) { + media.serializeToStream(stream); + } + if ((flags & 64) != 0) { + reply_markup.serializeToStream(stream); + } + if ((flags & 128) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + if ((flags & 1024) != 0) { + stream.writeInt32(views); + } + writeAttachPath(stream); + } + } + + public static class TL_message_old7 extends TL_message { + public static int constructor = 0x5ba66c13; + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + id = stream.readInt32(exception); + if ((flags & 256) != 0) { + from_id = new TLRPC.TL_peerUser(); + from_id.user_id = stream.readInt32(exception); + } + peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + if (from_id == null) { + from_id = peer_id; + } + if ((flags & 4) != 0) { + fwd_from = new TL_messageFwdHeader(); + Peer peer = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + if (peer != null) { + fwd_from.from_id = peer; + fwd_from.flags |= 1; + } + fwd_from.date = stream.readInt32(exception); + } + if ((flags & 8) != 0) { + reply_to = new TLRPC.TL_messageReplyHeader(); + reply_to.reply_to_msg_id = stream.readInt32(exception); + } + date = stream.readInt32(exception); + message = stream.readString(exception); + if ((flags & 512) != 0) { + media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } + } else { + media = new TL_messageMediaEmpty(); + } + if ((flags & 64) != 0) { + reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 128) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + } + if ((flags & 1024) != 0) { + views = stream.readInt32(exception); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); + stream.writeInt32(flags); + stream.writeInt32(id); + if ((flags & 256) != 0) { + stream.writeInt32((int) from_id.user_id); + } + peer_id.serializeToStream(stream); + if ((flags & 4) != 0) { + if (fwd_from.from_id != null) { + fwd_from.from_id.serializeToStream(stream); + } + stream.writeInt32(fwd_from.date); + } + if ((flags & 8) != 0) { + stream.writeInt32(reply_to.reply_to_msg_id); + } + stream.writeInt32(date); + stream.writeString(message); + if ((flags & 512) != 0) { + media.serializeToStream(stream); + } + if ((flags & 64) != 0) { + reply_markup.serializeToStream(stream); + } + if ((flags & 128) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + if ((flags & 1024) != 0) { + stream.writeInt32(views); + } + writeAttachPath(stream); + } + } public static class TL_messageForwarded_old2 extends Message { public static int constructor = 0xa367e716; @@ -52723,34 +53022,34 @@ public class TLRPC { public void readParams(AbstractSerializedData stream, boolean exception) { flags = stream.readInt32(exception); - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; id = stream.readInt32(exception); - fwd_from = new TL_messageFwdHeader(); - fwd_from.from_id = new TLRPC.TL_peerUser(); - fwd_from.from_id.user_id = stream.readInt32(exception); - fwd_from.flags |= 1; - fwd_from.date = stream.readInt32(exception); + fwd_from = new TL_messageFwdHeader(); + fwd_from.from_id = new TLRPC.TL_peerUser(); + fwd_from.from_id.user_id = stream.readInt32(exception); + fwd_from.flags |= 1; + fwd_from.date = stream.readInt32(exception); from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); date = stream.readInt32(exception); message = stream.readString(exception); flags |= MESSAGE_FLAG_FWD | MESSAGE_FLAG_HAS_FROM_ID | MESSAGE_FLAG_HAS_MEDIA; - media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } - } + media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } + } public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); stream.writeInt32(flags); stream.writeInt32(id); stream.writeInt32((int) fwd_from.from_id.user_id); @@ -53909,260 +54208,170 @@ public class TLRPC { } } - public static class TL_message_layer104 extends TL_message { - public static int constructor = 0x44f9b43d; - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; - silent = (flags & 8192) != 0; - post = (flags & 16384) != 0; - from_scheduled = (flags & 262144) != 0; - legacy = (flags & 524288) != 0; - id = stream.readInt32(exception); - if ((flags & 256) != 0) { - from_id = new TLRPC.TL_peerUser(); - from_id.user_id = stream.readInt32(exception); - } - peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 4) != 0) { - fwd_from = MessageFwdHeader.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 2048) != 0) { - via_bot_id = stream.readInt32(exception); - } - if ((flags & 8) != 0) { - reply_to = new TLRPC.TL_messageReplyHeader(); - reply_to.reply_to_msg_id = stream.readInt32(exception); - } - date = stream.readInt32(exception); - message = stream.readString(exception); - if ((flags & 512) != 0) { - media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null) { - ttl = media.ttl_seconds; //custom - } - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } - } - if ((flags & 64) != 0) { - reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 128) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - } - if ((flags & 1024) != 0) { - views = stream.readInt32(exception); - } - if ((flags & 32768) != 0) { - edit_date = stream.readInt32(exception); - } - if ((flags & 65536) != 0) { - post_author = stream.readString(exception); - } - if ((flags & 131072) != 0) { - grouped_id = stream.readInt64(exception); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); - flags = silent ? (flags | 8192) : (flags &~ 8192); - flags = post ? (flags | 16384) : (flags &~ 16384); - flags = from_scheduled ? (flags | 262144) : (flags &~ 262144); - flags = legacy ? (flags | 524288) : (flags &~ 524288); - stream.writeInt32(flags); - stream.writeInt32(id); - if ((flags & 256) != 0) { - stream.writeInt32((int) from_id.user_id); - } - peer_id.serializeToStream(stream); - if ((flags & 4) != 0) { - fwd_from.serializeToStream(stream); - } - if ((flags & 2048) != 0) { - stream.writeInt32((int) via_bot_id); - } - if ((flags & 8) != 0) { - stream.writeInt32(reply_to.reply_to_msg_id); - } - stream.writeInt32(date); - stream.writeString(message); - if ((flags & 512) != 0) { - media.serializeToStream(stream); - } - if ((flags & 64) != 0) { - reply_markup.serializeToStream(stream); - } - if ((flags & 128) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - if ((flags & 1024) != 0) { - stream.writeInt32(views); - } - if ((flags & 32768) != 0) { - stream.writeInt32(edit_date); - } - if ((flags & 65536) != 0) { - stream.writeString(post_author); - } - if ((flags & 131072) != 0) { - stream.writeInt64(grouped_id); - } - writeAttachPath(stream); - } - } - - public static class TL_message_old6 extends TL_message { - public static int constructor = 0x2bebfa86; - - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception) | MESSAGE_FLAG_HAS_FROM_ID; - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; - id = stream.readInt32(exception); - from_id = new TLRPC.TL_peerUser(); - from_id.user_id = stream.readInt32(exception); - peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 4) != 0) { - fwd_from = new TL_messageFwdHeader(); - fwd_from.from_id = new TLRPC.TL_peerUser(); - fwd_from.from_id.user_id = stream.readInt32(exception); - fwd_from.flags |= 1; - fwd_from.date = stream.readInt32(exception); - } - if ((flags & 8) != 0) { - reply_to = new TLRPC.TL_messageReplyHeader(); - reply_to.reply_to_msg_id = stream.readInt32(exception); - } - date = stream.readInt32(exception); - message = stream.readString(exception); - if ((flags & 512) != 0) { - media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } - } else { - media = new TL_messageMediaEmpty(); - } - if ((flags & 64) != 0) { - reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); - } - if ((flags & 128) != 0) { - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); - stream.writeInt32(flags); - stream.writeInt32(id); - stream.writeInt32((int) from_id.user_id); - peer_id.serializeToStream(stream); - if ((flags & 4) != 0) { - stream.writeInt32((int) fwd_from.from_id.user_id); - stream.writeInt32(fwd_from.date); - } - if ((flags & 8) != 0) { - stream.writeInt32(reply_to.reply_to_msg_id); - } - stream.writeInt32(date); - stream.writeString(message); - if ((flags & 512) != 0) { - media.serializeToStream(stream); - } - if ((flags & 64) != 0) { - reply_markup.serializeToStream(stream); - } - if ((flags & 128) != 0) { - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - } - writeAttachPath(stream); - } - } - - public static class TL_message_old5 extends TL_message { - public static int constructor = 0xf07814c8; - + public static class TL_message_layer104 extends TL_message { + public static int constructor = 0x44f9b43d; public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception) | MESSAGE_FLAG_HAS_FROM_ID | MESSAGE_FLAG_HAS_MEDIA; - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; + flags = stream.readInt32(exception); + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + silent = (flags & 8192) != 0; + post = (flags & 16384) != 0; + from_scheduled = (flags & 262144) != 0; + legacy = (flags & 524288) != 0; id = stream.readInt32(exception); - from_id = new TLRPC.TL_peerUser(); - from_id.user_id = stream.readInt32(exception); + if ((flags & 256) != 0) { + from_id = new TLRPC.TL_peerUser(); + from_id.user_id = stream.readInt32(exception); + } peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 4) != 0) { - fwd_from = new TL_messageFwdHeader(); - fwd_from.from_id = new TLRPC.TL_peerUser(); - fwd_from.from_id.user_id = stream.readInt32(exception); - fwd_from.flags |= 1; - fwd_from.date = stream.readInt32(exception); - } + if ((flags & 4) != 0) { + fwd_from = MessageFwdHeader.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 2048) != 0) { + via_bot_id = stream.readInt32(exception); + } if ((flags & 8) != 0) { reply_to = new TLRPC.TL_messageReplyHeader(); reply_to.reply_to_msg_id = stream.readInt32(exception); } date = stream.readInt32(exception); message = stream.readString(exception); - media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } + if ((flags & 512) != 0) { + media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + if (media != null) { + ttl = media.ttl_seconds; //custom + } + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } + } + if ((flags & 64) != 0) { + reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 128) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + } + if ((flags & 1024) != 0) { + views = stream.readInt32(exception); + } + if ((flags & 32768) != 0) { + edit_date = stream.readInt32(exception); + } + if ((flags & 65536) != 0) { + post_author = stream.readString(exception); + } + if ((flags & 131072) != 0) { + grouped_id = stream.readInt64(exception); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); + flags = silent ? (flags | 8192) : (flags &~ 8192); + flags = post ? (flags | 16384) : (flags &~ 16384); + flags = from_scheduled ? (flags | 262144) : (flags &~ 262144); + flags = legacy ? (flags | 524288) : (flags &~ 524288); + stream.writeInt32(flags); + stream.writeInt32(id); + if ((flags & 256) != 0) { + stream.writeInt32((int) from_id.user_id); + } + peer_id.serializeToStream(stream); + if ((flags & 4) != 0) { + fwd_from.serializeToStream(stream); + } + if ((flags & 2048) != 0) { + stream.writeInt32((int) via_bot_id); + } + if ((flags & 8) != 0) { + stream.writeInt32(reply_to.reply_to_msg_id); + } + stream.writeInt32(date); + stream.writeString(message); + if ((flags & 512) != 0) { + media.serializeToStream(stream); + } + if ((flags & 64) != 0) { + reply_markup.serializeToStream(stream); + } + if ((flags & 128) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + if ((flags & 1024) != 0) { + stream.writeInt32(views); + } + if ((flags & 32768) != 0) { + stream.writeInt32(edit_date); + } + if ((flags & 65536) != 0) { + stream.writeString(post_author); + } + if ((flags & 131072) != 0) { + stream.writeInt64(grouped_id); + } + writeAttachPath(stream); + } + } + + public static class TL_message_old6 extends TL_message { + public static int constructor = 0x2bebfa86; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception) | MESSAGE_FLAG_HAS_FROM_ID; + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + id = stream.readInt32(exception); + from_id = new TLRPC.TL_peerUser(); + from_id.user_id = stream.readInt32(exception); + peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 4) != 0) { + fwd_from = new TL_messageFwdHeader(); + fwd_from.from_id = new TLRPC.TL_peerUser(); + fwd_from.from_id.user_id = stream.readInt32(exception); + fwd_from.flags |= 1; + fwd_from.date = stream.readInt32(exception); + } + if ((flags & 8) != 0) { + reply_to = new TLRPC.TL_messageReplyHeader(); + reply_to.reply_to_msg_id = stream.readInt32(exception); + } + date = stream.readInt32(exception); + message = stream.readString(exception); + if ((flags & 512) != 0) { + media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } + } else { + media = new TL_messageMediaEmpty(); + } if ((flags & 64) != 0) { reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); } @@ -54187,15 +54396,105 @@ public class TLRPC { public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); stream.writeInt32(flags); stream.writeInt32(id); stream.writeInt32((int) from_id.user_id); peer_id.serializeToStream(stream); - if ((flags & 4) != 0) { + if ((flags & 4) != 0) { + stream.writeInt32((int) fwd_from.from_id.user_id); + stream.writeInt32(fwd_from.date); + } + if ((flags & 8) != 0) { + stream.writeInt32(reply_to.reply_to_msg_id); + } + stream.writeInt32(date); + stream.writeString(message); + if ((flags & 512) != 0) { + media.serializeToStream(stream); + } + if ((flags & 64) != 0) { + reply_markup.serializeToStream(stream); + } + if ((flags & 128) != 0) { + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + } + writeAttachPath(stream); + } + } + + public static class TL_message_old5 extends TL_message { + public static int constructor = 0xf07814c8; + + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception) | MESSAGE_FLAG_HAS_FROM_ID | MESSAGE_FLAG_HAS_MEDIA; + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + id = stream.readInt32(exception); + from_id = new TLRPC.TL_peerUser(); + from_id.user_id = stream.readInt32(exception); + peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + if ((flags & 4) != 0) { + fwd_from = new TL_messageFwdHeader(); + fwd_from.from_id = new TLRPC.TL_peerUser(); + fwd_from.from_id.user_id = stream.readInt32(exception); + fwd_from.flags |= 1; + fwd_from.date = stream.readInt32(exception); + } + if ((flags & 8) != 0) { + reply_to = new TLRPC.TL_messageReplyHeader(); + reply_to.reply_to_msg_id = stream.readInt32(exception); + } + date = stream.readInt32(exception); + message = stream.readString(exception); + media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } + if ((flags & 64) != 0) { + reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); + } + if ((flags & 128) != 0) { + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); + stream.writeInt32(flags); + stream.writeInt32(id); + stream.writeInt32((int) from_id.user_id); + peer_id.serializeToStream(stream); + if ((flags & 4) != 0) { stream.writeInt32((int) fwd_from.from_id.user_id); stream.writeInt32(fwd_from.date); } @@ -54216,53 +54515,53 @@ public class TLRPC { entities.get(a).serializeToStream(stream); } } - writeAttachPath(stream); + writeAttachPath(stream); } } - public static class TL_messageService_layer48 extends TL_messageService { - public static int constructor = 0xc06b9607; + public static class TL_messageService_layer48 extends TL_messageService { + public static int constructor = 0xc06b9607; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; - silent = (flags & 8192) != 0; - post = (flags & 16384) != 0; - id = stream.readInt32(exception); - if ((flags & 256) != 0) { + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + silent = (flags & 8192) != 0; + post = (flags & 16384) != 0; + id = stream.readInt32(exception); + if ((flags & 256) != 0) { from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); - } + } peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if (from_id == null) { - from_id = peer_id; - } - date = stream.readInt32(exception); - action = MessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); - } + if (from_id == null) { + from_id = peer_id; + } + date = stream.readInt32(exception); + action = MessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); - flags = silent ? (flags | 8192) : (flags &~ 8192); - flags = post ? (flags | 16384) : (flags &~ 16384); - stream.writeInt32(flags); - stream.writeInt32(id); - if ((flags & 256) != 0) { - stream.writeInt32((int) from_id.user_id); - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); + flags = silent ? (flags | 8192) : (flags &~ 8192); + flags = post ? (flags | 16384) : (flags &~ 16384); + stream.writeInt32(flags); + stream.writeInt32(id); + if ((flags & 256) != 0) { + stream.writeInt32((int) from_id.user_id); + } peer_id.serializeToStream(stream); - stream.writeInt32(date); - action.serializeToStream(stream); - } - } + stream.writeInt32(date); + action.serializeToStream(stream); + } + } public static class TL_message_old4 extends TL_message { public static int constructor = 0xc3060325; @@ -54270,21 +54569,21 @@ public class TLRPC { public void readParams(AbstractSerializedData stream, boolean exception) { flags = stream.readInt32(exception) | MESSAGE_FLAG_HAS_FROM_ID | MESSAGE_FLAG_HAS_MEDIA; - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; id = stream.readInt32(exception); from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 4) != 0) { - fwd_from = new TL_messageFwdHeader(); - fwd_from.from_id = new TLRPC.TL_peerUser(); - fwd_from.from_id.user_id = stream.readInt32(exception); - fwd_from.flags |= 1; - fwd_from.date = stream.readInt32(exception); - } + if ((flags & 4) != 0) { + fwd_from = new TL_messageFwdHeader(); + fwd_from.from_id = new TLRPC.TL_peerUser(); + fwd_from.from_id.user_id = stream.readInt32(exception); + fwd_from.flags |= 1; + fwd_from.date = stream.readInt32(exception); + } if ((flags & 8) != 0) { reply_to = new TLRPC.TL_messageReplyHeader(); reply_to.reply_to_msg_id = stream.readInt32(exception); @@ -54292,9 +54591,9 @@ public class TLRPC { date = stream.readInt32(exception); message = stream.readString(exception); media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } if ((flags & 64) != 0) { reply_markup = ReplyMarkup.TLdeserialize(stream, stream.readInt32(exception), exception); } @@ -54302,10 +54601,10 @@ public class TLRPC { public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); stream.writeInt32(flags); stream.writeInt32(id); stream.writeInt32((int) from_id.user_id); @@ -54323,7 +54622,7 @@ public class TLRPC { if ((flags & 64) != 0) { reply_markup.serializeToStream(stream); } - writeAttachPath(stream); + writeAttachPath(stream); } } @@ -54332,21 +54631,21 @@ public class TLRPC { public void readParams(AbstractSerializedData stream, boolean exception) { flags = stream.readInt32(exception) | MESSAGE_FLAG_HAS_FROM_ID | MESSAGE_FLAG_HAS_MEDIA; - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; id = stream.readInt32(exception); from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 4) != 0) { - fwd_from = new TL_messageFwdHeader(); - fwd_from.from_id = new TLRPC.TL_peerUser(); - fwd_from.from_id.user_id = stream.readInt32(exception); - fwd_from.flags |= 1; - fwd_from.date = stream.readInt32(exception); - } + if ((flags & 4) != 0) { + fwd_from = new TL_messageFwdHeader(); + fwd_from.from_id = new TLRPC.TL_peerUser(); + fwd_from.from_id.user_id = stream.readInt32(exception); + fwd_from.flags |= 1; + fwd_from.date = stream.readInt32(exception); + } if ((flags & 8) != 0) { reply_to = new TLRPC.TL_messageReplyHeader(); reply_to.reply_to_msg_id = stream.readInt32(exception); @@ -54354,24 +54653,24 @@ public class TLRPC { date = stream.readInt32(exception); message = stream.readString(exception); media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } } public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); stream.writeInt32(flags); stream.writeInt32(id); stream.writeInt32((int) from_id.user_id); peer_id.serializeToStream(stream); if ((flags & 4) != 0) { stream.writeInt32((int) fwd_from.from_id.user_id); - stream.writeInt32(fwd_from.date); + stream.writeInt32(fwd_from.date); } if ((flags & 8) != 0) { stream.writeInt32(reply_to.reply_to_msg_id); @@ -54379,7 +54678,7 @@ public class TLRPC { stream.writeInt32(date); stream.writeString(message); media.serializeToStream(stream); - writeAttachPath(stream); + writeAttachPath(stream); } } @@ -54389,10 +54688,10 @@ public class TLRPC { public void readParams(AbstractSerializedData stream, boolean exception) { flags = stream.readInt32(exception) | MESSAGE_FLAG_HAS_FROM_ID | MESSAGE_FLAG_HAS_MEDIA; - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; id = stream.readInt32(exception); from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); @@ -54400,17 +54699,17 @@ public class TLRPC { date = stream.readInt32(exception); message = stream.readString(exception); media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } } public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); stream.writeInt32(flags); stream.writeInt32(id); stream.writeInt32((int) from_id.user_id); @@ -54431,8 +54730,8 @@ public class TLRPC { from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - out = stream.readBool(exception); - unread = stream.readBool(exception); + out = stream.readBool(exception); + unread = stream.readBool(exception); flags |= MESSAGE_FLAG_HAS_FROM_ID; date = stream.readInt32(exception); action = MessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); @@ -54456,23 +54755,23 @@ public class TLRPC { public void readParams(AbstractSerializedData stream, boolean exception) { id = stream.readInt32(exception); - fwd_from = new TL_messageFwdHeader(); - fwd_from.from_id = new TLRPC.TL_peerUser(); - fwd_from.from_id.user_id = stream.readInt32(exception); - fwd_from.flags |= 1; - fwd_from.date = stream.readInt32(exception); + fwd_from = new TL_messageFwdHeader(); + fwd_from.from_id = new TLRPC.TL_peerUser(); + fwd_from.from_id.user_id = stream.readInt32(exception); + fwd_from.flags |= 1; + fwd_from.date = stream.readInt32(exception); from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - out = stream.readBool(exception); - unread = stream.readBool(exception); + out = stream.readBool(exception); + unread = stream.readBool(exception); flags |= MESSAGE_FLAG_FWD | MESSAGE_FLAG_HAS_FROM_ID | MESSAGE_FLAG_HAS_MEDIA; date = stream.readInt32(exception); message = stream.readString(exception); media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } } public void serializeToStream(AbstractSerializedData stream) { @@ -54482,8 +54781,8 @@ public class TLRPC { stream.writeInt32(fwd_from.date); stream.writeInt32((int) from_id.user_id); peer_id.serializeToStream(stream); - stream.writeBool(out); - stream.writeBool(unread); + stream.writeBool(out); + stream.writeBool(unread); stream.writeInt32(date); stream.writeString(message); media.serializeToStream(stream); @@ -54499,15 +54798,15 @@ public class TLRPC { from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - out = stream.readBool(exception); - unread = stream.readBool(exception); + out = stream.readBool(exception); + unread = stream.readBool(exception); flags |= MESSAGE_FLAG_HAS_FROM_ID | MESSAGE_FLAG_HAS_MEDIA; date = stream.readInt32(exception); message = stream.readString(exception); media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } } public void serializeToStream(AbstractSerializedData stream) { @@ -54515,8 +54814,8 @@ public class TLRPC { stream.writeInt32(id); stream.writeInt32((int) from_id.user_id); peer_id.serializeToStream(stream); - stream.writeBool(out); - stream.writeBool(unread); + stream.writeBool(out); + stream.writeBool(unread); stream.writeInt32(date); stream.writeString(message); media.serializeToStream(stream); @@ -54524,169 +54823,15 @@ public class TLRPC { } } - public static class TL_message_secret extends TL_message { - public static int constructor = 0x555555fa; - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; - id = stream.readInt32(exception); - ttl = stream.readInt32(exception); - from_id = new TLRPC.TL_peerUser(); - from_id.user_id = stream.readInt32(exception); - peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - date = stream.readInt32(exception); - message = stream.readString(exception); - media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - if ((flags & 2048) != 0) { - via_bot_name = stream.readString(exception); - } - if ((flags & 8) != 0) { - reply_to = new TL_messageReplyHeader(); - reply_to.reply_to_random_id = stream.readInt64(exception); - } - if ((flags & 131072) != 0) { - grouped_id = stream.readInt64(exception); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); - stream.writeInt32(flags); - stream.writeInt32(id); - stream.writeInt32(ttl); - stream.writeInt32((int) from_id.user_id); - peer_id.serializeToStream(stream); - stream.writeInt32(date); - stream.writeString(message); - media.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - if ((flags & 2048) != 0) { - stream.writeString(via_bot_name); - } - if ((flags & 8) != 0) { - stream.writeInt64(reply_to.reply_to_random_id); - } - if ((flags & 131072) != 0) { - stream.writeInt64(grouped_id); - } - writeAttachPath(stream); - } - } - - public static class TL_message_secret_layer72 extends TL_message { - public static int constructor = 0x555555f9; - - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; - id = stream.readInt32(exception); - ttl = stream.readInt32(exception); - from_id = new TLRPC.TL_peerUser(); - from_id.user_id = stream.readInt32(exception); - peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - date = stream.readInt32(exception); - message = stream.readString(exception); - media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } - int magic = stream.readInt32(exception); - if (magic != 0x1cb5c415) { - if (exception) { - throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); - } - return; - } - int count = stream.readInt32(exception); - for (int a = 0; a < count; a++) { - MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return; - } - entities.add(object); - } - if ((flags & 2048) != 0) { - via_bot_name = stream.readString(exception); - } - if ((flags & 8) != 0) { - reply_to = new TL_messageReplyHeader(); - reply_to.reply_to_random_id = stream.readInt64(exception); - } - } - - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); - stream.writeInt32(flags); - stream.writeInt32(id); - stream.writeInt32(ttl); - stream.writeInt32((int) from_id.user_id); - peer_id.serializeToStream(stream); - stream.writeInt32(date); - stream.writeString(message); - media.serializeToStream(stream); - stream.writeInt32(0x1cb5c415); - int count = entities.size(); - stream.writeInt32(count); - for (int a = 0; a < count; a++) { - entities.get(a).serializeToStream(stream); - } - if ((flags & 2048) != 0) { - stream.writeString(via_bot_name); - } - if ((flags & 8) != 0) { - stream.writeInt64(reply_to.reply_to_random_id); - } - writeAttachPath(stream); - } - } - - public static class TL_message_secret_old extends TL_message_secret { - public static int constructor = 0x555555F8; + public static class TL_message_secret extends TL_message { + public static int constructor = 0x555555fa; public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception) | MESSAGE_FLAG_HAS_FROM_ID | MESSAGE_FLAG_HAS_MEDIA; - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; + flags = stream.readInt32(exception); + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; id = stream.readInt32(exception); ttl = stream.readInt32(exception); from_id = new TLRPC.TL_peerUser(); @@ -54695,17 +54840,171 @@ public class TLRPC { date = stream.readInt32(exception); message = stream.readString(exception); media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); - if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { - message = media.captionLegacy; - } + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + if ((flags & 2048) != 0) { + via_bot_name = stream.readString(exception); + } + if ((flags & 8) != 0) { + reply_to = new TL_messageReplyHeader(); + reply_to.reply_to_random_id = stream.readInt64(exception); + } + if ((flags & 131072) != 0) { + grouped_id = stream.readInt64(exception); + } } public void serializeToStream(AbstractSerializedData stream) { stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); + stream.writeInt32(flags); + stream.writeInt32(id); + stream.writeInt32(ttl); + stream.writeInt32((int) from_id.user_id); + peer_id.serializeToStream(stream); + stream.writeInt32(date); + stream.writeString(message); + media.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + if ((flags & 2048) != 0) { + stream.writeString(via_bot_name); + } + if ((flags & 8) != 0) { + stream.writeInt64(reply_to.reply_to_random_id); + } + if ((flags & 131072) != 0) { + stream.writeInt64(grouped_id); + } + writeAttachPath(stream); + } + } + + public static class TL_message_secret_layer72 extends TL_message { + public static int constructor = 0x555555f9; + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + id = stream.readInt32(exception); + ttl = stream.readInt32(exception); + from_id = new TLRPC.TL_peerUser(); + from_id.user_id = stream.readInt32(exception); + peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + date = stream.readInt32(exception); + message = stream.readString(exception); + media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } + int magic = stream.readInt32(exception); + if (magic != 0x1cb5c415) { + if (exception) { + throw new RuntimeException(String.format("wrong Vector magic, got %x", magic)); + } + return; + } + int count = stream.readInt32(exception); + for (int a = 0; a < count; a++) { + MessageEntity object = MessageEntity.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return; + } + entities.add(object); + } + if ((flags & 2048) != 0) { + via_bot_name = stream.readString(exception); + } + if ((flags & 8) != 0) { + reply_to = new TL_messageReplyHeader(); + reply_to.reply_to_random_id = stream.readInt64(exception); + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); + stream.writeInt32(flags); + stream.writeInt32(id); + stream.writeInt32(ttl); + stream.writeInt32((int) from_id.user_id); + peer_id.serializeToStream(stream); + stream.writeInt32(date); + stream.writeString(message); + media.serializeToStream(stream); + stream.writeInt32(0x1cb5c415); + int count = entities.size(); + stream.writeInt32(count); + for (int a = 0; a < count; a++) { + entities.get(a).serializeToStream(stream); + } + if ((flags & 2048) != 0) { + stream.writeString(via_bot_name); + } + if ((flags & 8) != 0) { + stream.writeInt64(reply_to.reply_to_random_id); + } + writeAttachPath(stream); + } + } + + public static class TL_message_secret_old extends TL_message_secret { + public static int constructor = 0x555555F8; + + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception) | MESSAGE_FLAG_HAS_FROM_ID | MESSAGE_FLAG_HAS_MEDIA; + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + id = stream.readInt32(exception); + ttl = stream.readInt32(exception); + from_id = new TLRPC.TL_peerUser(); + from_id.user_id = stream.readInt32(exception); + peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); + date = stream.readInt32(exception); + message = stream.readString(exception); + media = MessageMedia.TLdeserialize(stream, stream.readInt32(exception), exception); + if (media != null && !TextUtils.isEmpty(media.captionLegacy)) { + message = media.captionLegacy; + } + } + + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); stream.writeInt32(flags); stream.writeInt32(id); stream.writeInt32(ttl); @@ -54817,55 +55116,55 @@ public class TLRPC { } } - public static class TL_messageService_layer118 extends TL_messageService { - public static int constructor = 0x9e19a1f6; + public static class TL_messageService_layer118 extends TL_messageService { + public static int constructor = 0x9e19a1f6; - public void readParams(AbstractSerializedData stream, boolean exception) { - flags = stream.readInt32(exception); - unread = (flags & 1) != 0; - out = (flags & 2) != 0; - mentioned = (flags & 16) != 0; - media_unread = (flags & 32) != 0; - silent = (flags & 8192) != 0; - post = (flags & 16384) != 0; + public void readParams(AbstractSerializedData stream, boolean exception) { + flags = stream.readInt32(exception); + unread = (flags & 1) != 0; + out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + silent = (flags & 8192) != 0; + post = (flags & 16384) != 0; legacy = (flags & 524288) != 0; - id = stream.readInt32(exception); - if ((flags & 256) != 0) { + id = stream.readInt32(exception); + if ((flags & 256) != 0) { from_id = new TLRPC.TL_peerUser(); from_id.user_id = stream.readInt32(exception); - } + } peer_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); - if ((flags & 8) != 0) { + if ((flags & 8) != 0) { reply_to = new TLRPC.TL_messageReplyHeader(); reply_to.reply_to_msg_id = stream.readInt32(exception); - } - date = stream.readInt32(exception); - action = MessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); - } + } + date = stream.readInt32(exception); + action = MessageAction.TLdeserialize(stream, stream.readInt32(exception), exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - flags = unread ? (flags | 1) : (flags &~ 1); - flags = out ? (flags | 2) : (flags &~ 2); - flags = mentioned ? (flags | 16) : (flags &~ 16); - flags = media_unread ? (flags | 32) : (flags &~ 32); - flags = silent ? (flags | 8192) : (flags &~ 8192); - flags = post ? (flags | 16384) : (flags &~ 16384); + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + flags = unread ? (flags | 1) : (flags &~ 1); + flags = out ? (flags | 2) : (flags &~ 2); + flags = mentioned ? (flags | 16) : (flags &~ 16); + flags = media_unread ? (flags | 32) : (flags &~ 32); + flags = silent ? (flags | 8192) : (flags &~ 8192); + flags = post ? (flags | 16384) : (flags &~ 16384); flags = legacy ? (flags | 524288) : (flags &~ 524288); - stream.writeInt32(flags); - stream.writeInt32(id); - if ((flags & 256) != 0) { - stream.writeInt32((int) from_id.user_id); - } + stream.writeInt32(flags); + stream.writeInt32(id); + if ((flags & 256) != 0) { + stream.writeInt32((int) from_id.user_id); + } peer_id.serializeToStream(stream); - if ((flags & 8) != 0) { - stream.writeInt32(reply_to.reply_to_msg_id); - } - stream.writeInt32(date); - action.serializeToStream(stream); + if ((flags & 8) != 0) { + stream.writeInt32(reply_to.reply_to_msg_id); + } + stream.writeInt32(date); + action.serializeToStream(stream); writeAttachPath(stream); - } - } + } + } //Message end //TL_dialog start @@ -54994,13 +55293,13 @@ public class TLRPC { } //TL_dialog end - //ChatParticipant start - public static class TL_chatChannelParticipant extends ChatParticipant { - public static int constructor = 0xc8d7493e; + //ChatParticipant start + public static class TL_chatChannelParticipant extends ChatParticipant { + public static int constructor = 0xc8d7493e; - public ChannelParticipant channelParticipant; - } - //ChatParticipant end + public ChannelParticipant channelParticipant; + } + //ChatParticipant end //Chat start public static class TL_chatEmpty extends Chat { @@ -55061,7 +55360,7 @@ public class TLRPC { return; } if (bytes != null) { - bytes.reuse(); + bytes.reuse(); bytes = null; } } @@ -55131,294 +55430,294 @@ public class TLRPC { } } - public static class TL_upload_getWebFile extends TLObject { - public static int constructor = 0x24e6818d; + public static class TL_upload_getWebFile extends TLObject { + public static int constructor = 0x24e6818d; - public InputWebFileLocation location; - public int offset; - public int limit; + public InputWebFileLocation location; + public int offset; + public int limit; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return TL_upload_webFile.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return TL_upload_webFile.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - location.serializeToStream(stream); - stream.writeInt32(offset); - stream.writeInt32(limit); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + location.serializeToStream(stream); + stream.writeInt32(offset); + stream.writeInt32(limit); + } + } - public static class TL_upload_getCdnFile extends TLObject { - public static int constructor = 0x2000bcc3; + public static class TL_upload_getCdnFile extends TLObject { + public static int constructor = 0x2000bcc3; - public byte[] file_token; - public int offset; - public int limit; + public byte[] file_token; + public int offset; + public int limit; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return upload_CdnFile.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return upload_CdnFile.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(file_token); - stream.writeInt32(offset); - stream.writeInt32(limit); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(file_token); + stream.writeInt32(offset); + stream.writeInt32(limit); + } + } - public static class TL_upload_reuploadCdnFile extends TLObject { - public static int constructor = 0x9b2754a8; + public static class TL_upload_reuploadCdnFile extends TLObject { + public static int constructor = 0x9b2754a8; - public byte[] file_token; - public byte[] request_token; + public byte[] file_token; + public byte[] request_token; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - TL_fileHash object = TL_fileHash.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + TL_fileHash object = TL_fileHash.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(file_token); - stream.writeByteArray(request_token); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(file_token); + stream.writeByteArray(request_token); + } + } - public static class TL_upload_getCdnFileHashes extends TLObject { - public static int constructor = 0x4da54231; + public static class TL_upload_getCdnFileHashes extends TLObject { + public static int constructor = 0x4da54231; - public byte[] file_token; - public int offset; + public byte[] file_token; + public int offset; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - TL_fileHash object = TL_fileHash.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + TL_fileHash object = TL_fileHash.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(file_token); - stream.writeInt32(offset); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(file_token); + stream.writeInt32(offset); + } + } - public static class TL_upload_getFileHashes extends TLObject { - public static int constructor = 0xc7025931; + public static class TL_upload_getFileHashes extends TLObject { + public static int constructor = 0xc7025931; - public InputFileLocation location; - public int offset; + public InputFileLocation location; + public int offset; - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - Vector vector = new Vector(); - int size = stream.readInt32(exception); - for (int a = 0; a < size; a++) { - TL_fileHash object = TL_fileHash.TLdeserialize(stream, stream.readInt32(exception), exception); - if (object == null) { - return vector; - } - vector.objects.add(object); - } - return vector; - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + Vector vector = new Vector(); + int size = stream.readInt32(exception); + for (int a = 0; a < size; a++) { + TL_fileHash object = TL_fileHash.TLdeserialize(stream, stream.readInt32(exception), exception); + if (object == null) { + return vector; + } + vector.objects.add(object); + } + return vector; + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - location.serializeToStream(stream); - stream.writeInt32(offset); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + location.serializeToStream(stream); + stream.writeInt32(offset); + } + } - public static class TL_upload_webFile extends TLObject { - public static int constructor = 0x21e753bc; + public static class TL_upload_webFile extends TLObject { + public static int constructor = 0x21e753bc; - public int size; - public String mime_type; - public storage_FileType file_type; - public int mtime; - public NativeByteBuffer bytes; + public int size; + public String mime_type; + public storage_FileType file_type; + public int mtime; + public NativeByteBuffer bytes; - public static TL_upload_webFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - if (TL_upload_webFile.constructor != constructor) { - if (exception) { - throw new RuntimeException(String.format("can't parse magic %x in TL_upload_webFile", constructor)); - } else { - return null; - } - } - TL_upload_webFile result = new TL_upload_webFile(); - result.readParams(stream, exception); - return result; - } + public static TL_upload_webFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + if (TL_upload_webFile.constructor != constructor) { + if (exception) { + throw new RuntimeException(String.format("can't parse magic %x in TL_upload_webFile", constructor)); + } else { + return null; + } + } + TL_upload_webFile result = new TL_upload_webFile(); + result.readParams(stream, exception); + return result; + } - public void readParams(AbstractSerializedData stream, boolean exception) { - size = stream.readInt32(exception); - mime_type = stream.readString(exception); - file_type = storage_FileType.TLdeserialize(stream, stream.readInt32(exception), exception); - mtime = stream.readInt32(exception); - bytes = stream.readByteBuffer(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + size = stream.readInt32(exception); + mime_type = stream.readString(exception); + file_type = storage_FileType.TLdeserialize(stream, stream.readInt32(exception), exception); + mtime = stream.readInt32(exception); + bytes = stream.readByteBuffer(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeInt32(size); - stream.writeString(mime_type); - file_type.serializeToStream(stream); - stream.writeInt32(mtime); - stream.writeByteBuffer(bytes); - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeInt32(size); + stream.writeString(mime_type); + file_type.serializeToStream(stream); + stream.writeInt32(mtime); + stream.writeByteBuffer(bytes); + } - @Override - public void freeResources() { - if (disableFree) { - return; - } - if (bytes != null) { - bytes.reuse(); - bytes = null; - } - } - } + @Override + public void freeResources() { + if (disableFree) { + return; + } + if (bytes != null) { + bytes.reuse(); + bytes = null; + } + } + } - public static abstract class upload_File extends TLObject { - public storage_FileType type; - public int mtime; - public NativeByteBuffer bytes; - public int dc_id; - public byte[] file_token; - public byte[] encryption_key; - public byte[] encryption_iv; + public static abstract class upload_File extends TLObject { + public storage_FileType type; + public int mtime; + public NativeByteBuffer bytes; + public int dc_id; + public byte[] file_token; + public byte[] encryption_key; + public byte[] encryption_iv; public ArrayList file_hashes = new ArrayList<>(); - public static upload_File TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - upload_File result = null; - switch (constructor) { - case 0x96a18d5: - result = new TL_upload_file(); - break; + public static upload_File TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + upload_File result = null; + switch (constructor) { + case 0x96a18d5: + result = new TL_upload_file(); + break; case 0xf18cda44: result = new TL_upload_fileCdnRedirect(); break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in upload_File", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in upload_File", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static abstract class upload_CdnFile extends TLObject { - public NativeByteBuffer bytes; - public byte[] request_token; + public static abstract class upload_CdnFile extends TLObject { + public NativeByteBuffer bytes; + public byte[] request_token; - public static upload_CdnFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { - upload_CdnFile result = null; - switch (constructor) { - case 0xa99fca4f: - result = new TL_upload_cdnFile(); - break; - case 0xeea8e46e: - result = new TL_upload_cdnFileReuploadNeeded(); - break; - } - if (result == null && exception) { - throw new RuntimeException(String.format("can't parse magic %x in upload_CdnFile", constructor)); - } - if (result != null) { - result.readParams(stream, exception); - } - return result; - } - } + public static upload_CdnFile TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) { + upload_CdnFile result = null; + switch (constructor) { + case 0xa99fca4f: + result = new TL_upload_cdnFile(); + break; + case 0xeea8e46e: + result = new TL_upload_cdnFileReuploadNeeded(); + break; + } + if (result == null && exception) { + throw new RuntimeException(String.format("can't parse magic %x in upload_CdnFile", constructor)); + } + if (result != null) { + result.readParams(stream, exception); + } + return result; + } + } - public static class TL_upload_cdnFile extends upload_CdnFile { - public static int constructor = 0xa99fca4f; + public static class TL_upload_cdnFile extends upload_CdnFile { + public static int constructor = 0xa99fca4f; - public void readParams(AbstractSerializedData stream, boolean exception) { - bytes = stream.readByteBuffer(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + bytes = stream.readByteBuffer(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteBuffer(bytes); - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteBuffer(bytes); + } - @Override - public void freeResources() { - if (disableFree) { - return; - } - if (bytes != null) { - bytes.reuse(); - bytes = null; - } - } - } + @Override + public void freeResources() { + if (disableFree) { + return; + } + if (bytes != null) { + bytes.reuse(); + bytes = null; + } + } + } - public static class TL_upload_cdnFileReuploadNeeded extends upload_CdnFile { - public static int constructor = 0xeea8e46e; + public static class TL_upload_cdnFileReuploadNeeded extends upload_CdnFile { + public static int constructor = 0xeea8e46e; - public void readParams(AbstractSerializedData stream, boolean exception) { - request_token = stream.readByteArray(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + request_token = stream.readByteArray(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - stream.writeByteArray(request_token); - } - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + stream.writeByteArray(request_token); + } + } - public static class TL_upload_file extends upload_File { - public static int constructor = 0x96a18d5; + public static class TL_upload_file extends upload_File { + public static int constructor = 0x96a18d5; - public void readParams(AbstractSerializedData stream, boolean exception) { - type = storage_FileType.TLdeserialize(stream, stream.readInt32(exception), exception); - mtime = stream.readInt32(exception); - bytes = stream.readByteBuffer(exception); - } + public void readParams(AbstractSerializedData stream, boolean exception) { + type = storage_FileType.TLdeserialize(stream, stream.readInt32(exception), exception); + mtime = stream.readInt32(exception); + bytes = stream.readByteBuffer(exception); + } - public void serializeToStream(AbstractSerializedData stream) { - stream.writeInt32(constructor); - type.serializeToStream(stream); - stream.writeInt32(mtime); - stream.writeByteBuffer(bytes); - } + public void serializeToStream(AbstractSerializedData stream) { + stream.writeInt32(constructor); + type.serializeToStream(stream); + stream.writeInt32(mtime); + stream.writeByteBuffer(bytes); + } - @Override - public void freeResources() { - if (disableFree) { - return; - } - if (bytes != null) { - bytes.reuse(); - bytes = null; - } - } - } + @Override + public void freeResources() { + if (disableFree) { + return; + } + if (bytes != null) { + bytes.reuse(); + bytes = null; + } + } + } public static class TL_upload_fileCdnRedirect extends upload_File { public static int constructor = 0xf18cda44; @@ -55438,11 +55737,11 @@ public class TLRPC { } int count = stream.readInt32(exception); for (int a = 0; a < count; a++) { - TL_fileHash object = TL_fileHash.TLdeserialize(stream, stream.readInt32(exception), exception); + TL_fileHash object = TL_fileHash.TLdeserialize(stream, stream.readInt32(exception), exception); if (object == null) { return; } - file_hashes.add(object); + file_hashes.add(object); } } @@ -55456,7 +55755,7 @@ public class TLRPC { int count = file_hashes.size(); stream.writeInt32(count); for (int a = 0; a < count; a++) { - file_hashes.get(a).serializeToStream(stream); + file_hashes.get(a).serializeToStream(stream); } } } @@ -55583,25 +55882,25 @@ public class TLRPC { } } - public static class TL_messages_sendEncryptedMultiMedia extends TLObject { - public static int constructor = 0xcacacaca; + public static class TL_messages_sendEncryptedMultiMedia extends TLObject { + public static int constructor = 0xcacacaca; - public ArrayList messages = new ArrayList<>(); - public ArrayList files = new ArrayList<>(); + public ArrayList messages = new ArrayList<>(); + public ArrayList files = new ArrayList<>(); - public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { - return messages_SentEncryptedMessage.TLdeserialize(stream, constructor, exception); - } + public TLObject deserializeResponse(AbstractSerializedData stream, int constructor, boolean exception) { + return messages_SentEncryptedMessage.TLdeserialize(stream, constructor, exception); + } - public void serializeToStream(AbstractSerializedData stream) { + public void serializeToStream(AbstractSerializedData stream) { - } + } - @Override - public void freeResources() { + @Override + public void freeResources() { - } - } + } + } public static class TL_messages_sendEncrypted extends TLObject { public static int constructor = 0x44fa7a15;