diff --git a/TMessagesProj/build.gradle b/TMessagesProj/build.gradle
index 3d0a989b1..c83bc962a 100644
--- a/TMessagesProj/build.gradle
+++ b/TMessagesProj/build.gradle
@@ -3,15 +3,15 @@ import cn.hutool.core.util.RuntimeUtil
apply plugin: "com.android.application"
apply plugin: "kotlin-android"
-def verName = "8.3.1-1"
-def verCode = 515
+def verName = "8.4.2-preview01"
+def verCode = 520
if (System.getenv("DEBUG_BUILD") == "true") {
verName += "-" + RuntimeUtil.execForStr("git log --pretty=format:'%h' -n 1")
}
-def officialVer = "8.3.1"
-def officialCode = 2495
+def officialVer = "8.4.2"
+def officialCode = 2526
def serviceAccountCredentialsFile = rootProject.file("service_account_credentials.json")
diff --git a/TMessagesProj/proguard-rules.pro b/TMessagesProj/proguard-rules.pro
index b3dbe039c..8956fc6e7 100644
--- a/TMessagesProj/proguard-rules.pro
+++ b/TMessagesProj/proguard-rules.pro
@@ -69,8 +69,8 @@
-keep class tw.nekomimi.nekogram.InternalUpdater$NekoXReleaseNote { *; }
-keep class tw.nekomimi.nekogram.InternalUpdater$NekoXAPK { *; }
--keep class tw.nekomimi.nkmr.MiniCDNDrive$metaJSON { *; }
--keep class tw.nekomimi.nkmr.MiniCDNDrive$metaJSON_Block { *; }
+## https://developers.google.com/ml-kit/known-issues#android_issues
+#-keep class com.google.mlkit.nl.languageid.internal.LanguageIdentificationJni { *; }
# Constant folding for resource integers may mean that a resource passed to this method appears to be unused. Keep the method to prevent this from happening.
-keep class com.google.android.exoplayer2.upstream.RawResourceDataSource {
diff --git a/TMessagesProj/src/gservcies/java/org/telegram/messenger/GcmPushListenerService.java b/TMessagesProj/src/gservcies/java/org/telegram/messenger/GcmPushListenerService.java
index c1c63b045..86f868f54 100644
--- a/TMessagesProj/src/gservcies/java/org/telegram/messenger/GcmPushListenerService.java
+++ b/TMessagesProj/src/gservcies/java/org/telegram/messenger/GcmPushListenerService.java
@@ -315,6 +315,11 @@ public class GcmPushListenerService extends FirebaseMessagingService {
processNotification = true;
}
}
+
+ if (loc_key.startsWith("REACT_") || loc_key.startsWith("CHAT_REACT_")) {
+ processNotification = true;
+ }
+
if (processNotification) {
long chat_from_id = custom.optLong("chat_from_id", 0);
long chat_from_broadcast_id = custom.optLong("chat_from_broadcast_id", 0);
@@ -361,7 +366,9 @@ public class GcmPushListenerService extends FirebaseMessagingService {
if (BuildVars.LOGS_ENABLED) {
FileLog.d("GCM received message notification " + loc_key + " for dialogId = " + dialogId + " mid = " + msg_id);
}
- switch (loc_key) {
+ if (loc_key.startsWith("REACT_") || loc_key.startsWith("CHAT_REACT_")) {
+ messageText = getReactedText(loc_key, args);
+ } else {switch (loc_key) {
case "MESSAGE_TEXT":
case "CHANNEL_MESSAGE_TEXT": {
messageText = LocaleController.formatString("NotificationMessageText", R.string.NotificationMessageText, args[0], args[1]);
@@ -745,274 +752,279 @@ public class GcmPushListenerService extends FirebaseMessagingService {
break;
}
case "CHAT_MESSAGE_FWDS": {
- messageText = LocaleController.formatString("NotificationGroupForwardedFew", R.string.NotificationGroupForwardedFew, args[0], args[1], LocaleController.formatPluralString("messages", Utilities.parseInt(args[2])));
- localMessage = true;
- break;
- }
- case "CHAT_MESSAGE_PHOTOS": {
- messageText = LocaleController.formatString("NotificationGroupFew", R.string.NotificationGroupFew, args[0], args[1], LocaleController.formatPluralString("Photos", Utilities.parseInt(args[2])));
- localMessage = true;
- break;
- }
- case "CHAT_MESSAGE_VIDEOS": {
- messageText = LocaleController.formatString("NotificationGroupFew", R.string.NotificationGroupFew, args[0], args[1], LocaleController.formatPluralString("Videos", Utilities.parseInt(args[2])));
- localMessage = true;
- break;
- }
- case "CHAT_MESSAGE_PLAYLIST": {
- messageText = LocaleController.formatString("NotificationGroupFew", R.string.NotificationGroupFew, args[0], args[1], LocaleController.formatPluralString("MusicFiles", Utilities.parseInt(args[2])));
- localMessage = true;
- break;
- }
- case "CHAT_MESSAGE_DOCS": {
- messageText = LocaleController.formatString("NotificationGroupFew", R.string.NotificationGroupFew, args[0], args[1], LocaleController.formatPluralString("Files", Utilities.parseInt(args[2])));
- localMessage = true;
- break;
- }
- case "CHAT_MESSAGES": {
- messageText = LocaleController.formatString("NotificationGroupAlbum", R.string.NotificationGroupAlbum, args[0], args[1]);
- localMessage = true;
- break;
- }
- case "PINNED_TEXT": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedTextUser", R.string.NotificationActionPinnedTextUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedText", R.string.NotificationActionPinnedText, args[0], args[1], args[2]);
- } else {
- messageText = LocaleController.formatString("NotificationActionPinnedTextChannel", R.string.NotificationActionPinnedTextChannel, args[0], args[1]);
- }
+ messageText = LocaleController.formatString("NotificationGroupForwardedFew", R.string.NotificationGroupForwardedFew, args[0], args[1], LocaleController.formatPluralString("messages", Utilities.parseInt(args[2])));
+ localMessage = true;
+ break;
}
- break;
- }
- case "PINNED_NOTEXT": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedNoTextUser", R.string.NotificationActionPinnedNoTextUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedNoText", R.string.NotificationActionPinnedNoText, args[0], args[1]);
- } else {
- messageText = LocaleController.formatString("NotificationActionPinnedNoTextChannel", R.string.NotificationActionPinnedNoTextChannel, args[0]);
- }
+ case "CHAT_MESSAGE_PHOTOS": {
+ messageText = LocaleController.formatString("NotificationGroupFew", R.string.NotificationGroupFew, args[0], args[1], LocaleController.formatPluralString("Photos", Utilities.parseInt(args[2])));
+ localMessage = true;
+ break;
}
- break;
- }
- case "PINNED_PHOTO": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedPhotoUser", R.string.NotificationActionPinnedPhotoUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedPhoto", R.string.NotificationActionPinnedPhoto, args[0], args[1]);
- } else {
- messageText = LocaleController.formatString("NotificationActionPinnedPhotoChannel", R.string.NotificationActionPinnedPhotoChannel, args[0]);
- }
+ case "CHAT_MESSAGE_VIDEOS": {
+ messageText = LocaleController.formatString("NotificationGroupFew", R.string.NotificationGroupFew, args[0], args[1], LocaleController.formatPluralString("Videos", Utilities.parseInt(args[2])));
+ localMessage = true;
+ break;
}
- break;
- }
- case "PINNED_VIDEO": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedVideoUser", R.string.NotificationActionPinnedVideoUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedVideo", R.string.NotificationActionPinnedVideo, args[0], args[1]);
- } else {
- messageText = LocaleController.formatString("NotificationActionPinnedVideoChannel", R.string.NotificationActionPinnedVideoChannel, args[0]);
- }
+ case "CHAT_MESSAGE_PLAYLIST": {
+ messageText = LocaleController.formatString("NotificationGroupFew", R.string.NotificationGroupFew, args[0], args[1], LocaleController.formatPluralString("MusicFiles", Utilities.parseInt(args[2])));
+ localMessage = true;
+ break;
}
- break;
- }
- case "PINNED_ROUND": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedRoundUser", R.string.NotificationActionPinnedRoundUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedRound", R.string.NotificationActionPinnedRound, args[0], args[1]);
- } else {
- messageText = LocaleController.formatString("NotificationActionPinnedRoundChannel", R.string.NotificationActionPinnedRoundChannel, args[0]);
- }
+ case "CHAT_MESSAGE_DOCS": {
+ messageText = LocaleController.formatString("NotificationGroupFew", R.string.NotificationGroupFew, args[0], args[1], LocaleController.formatPluralString("Files", Utilities.parseInt(args[2])));
+ localMessage = true;
+ break;
}
- break;
- }
- case "PINNED_DOC": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedFileUser", R.string.NotificationActionPinnedFileUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedFile", R.string.NotificationActionPinnedFile, args[0], args[1]);
- } else {
- messageText = LocaleController.formatString("NotificationActionPinnedFileChannel", R.string.NotificationActionPinnedFileChannel, args[0]);
- }
+ case "CHAT_MESSAGES": {
+ messageText = LocaleController.formatString("NotificationGroupAlbum", R.string.NotificationGroupAlbum, args[0], args[1]);
+ localMessage = true;
+ break;
}
- break;
- }
- case "PINNED_STICKER": {
- if (dialogId > 0) {
- if (args.length > 1 && !TextUtils.isEmpty(args[1])) {
- messageText = LocaleController.formatString("NotificationActionPinnedStickerEmojiUser", R.string.NotificationActionPinnedStickerEmojiUser, args[0], args[1]);
+ case "PINNED_TEXT": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedTextUser", R.string.NotificationActionPinnedTextUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedStickerUser", R.string.NotificationActionPinnedStickerUser, args[0]);
- }
- } else {
- if (isGroup) {
- if (args.length > 2 && !TextUtils.isEmpty(args[2])) {
- messageText = LocaleController.formatString("NotificationActionPinnedStickerEmoji", R.string.NotificationActionPinnedStickerEmoji, args[0], args[2], args[1]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedText", R.string.NotificationActionPinnedText, args[0], args[1], args[2]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedSticker", R.string.NotificationActionPinnedSticker, args[0], args[1]);
+ messageText = LocaleController.formatString("NotificationActionPinnedTextChannel", R.string.NotificationActionPinnedTextChannel, args[0], args[1]);
}
+ }
+ break;
+ }
+ case "PINNED_NOTEXT": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedNoTextUser", R.string.NotificationActionPinnedNoTextUser, args[0], args[1]);
} else {
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedNoText", R.string.NotificationActionPinnedNoText, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedNoTextChannel", R.string.NotificationActionPinnedNoTextChannel, args[0]);
+ }
+ }
+ break;
+ }
+ case "PINNED_PHOTO": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedPhotoUser", R.string.NotificationActionPinnedPhotoUser, args[0], args[1]);
+ } else {
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedPhoto", R.string.NotificationActionPinnedPhoto, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedPhotoChannel", R.string.NotificationActionPinnedPhotoChannel, args[0]);
+ }
+ }
+ break;
+ }
+ case "PINNED_VIDEO": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedVideoUser", R.string.NotificationActionPinnedVideoUser, args[0], args[1]);
+ } else {
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedVideo", R.string.NotificationActionPinnedVideo, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedVideoChannel", R.string.NotificationActionPinnedVideoChannel, args[0]);
+ }
+ }
+ break;
+ }
+ case "PINNED_ROUND": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedRoundUser", R.string.NotificationActionPinnedRoundUser, args[0], args[1]);
+ } else {
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedRound", R.string.NotificationActionPinnedRound, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedRoundChannel", R.string.NotificationActionPinnedRoundChannel, args[0]);
+ }
+ }
+ break;
+ }
+ case "PINNED_DOC": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedFileUser", R.string.NotificationActionPinnedFileUser, args[0], args[1]);
+ } else {
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedFile", R.string.NotificationActionPinnedFile, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedFileChannel", R.string.NotificationActionPinnedFileChannel, args[0]);
+ }
+ }
+ break;
+ }
+ case "PINNED_STICKER": {
+ if (dialogId > 0) {
if (args.length > 1 && !TextUtils.isEmpty(args[1])) {
- messageText = LocaleController.formatString("NotificationActionPinnedStickerEmojiChannel", R.string.NotificationActionPinnedStickerEmojiChannel, args[0], args[1]);
+ messageText = LocaleController.formatString("NotificationActionPinnedStickerEmojiUser", R.string.NotificationActionPinnedStickerEmojiUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedStickerChannel", R.string.NotificationActionPinnedStickerChannel, args[0]);
+ messageText = LocaleController.formatString("NotificationActionPinnedStickerUser", R.string.NotificationActionPinnedStickerUser, args[0]);
+ }
+ } else {
+ if (isGroup) {
+ if (args.length > 2 && !TextUtils.isEmpty(args[2])) {
+ messageText = LocaleController.formatString("NotificationActionPinnedStickerEmoji", R.string.NotificationActionPinnedStickerEmoji, args[0], args[2], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedSticker", R.string.NotificationActionPinnedSticker, args[0], args[1]);
+ }
+ } else {
+ if (args.length > 1 && !TextUtils.isEmpty(args[1])) {
+ messageText = LocaleController.formatString("NotificationActionPinnedStickerEmojiChannel", R.string.NotificationActionPinnedStickerEmojiChannel, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedStickerChannel", R.string.NotificationActionPinnedStickerChannel, args[0]);
+ }
}
}
+ break;
}
- break;
- }
- case "PINNED_AUDIO": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedVoiceUser", R.string.NotificationActionPinnedVoiceUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedVoice", R.string.NotificationActionPinnedVoice, args[0], args[1]);
+ case "PINNED_AUDIO": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedVoiceUser", R.string.NotificationActionPinnedVoiceUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedVoiceChannel", R.string.NotificationActionPinnedVoiceChannel, args[0]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedVoice", R.string.NotificationActionPinnedVoice, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedVoiceChannel", R.string.NotificationActionPinnedVoiceChannel, args[0]);
+ }
}
+ break;
}
- break;
- }
- case "PINNED_CONTACT": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedContactUser", R.string.NotificationActionPinnedContactUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedContact2", R.string.NotificationActionPinnedContact2, args[0], args[2], args[1]);
+ case "PINNED_CONTACT": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedContactUser", R.string.NotificationActionPinnedContactUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedContactChannel2", R.string.NotificationActionPinnedContactChannel2, args[0], args[1]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedContact2", R.string.NotificationActionPinnedContact2, args[0], args[2], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedContactChannel2", R.string.NotificationActionPinnedContactChannel2, args[0], args[1]);
+ }
}
+ break;
}
- break;
- }
- case "PINNED_QUIZ": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedQuizUser", R.string.NotificationActionPinnedQuizUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedQuiz2", R.string.NotificationActionPinnedQuiz2, args[0], args[2], args[1]);
+ case "PINNED_QUIZ": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedQuizUser", R.string.NotificationActionPinnedQuizUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedQuizChannel2", R.string.NotificationActionPinnedQuizChannel2, args[0], args[1]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedQuiz2", R.string.NotificationActionPinnedQuiz2, args[0], args[2], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedQuizChannel2", R.string.NotificationActionPinnedQuizChannel2, args[0], args[1]);
+ }
}
+ break;
}
- break;
- }
- case "PINNED_POLL": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedPollUser", R.string.NotificationActionPinnedPollUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedPoll2", R.string.NotificationActionPinnedPoll2, args[0], args[2], args[1]);
+ case "PINNED_POLL": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedPollUser", R.string.NotificationActionPinnedPollUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedPollChannel2", R.string.NotificationActionPinnedPollChannel2, args[0], args[1]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedPoll2", R.string.NotificationActionPinnedPoll2, args[0], args[2], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedPollChannel2", R.string.NotificationActionPinnedPollChannel2, args[0], args[1]);
+ }
}
+ break;
}
- break;
- }
- case "PINNED_GEO": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedGeoUser", R.string.NotificationActionPinnedGeoUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedGeo", R.string.NotificationActionPinnedGeo, args[0], args[1]);
+ case "PINNED_GEO": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedGeoUser", R.string.NotificationActionPinnedGeoUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedGeoChannel", R.string.NotificationActionPinnedGeoChannel, args[0]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedGeo", R.string.NotificationActionPinnedGeo, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedGeoChannel", R.string.NotificationActionPinnedGeoChannel, args[0]);
+ }
}
+ break;
}
- break;
- }
- case "PINNED_GEOLIVE": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedGeoLiveUser", R.string.NotificationActionPinnedGeoLiveUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedGeoLive", R.string.NotificationActionPinnedGeoLive, args[0], args[1]);
+ case "PINNED_GEOLIVE": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedGeoLiveUser", R.string.NotificationActionPinnedGeoLiveUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedGeoLiveChannel", R.string.NotificationActionPinnedGeoLiveChannel, args[0]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedGeoLive", R.string.NotificationActionPinnedGeoLive, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedGeoLiveChannel", R.string.NotificationActionPinnedGeoLiveChannel, args[0]);
+ }
}
+ break;
}
- break;
- }
- case "PINNED_GAME": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedGameUser", R.string.NotificationActionPinnedGameUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedGame", R.string.NotificationActionPinnedGame, args[0], args[1]);
+ case "PINNED_GAME": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedGameUser", R.string.NotificationActionPinnedGameUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedGameChannel", R.string.NotificationActionPinnedGameChannel, args[0]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedGame", R.string.NotificationActionPinnedGame, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedGameChannel", R.string.NotificationActionPinnedGameChannel, args[0]);
+ }
}
+ break;
}
- break;
- }
- case "PINNED_GAME_SCORE": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedGameScoreUser", R.string.NotificationActionPinnedGameScoreUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedGameScore", R.string.NotificationActionPinnedGameScore, args[0], args[1]);
+ case "PINNED_GAME_SCORE": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedGameScoreUser", R.string.NotificationActionPinnedGameScoreUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedGameScoreChannel", R.string.NotificationActionPinnedGameScoreChannel, args[0]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedGameScore", R.string.NotificationActionPinnedGameScore, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedGameScoreChannel", R.string.NotificationActionPinnedGameScoreChannel, args[0]);
+ }
}
+ break;
}
- break;
- }
- case "PINNED_INVOICE": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedInvoiceUser", R.string.NotificationActionPinnedInvoiceUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedInvoice", R.string.NotificationActionPinnedInvoice, args[0], args[1]);
+ case "PINNED_INVOICE": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedInvoiceUser", R.string.NotificationActionPinnedInvoiceUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedInvoiceChannel", R.string.NotificationActionPinnedInvoiceChannel, args[0]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedInvoice", R.string.NotificationActionPinnedInvoice, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedInvoiceChannel", R.string.NotificationActionPinnedInvoiceChannel, args[0]);
+ }
}
+ break;
}
- break;
- }
- case "PINNED_GIF": {
- if (dialogId > 0) {
- messageText = LocaleController.formatString("NotificationActionPinnedGifUser", R.string.NotificationActionPinnedGifUser, args[0], args[1]);
- } else {
- if (isGroup) {
- messageText = LocaleController.formatString("NotificationActionPinnedGif", R.string.NotificationActionPinnedGif, args[0], args[1]);
+ case "PINNED_GIF": {
+ if (dialogId > 0) {
+ messageText = LocaleController.formatString("NotificationActionPinnedGifUser", R.string.NotificationActionPinnedGifUser, args[0], args[1]);
} else {
- messageText = LocaleController.formatString("NotificationActionPinnedGifChannel", R.string.NotificationActionPinnedGifChannel, args[0]);
+ if (isGroup) {
+ messageText = LocaleController.formatString("NotificationActionPinnedGif", R.string.NotificationActionPinnedGif, args[0], args[1]);
+ } else {
+ messageText = LocaleController.formatString("NotificationActionPinnedGifChannel", R.string.NotificationActionPinnedGifChannel, args[0]);
+ }
}
+ break;
}
- break;
- }
- case "ENCRYPTED_MESSAGE": {
- messageText = LocaleController.getString("YouHaveNewMessage", R.string.YouHaveNewMessage);
- name = LocaleController.getString("SecretChatName", R.string.SecretChatName);
- localMessage = true;
- break;
- }
- case "CONTACT_JOINED":
- case "AUTH_UNKNOWN":
- case "AUTH_REGION":
- case "LOCKED_MESSAGE":
- case "ENCRYPTION_REQUEST":
- case "ENCRYPTION_ACCEPT":
- case "PHONE_CALL_REQUEST":
- case "MESSAGE_MUTED":
- case "PHONE_CALL_MISSED": {
- //ignored
- break;
- }
- default: {
- if (BuildVars.LOGS_ENABLED) {
- FileLog.w("unhandled loc_key = " + loc_key);
+ case "ENCRYPTED_MESSAGE": {
+ messageText = LocaleController.getString("YouHaveNewMessage", R.string.YouHaveNewMessage);
+ name = LocaleController.getString("SecretChatName", R.string.SecretChatName);
+ localMessage = true;
+ break;
+ }
+ case "REACT_TEXT": {
+ break;
+ }
+ case "CONTACT_JOINED":
+ case "AUTH_UNKNOWN":
+ case "AUTH_REGION":
+ case "LOCKED_MESSAGE":
+ case "ENCRYPTION_REQUEST":
+ case "ENCRYPTION_ACCEPT":
+ case "PHONE_CALL_REQUEST":
+ case "MESSAGE_MUTED":
+ case "PHONE_CALL_MISSED": {
+ //ignored
+ break;
+ }
+
+ default: {
+ if (BuildVars.LOGS_ENABLED) {
+ FileLog.w("unhandled loc_key = " + loc_key);
+ }
+ break;
}
- break;
}
}
if (messageText != null) {
@@ -1095,6 +1107,108 @@ public class GcmPushListenerService extends FirebaseMessagingService {
}
}
+ private String getReactedText(String loc_key, String[] args) {
+ switch (loc_key) {
+ case "REACT_TEXT": {
+ return LocaleController.formatString("PushReactText", R.string.PushReactText, args);
+ }
+ case "REACT_NOTEXT": {
+ return LocaleController.formatString("PushReactNoText", R.string.PushReactNoText, args);
+ }
+ case "REACT_PHOTO": {
+ return LocaleController.formatString("PushReactPhoto", R.string.PushReactPhoto, args);
+ }
+ case "REACT_VIDEO": {
+ return LocaleController.formatString("PushReactVideo", R.string.PushReactVideo, args);
+ }
+ case "REACT_ROUND": {
+ return LocaleController.formatString("PushReactRound", R.string.PushReactRound, args);
+ }
+ case "REACT_DOC": {
+ return LocaleController.formatString("PushReactDoc", R.string.PushReactDoc, args);
+ }
+ case "REACT_STICKER": {
+ return LocaleController.formatString("PushReactSticker", R.string.PushReactSticker, args);
+ }
+ case "REACT_AUDIO": {
+ return LocaleController.formatString("PushReactAudio", R.string.PushReactAudio, args);
+ }
+ case "REACT_CONTACT": {
+ return LocaleController.formatString("PushReactContect", R.string.PushReactContect, args);
+ }
+ case "REACT_GEO": {
+ return LocaleController.formatString("PushReactGeo", R.string.PushReactGeo, args);
+ }
+ case "REACT_GEOLIVE": {
+ return LocaleController.formatString("PushReactGeoLocation", R.string.PushReactGeoLocation, args);
+ }
+ case "REACT_POLL": {
+ return LocaleController.formatString("PushReactPoll", R.string.PushReactPoll, args);
+ }
+ case "REACT_QUIZ": {
+ return LocaleController.formatString("PushReactQuiz", R.string.PushReactQuiz, args);
+ }
+ case "REACT_GAME": {
+ return LocaleController.formatString("PushReactGame", R.string.PushReactGame, args);
+ }
+ case "REACT_INVOICE": {
+ return LocaleController.formatString("PushReactInvoice", R.string.PushReactInvoice, args);
+ }
+ case "REACT_GIF": {
+ return LocaleController.formatString("PushReactGif", R.string.PushReactGif, args);
+ }
+ case "CHAT_REACT_TEXT": {
+ return LocaleController.formatString("PushChatReactText", R.string.PushChatReactText, args);
+ }
+ case "CHAT_REACT_NOTEXT": {
+ return LocaleController.formatString("PushChatReactNotext", R.string.PushChatReactNotext, args);
+ }
+ case "CHAT_REACT_PHOTO": {
+ return LocaleController.formatString("PushChatReactPhoto", R.string.PushChatReactPhoto, args);
+ }
+ case "CHAT_REACT_VIDEO": {
+ return LocaleController.formatString("PushChatReactVideo", R.string.PushChatReactVideo, args);
+ }
+ case "CHAT_REACT_ROUND": {
+ return LocaleController.formatString("PushChatReactRound", R.string.PushChatReactRound, args);
+ }
+ case "CHAT_REACT_DOC": {
+ return LocaleController.formatString("PushChatReactDoc", R.string.PushChatReactDoc, args);
+ }
+ case "CHAT_REACT_STICKER": {
+ return LocaleController.formatString("PushChatReactSticker", R.string.PushChatReactSticker, args);
+ }
+ case "CHAT_REACT_AUDIO": {
+ return LocaleController.formatString("PushChatReactAudio", R.string.PushChatReactAudio, args);
+ }
+ case "CHAT_REACT_CONTACT": {
+ return LocaleController.formatString("PushChatReactContact", R.string.PushChatReactContact, args);
+ }
+ case "CHAT_REACT_GEO": {
+ return LocaleController.formatString("PushChatReactGeo", R.string.PushChatReactGeo, args);
+ }
+ case "CHAT_REACT_GEOLIVE": {
+ return LocaleController.formatString("PushChatReactGeoLive", R.string.PushChatReactGeoLive, args);
+ }
+ case "CHAT_REACT_POLL": {
+ return LocaleController.formatString("PushChatReactPoll", R.string.PushChatReactPoll, args);
+ }
+ case "CHAT_REACT_QUIZ": {
+ return LocaleController.formatString("PushChatReactQuiz", R.string.PushChatReactQuiz, args);
+ }
+ case "CHAT_REACT_GAME": {
+ return LocaleController.formatString("PushChatReactGame", R.string.PushChatReactGame, args);
+ }
+ case "CHAT_REACT_INVOICE": {
+ return LocaleController.formatString("PushChatReactInvoice", R.string.PushChatReactInvoice, args);
+ }
+ case "CHAT_REACT_GIF": {
+ return LocaleController.formatString("PushChatReactGif", R.string.PushChatReactGif, args);
+ }
+ }
+ return null;
+ }
+
private void onDecryptError() {
for (int a : SharedConfig.activeAccounts) {
if (UserConfig.getInstance(a).isClientActivated()) {
diff --git a/TMessagesProj/src/main/AndroidManifest.xml b/TMessagesProj/src/main/AndroidManifest.xml
index b1e0733d6..e9da11583 100644
--- a/TMessagesProj/src/main/AndroidManifest.xml
+++ b/TMessagesProj/src/main/AndroidManifest.xml
@@ -97,7 +97,7 @@
-
+
@@ -112,6 +112,7 @@
android:manageSpaceActivity="org.telegram.ui.ExternalActionActivity"
android:networkSecurityConfig="@xml/network_security_config"
android:requestLegacyExternalStorage="true"
+ android:preserveLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="false"
android:theme="@style/Theme.TMessages.Start"
@@ -508,9 +509,9 @@
-
+
+
+
diff --git a/TMessagesProj/src/main/assets/fonts/rcondensedbold.ttf b/TMessagesProj/src/main/assets/fonts/rcondensedbold.ttf
new file mode 100644
index 000000000..7fe31289c
Binary files /dev/null and b/TMessagesProj/src/main/assets/fonts/rcondensedbold.ttf differ
diff --git a/TMessagesProj/src/main/java/androidx/recyclerview/widget/ChatListItemAnimator.java b/TMessagesProj/src/main/java/androidx/recyclerview/widget/ChatListItemAnimator.java
index d591a64a5..69accd45b 100644
--- a/TMessagesProj/src/main/java/androidx/recyclerview/widget/ChatListItemAnimator.java
+++ b/TMessagesProj/src/main/java/androidx/recyclerview/widget/ChatListItemAnimator.java
@@ -5,7 +5,6 @@ import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
-import android.os.Build;
import android.view.View;
import android.view.ViewPropertyAnimator;
import android.view.animation.Interpolator;
@@ -495,8 +494,9 @@ public class ChatListItemAnimator extends DefaultItemAnimator {
if (group == null && params.wasDraw) {
boolean isOut = chatMessageCell.getMessageObject().isOutOwner();
- if ((isOut && params.lastDrawingBackgroundRect.left != chatMessageCell.getBackgroundDrawableLeft()) ||
- (!isOut && params.lastDrawingBackgroundRect.right != chatMessageCell.getBackgroundDrawableRight()) ||
+ boolean widthChanged = (isOut && params.lastDrawingBackgroundRect.left != chatMessageCell.getBackgroundDrawableLeft()) ||
+ (!isOut && params.lastDrawingBackgroundRect.right != chatMessageCell.getBackgroundDrawableRight());
+ if (widthChanged ||
params.lastDrawingBackgroundRect.top != chatMessageCell.getBackgroundDrawableTop() ||
params.lastDrawingBackgroundRect.bottom != chatMessageCell.getBackgroundDrawableBottom()) {
moveInfo.deltaBottom = chatMessageCell.getBackgroundDrawableBottom() - params.lastDrawingBackgroundRect.bottom;
@@ -509,6 +509,7 @@ public class ChatListItemAnimator extends DefaultItemAnimator {
moveInfo.animateBackgroundOnly = true;
params.animateBackgroundBoundsInner = true;
+ params.animateBackgroundWidth = widthChanged;
params.deltaLeft = -moveInfo.deltaLeft;
params.deltaRight = -moveInfo.deltaRight;
params.deltaTop = -moveInfo.deltaTop;
@@ -1208,6 +1209,9 @@ public class ChatListItemAnimator extends DefaultItemAnimator {
}
public void groupWillChanged(MessageObject.GroupedMessages groupedMessages) {
+ if (groupedMessages == null) {
+ return;
+ }
if (groupedMessages.messages.size() == 0) {
groupedMessages.transitionParams.drawBackgroundForDeletedItems = true;
} else {
diff --git a/TMessagesProj/src/main/java/com/carrotsearch/randomizedtesting/MurmurHash3.java b/TMessagesProj/src/main/java/com/carrotsearch/randomizedtesting/MurmurHash3.java
new file mode 100644
index 000000000..db2f073d6
--- /dev/null
+++ b/TMessagesProj/src/main/java/com/carrotsearch/randomizedtesting/MurmurHash3.java
@@ -0,0 +1,42 @@
+package com.carrotsearch.randomizedtesting;
+
+/**
+ * Hash routines for primitive types. The implementation is based on the finalization step
+ * from Austin Appleby's MurmurHash3
.
+ *
+ * @see "http://sites.google.com/site/murmurhash/"
+ */
+final class MurmurHash3
+{
+ private MurmurHash3()
+ {
+ // no instances.
+ }
+
+ /**
+ * Hashes a 4-byte sequence (Java int).
+ */
+ public static int hash(int k)
+ {
+ k ^= k >>> 16;
+ k *= 0x85ebca6b;
+ k ^= k >>> 13;
+ k *= 0xc2b2ae35;
+ k ^= k >>> 16;
+ return k;
+ }
+
+ /**
+ * Hashes an 8-byte sequence (Java long).
+ */
+ public static long hash(long k)
+ {
+ k ^= k >>> 33;
+ k *= 0xff51afd7ed558ccdL;
+ k ^= k >>> 33;
+ k *= 0xc4ceb9fe1a85ec53L;
+ k ^= k >>> 33;
+
+ return k;
+ }
+}
\ No newline at end of file
diff --git a/TMessagesProj/src/main/java/com/carrotsearch/randomizedtesting/Xoroshiro128PlusRandom.java b/TMessagesProj/src/main/java/com/carrotsearch/randomizedtesting/Xoroshiro128PlusRandom.java
new file mode 100644
index 000000000..f4d6acaa4
--- /dev/null
+++ b/TMessagesProj/src/main/java/com/carrotsearch/randomizedtesting/Xoroshiro128PlusRandom.java
@@ -0,0 +1,97 @@
+package com.carrotsearch.randomizedtesting;
+
+import java.util.Random;
+
+/**
+ * Implements Xoroshiro128PlusRandom. Not synchronized (anywhere).
+ *
+ * @see "http://xoroshiro.di.unimi.it/"
+ */
+@SuppressWarnings("serial")
+public class Xoroshiro128PlusRandom extends Random {
+ private static final double DOUBLE_UNIT = 0x1.0p-53; // 1.0 / (1L << 53);
+ private static final float FLOAT_UNIT = 0x1.0p-24f; // 1.0 / (1L << 24);
+
+ private long s0, s1;
+
+ public Xoroshiro128PlusRandom(long seed) {
+ // Must be here, the only Random constructor. Has side-effects on setSeed, see below.
+ super(0);
+
+ s0 = MurmurHash3.hash(seed);
+ s1 = MurmurHash3.hash(s0);
+
+ if (s0 == 0 && s1 == 0) {
+ s0 = MurmurHash3.hash(0xdeadbeefL);
+ s1 = MurmurHash3.hash(s0);
+ }
+ }
+
+ @Override
+ public void setSeed(long seed) {
+ // Called from super constructor and observing uninitialized state?
+ if (s0 == 0 && s1 == 0) {
+ return;
+ }
+
+ throw new RuntimeException("No seed set");
+ }
+
+ @Override
+ public boolean nextBoolean() {
+ return nextLong() >= 0;
+ }
+
+ @Override
+ public void nextBytes(byte[] bytes) {
+ for (int i = 0, len = bytes.length; i < len; ) {
+ long rnd = nextInt();
+ for (int n = Math.min(len - i, 8); n-- > 0; rnd >>>= 8) {
+ bytes[i++] = (byte) rnd;
+ }
+ }
+ }
+
+ @Override
+ public double nextDouble() {
+ return (nextLong() >>> 11) * DOUBLE_UNIT;
+ }
+
+ @Override
+ public float nextFloat() {
+ return (nextInt() >>> 8) * FLOAT_UNIT;
+ }
+
+ @Override
+ public int nextInt() {
+ return (int) nextLong();
+ }
+
+ @Override
+ public int nextInt(int n) {
+ // Leave superclass's implementation.
+ return super.nextInt(n);
+ }
+
+ @Override
+ public double nextGaussian() {
+ // Leave superclass's implementation.
+ return super.nextGaussian();
+ }
+
+ @Override
+ public long nextLong() {
+ final long s0 = this.s0;
+ long s1 = this.s1;
+ final long result = s0 + s1;
+ s1 ^= s0;
+ this.s0 = Long.rotateLeft(s0, 55) ^ s1 ^ s1 << 14;
+ this.s1 = Long.rotateLeft(s1, 36);
+ return result;
+ }
+
+ @Override
+ protected int next(int bits) {
+ return ((int) nextLong()) >>> (32 - bits);
+ }
+}
\ No newline at end of file
diff --git a/TMessagesProj/src/main/java/com/google/zxing/qrcode/QRCodeWriter.java b/TMessagesProj/src/main/java/com/google/zxing/qrcode/QRCodeWriter.java
index 3dad97212..8c0195fbf 100755
--- a/TMessagesProj/src/main/java/com/google/zxing/qrcode/QRCodeWriter.java
+++ b/TMessagesProj/src/main/java/com/google/zxing/qrcode/QRCodeWriter.java
@@ -19,7 +19,11 @@ package com.google.zxing.qrcode;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
+import android.graphics.Color;
import android.graphics.Paint;
+import android.graphics.Path;
+import android.graphics.RectF;
+import android.graphics.Region;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
@@ -33,6 +37,8 @@ import com.google.zxing.qrcode.encoder.QRCode;
import org.telegram.messenger.ApplicationLoader;
import org.telegram.messenger.R;
+import org.telegram.messenger.SvgHelper;
+import org.telegram.ui.Components.RLottieDrawable;
import java.util.Arrays;
import java.util.Map;
@@ -243,7 +249,194 @@ public final class QRCodeWriter {
return x >= 0 && y >= 0 && x < input.getWidth() && y < input.getHeight() && input.get(x, y) == 1;
}
- public int getImageSize() {
+ public Bitmap encode(String contents, int width, int height, Map hints, Bitmap bitmap) throws WriterException {
+ return encode(contents, width, height, hints, bitmap, 1.0f, 0xffffffff, 0xff000000);
+ }
+
+ public Bitmap encode(String contents, int width, int height, Map hints, Bitmap bitmap, float radiusFactor, int backgroundColor, int color) throws WriterException {
+
+ if (contents.isEmpty()) {
+ throw new IllegalArgumentException("Found empty contents");
+ }
+
+ if (width < 0 || height < 0) {
+ throw new IllegalArgumentException("Requested dimensions are too small: " + width + 'x' + height);
+ }
+
+ ErrorCorrectionLevel errorCorrectionLevel = ErrorCorrectionLevel.L;
+ int quietZone = QUIET_ZONE_SIZE;
+ if (hints != null) {
+ if (hints.containsKey(EncodeHintType.ERROR_CORRECTION)) {
+ errorCorrectionLevel = ErrorCorrectionLevel.valueOf(hints.get(EncodeHintType.ERROR_CORRECTION).toString());
+ }
+ if (hints.containsKey(EncodeHintType.MARGIN)) {
+ quietZone = Integer.parseInt(hints.get(EncodeHintType.MARGIN).toString());
+ }
+ }
+
+ QRCode code = Encoder.encode(contents, errorCorrectionLevel, hints);
+
+ input = code.getMatrix();
+ if (input == null) {
+ throw new IllegalStateException();
+ }
+ int inputWidth = input.getWidth();
+ int inputHeight = input.getHeight();
+
+ for (int x = 0; x < inputWidth; x++) {
+ if (has(x, 0)) {
+ sideQuadSize++;
+ } else {
+ break;
+ }
+ }
+
+ int qrWidth = inputWidth + (quietZone * 2);
+ int qrHeight = inputHeight + (quietZone * 2);
+ int outputWidth = Math.max(width, qrWidth);
+ int outputHeight = Math.max(height, qrHeight);
+
+ int multiple = Math.min(outputWidth / qrWidth, outputHeight / qrHeight);
+
+ int padding = 16;
+
+ int size = multiple * inputWidth + padding * 2;
+ if (bitmap == null || bitmap.getWidth() != size) {
+ bitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888);
+ }
+ Canvas canvas = new Canvas(bitmap);
+ canvas.drawColor(backgroundColor);
+ Paint blackPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
+ blackPaint.setColor(color);
+
+ GradientDrawable rect = new GradientDrawable();
+ rect.setShape(GradientDrawable.RECTANGLE);
+ rect.setCornerRadii(radii);
+
+ imageBloks = Math.round((size - 32) / 4.65f / multiple);
+ if (imageBloks % 2 != inputWidth % 2) {
+ imageBloks++;
+ }
+ imageBlockX = (inputWidth - imageBloks) / 2;
+ imageSize = imageBloks * multiple - 24;
+ int imageX = (size - imageSize) / 2;
+
+ boolean isTransparentBackground = Color.alpha(backgroundColor) == 0;
+ Path clipPath = new Path();
+ RectF rectF = new RectF();
+ for (int a = 0; a < 3; a++) {
+ int x, y;
+ if (a == 0) {
+ x = padding;
+ y = padding;
+ } else if (a == 1) {
+ x = size - sideQuadSize * multiple - padding;
+ y = padding;
+ } else {
+ x = padding;
+ y = size - sideQuadSize * multiple - padding;
+ }
+
+ float r;
+ if (isTransparentBackground) {
+ rectF.set(x + multiple, y + multiple, x + (sideQuadSize - 1) * multiple, y + (sideQuadSize - 1) * multiple);
+ r = (sideQuadSize * multiple) / 4.0f * radiusFactor;
+ clipPath.reset();
+ clipPath.addRoundRect(rectF, r, r, Path.Direction.CW);
+ clipPath.close();
+ canvas.save();
+ canvas.clipPath(clipPath, Region.Op.DIFFERENCE);
+ }
+ r = (sideQuadSize * multiple) / 3.0f * radiusFactor;
+ Arrays.fill(radii, r);
+ rect.setColor(color);
+ rect.setBounds(x, y, x + sideQuadSize * multiple, y + sideQuadSize * multiple);
+ rect.draw(canvas);
+ canvas.drawRect(x + multiple, y + multiple, x + (sideQuadSize - 1) * multiple, y + (sideQuadSize - 1) * multiple, blackPaint);
+ if (isTransparentBackground) {
+ canvas.restore();
+ }
+
+ if (!isTransparentBackground) {
+ r = (sideQuadSize * multiple) / 4.0f * radiusFactor;
+ Arrays.fill(radii, r);
+ rect.setColor(backgroundColor);
+ rect.setBounds(x + multiple, y + multiple, x + (sideQuadSize - 1) * multiple, y + (sideQuadSize - 1) * multiple);
+ rect.draw(canvas);
+ }
+
+ r = ((sideQuadSize - 2) * multiple) / 4.0f * radiusFactor;
+ Arrays.fill(radii, r);
+ rect.setColor(color);
+ rect.setBounds(x + multiple * 2, y + multiple * 2, x + (sideQuadSize - 2) * multiple, y + (sideQuadSize - 2) * multiple);
+ rect.draw(canvas);
+ }
+ float r = multiple / 2.0f * radiusFactor;
+
+ for (int y = 0, outputY = padding; y < inputHeight; y++, outputY += multiple) {
+ for (int x = 0, outputX = padding; x < inputWidth; x++, outputX += multiple) {
+ if (has(x, y)) {
+ Arrays.fill(radii, r);
+ if (has(x, y - 1)) {
+ radii[0] = radii[1] = 0;
+ radii[2] = radii[3] = 0;
+ }
+ if (has(x, y + 1)) {
+ radii[6] = radii[7] = 0;
+ radii[4] = radii[5] = 0;
+ }
+ if (has(x - 1, y)) {
+ radii[0] = radii[1] = 0;
+ radii[6] = radii[7] = 0;
+ }
+ if (has(x + 1, y)) {
+ radii[2] = radii[3] = 0;
+ radii[4] = radii[5] = 0;
+ }
+ rect.setColor(color);
+ rect.setBounds(outputX, outputY, outputX + multiple, outputY + multiple);
+ rect.draw(canvas);
+ } else {
+ boolean has = false;
+ Arrays.fill(radii, 0);
+ if (has(x - 1, y - 1) && has(x - 1, y) && has(x, y - 1)) {
+ radii[0] = radii[1] = r;
+ has = true;
+ }
+ if (has(x + 1, y - 1) && has(x + 1, y) && has(x, y - 1)) {
+ radii[2] = radii[3] = r;
+ has = true;
+ }
+ if (has(x - 1, y + 1) && has(x - 1, y) && has(x, y + 1)) {
+ radii[6] = radii[7] = r;
+ has = true;
+ }
+ if (has(x + 1, y + 1) && has(x + 1, y) && has(x, y + 1)) {
+ radii[4] = radii[5] = r;
+ has = true;
+ }
+ if (has && !isTransparentBackground) {
+ canvas.drawRect(outputX, outputY, outputX + multiple, outputY + multiple, blackPaint);
+ rect.setColor(backgroundColor);
+ rect.setBounds(outputX, outputY, outputX + multiple, outputY + multiple);
+ rect.draw(canvas);
+ }
+ }
+ }
+ }
+
+ String svg = RLottieDrawable.readRes(null, R.raw.qr_logo);
+ Bitmap icon = SvgHelper.getBitmap(svg, imageSize, imageSize, false);
+ canvas.drawBitmap(icon, imageX, imageX, null);
+ icon.recycle();
+
+ canvas.setBitmap(null);
+
+ return bitmap;
+ }
+
+
+ public int getImageSize() {
return imageSize;
}
}
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/AndroidUtilities.java b/TMessagesProj/src/main/java/org/telegram/messenger/AndroidUtilities.java
index a06d7b5c3..b6ea61655 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/AndroidUtilities.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/AndroidUtilities.java
@@ -28,6 +28,7 @@ import android.content.res.AssetFileDescriptor;
import android.content.res.Configuration;
import android.database.Cursor;
import android.graphics.Bitmap;
+import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
@@ -1993,6 +1994,29 @@ public class AndroidUtilities {
}
}
+ public static int charSequenceIndexOf(CharSequence cs, CharSequence needle, int fromIndex) {
+ for (int i = fromIndex; i < cs.length() - needle.length(); i++) {
+ boolean eq = true;
+ for (int j = 0; j < needle.length(); j++) {
+ if (needle.charAt(j) != cs.charAt(i + j)) {
+ eq = false;
+ break;
+ }
+ }
+ if (eq)
+ return i;
+ }
+ return -1;
+ }
+
+ public static int charSequenceIndexOf(CharSequence cs, CharSequence needle) {
+ return charSequenceIndexOf(cs, needle, 0);
+ }
+
+ public static boolean charSequenceContains(CharSequence cs, CharSequence needle) {
+ return charSequenceIndexOf(cs, needle) != -1;
+ }
+
public static CharSequence getTrimmedString(CharSequence src) {
if (src == null || src.length() == 0) {
return src;
@@ -2936,6 +2960,57 @@ public class AndroidUtilities {
return openForView(f, fileName, document.mime_type, activity, null);
}
+ public static SpannableStringBuilder formatSpannableSimple(String format, CharSequence... cs) {
+ return formatSpannable(format, i -> "%s", cs);
+ }
+
+ public static SpannableStringBuilder formatSpannable(String format, CharSequence... cs) {
+ if (format.contains("%s"))
+ return formatSpannableSimple(format, cs);
+ return formatSpannable(format, i -> "%" + (i + 1) + "$s", cs);
+ }
+
+ public static SpannableStringBuilder formatSpannable(String format, GenericProvider keysProvider, CharSequence... cs) {
+ SpannableStringBuilder stringBuilder = new SpannableStringBuilder(format);
+ for (int i = 0; i < cs.length; i++) {
+ String key = keysProvider.provide(i);
+ int j = format.indexOf(key);
+ if (j != -1) {
+ stringBuilder.replace(j, j + key.length(), cs[i]);
+ format = format.substring(0, j) + cs[i].toString() + format.substring(j + key.length());
+ }
+ }
+ return stringBuilder;
+ }
+
+ public static CharSequence replaceTwoNewLinesToOne(CharSequence original) {
+ char[] buf = new char[2];
+ if (original instanceof StringBuilder) {
+ StringBuilder stringBuilder = (StringBuilder) original;
+ for (int a = 0, N = original.length(); a < N - 2; a++) {
+ stringBuilder.getChars(a, a + 2, buf, 0);
+ if (buf[0] == '\n' && buf[1] == '\n') {
+ stringBuilder = stringBuilder.replace(a, a + 2, "\n");
+ a--;
+ N--;
+ }
+ }
+ return original;
+ } else if (original instanceof SpannableStringBuilder) {
+ SpannableStringBuilder stringBuilder = (SpannableStringBuilder) original;
+ for (int a = 0, N = original.length(); a < N - 2; a++) {
+ stringBuilder.getChars(a, a + 2, buf, 0);
+ if (buf[0] == '\n' && buf[1] == '\n') {
+ stringBuilder = stringBuilder.replace(a, a + 2, "\n");
+ a--;
+ N--;
+ }
+ }
+ return original;
+ }
+ return original.toString().replace("\n\n", "\n");
+ }
+
public static CharSequence replaceNewLines(CharSequence original) {
if (original instanceof StringBuilder) {
StringBuilder stringBuilder = (StringBuilder) original;
@@ -2944,6 +3019,7 @@ public class AndroidUtilities {
stringBuilder.setCharAt(a, ' ');
}
}
+ return original;
} else if (original instanceof SpannableStringBuilder) {
SpannableStringBuilder stringBuilder = (SpannableStringBuilder) original;
for (int a = 0, N = original.length(); a < N; a++) {
@@ -2951,6 +3027,7 @@ public class AndroidUtilities {
stringBuilder.replace(a, a + 1, " ");
}
}
+ return original;
}
return original.toString().replace('\n', ' ');
}
@@ -4248,6 +4325,9 @@ public class AndroidUtilities {
}
public static boolean checkHostForPunycode(String url) {
+ if (url == null) {
+ return false;
+ }
boolean hasLatin = false;
boolean hasNonLatin = false;
try {
@@ -4381,4 +4461,75 @@ public class AndroidUtilities {
return preferences.getInt(key, (int) defaultValue);
}
}
+
+ public static Bitmap getScaledBitmap(float w, float h, String path, String streamPath, int streamOffset) {
+ FileInputStream stream = null;
+ try {
+ BitmapFactory.Options options = new BitmapFactory.Options();
+ options.inJustDecodeBounds = true;
+
+ if (path != null) {
+ BitmapFactory.decodeFile(path, options);
+ } else {
+ stream = new FileInputStream(streamPath);
+ stream.getChannel().position(streamOffset);
+ BitmapFactory.decodeStream(stream, null, options);
+ }
+ if (options.outWidth > 0 && options.outHeight > 0) {
+ if (w > h && options.outWidth < options.outHeight) {
+ float temp = w;
+ w = h;
+ h = temp;
+ }
+ float scale = Math.min(options.outWidth / w, options.outHeight / h);
+ options.inSampleSize = 1;
+ if (scale > 1.0f) {
+ do {
+ options.inSampleSize *= 2;
+ } while (options.inSampleSize < scale);
+ }
+ options.inJustDecodeBounds = false;
+ Bitmap wallpaper;
+ if (path != null) {
+ wallpaper = BitmapFactory.decodeFile(path, options);
+ } else {
+ stream.getChannel().position(streamOffset);
+ wallpaper = BitmapFactory.decodeStream(stream, null, options);
+ }
+ return wallpaper;
+ }
+ } catch (Throwable e) {
+ FileLog.e(e);
+ } finally {
+ try {
+ if (stream != null) {
+ stream.close();
+ }
+ } catch (Exception e2) {
+ FileLog.e(e2);
+ }
+ }
+ return null;
+ }
+
+ public static Uri getBitmapShareUri(Bitmap bitmap, String fileName, Bitmap.CompressFormat format) {
+ File cachePath = AndroidUtilities.getCacheDir();
+ if (!cachePath.isDirectory()) {
+ try {
+ cachePath.mkdirs();
+ } catch (Exception e) {
+ FileLog.e(e);
+ return null;
+ }
+ }
+ File file = new File(cachePath, fileName);
+ try (FileOutputStream out = new FileOutputStream(file)) {
+ bitmap.compress(format, 100, out);
+ out.close();
+ return FileProvider.getUriForFile(ApplicationLoader.applicationContext, BuildConfig.APPLICATION_ID + ".provider", file);
+ } catch (IOException e) {
+ FileLog.e(e);
+ }
+ return null;
+ }
}
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/ForwardingMessagesParams.java b/TMessagesProj/src/main/java/org/telegram/messenger/ForwardingMessagesParams.java
index 3bfb40ca8..3bfc46f5f 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/ForwardingMessagesParams.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/ForwardingMessagesParams.java
@@ -21,6 +21,7 @@ public class ForwardingMessagesParams {
public boolean isSecret;
public boolean willSeeSenders;
public boolean multiplyUsers;
+ public boolean hasSpoilers;
public ArrayList pollChoosenAnswers = new ArrayList<>();
@@ -29,6 +30,7 @@ public class ForwardingMessagesParams {
hasCaption = false;
hasSenders = false;
isSecret = DialogObject.isEncryptedDialog(newDialogId);
+ hasSpoilers = false;
ArrayList hiddenSendersName = new ArrayList<>();
for (int i = 0; i < messages.size(); i++) {
MessageObject messageObject = messages.get(i);
@@ -46,6 +48,17 @@ public class ForwardingMessagesParams {
message.media = messageObject.messageOwner.media;
message.action = messageObject.messageOwner.action;
message.edit_date = 0;
+ if (messageObject.messageOwner.entities != null) {
+ message.entities.addAll(messageObject.messageOwner.entities);
+ if (!hasSpoilers) {
+ for (TLRPC.MessageEntity e : message.entities) {
+ if (e instanceof TLRPC.TL_messageEntitySpoiler) {
+ hasSpoilers = true;
+ break;
+ }
+ }
+ }
+ }
message.out = true;
message.unread = false;
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/GenericProvider.java b/TMessagesProj/src/main/java/org/telegram/messenger/GenericProvider.java
new file mode 100644
index 000000000..2be3b3c1f
--- /dev/null
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/GenericProvider.java
@@ -0,0 +1,5 @@
+package org.telegram.messenger;
+
+public interface GenericProvider {
+ T provide(F obj);
+}
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/ImageLoader.java b/TMessagesProj/src/main/java/org/telegram/messenger/ImageLoader.java
index 70ff896ca..7780f7bb9 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/ImageLoader.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/ImageLoader.java
@@ -30,7 +30,7 @@ import android.text.TextUtils;
import android.util.SparseArray;
import androidx.exifinterface.media.ExifInterface;
-import com.google.android.exoplayer2.util.Log;
+import androidx.exifinterface.media.ExifInterface;
import org.json.JSONArray;
import org.json.JSONObject;
@@ -362,7 +362,7 @@ public class ImageLoader {
}
}
} catch (Exception e) {
- FileLog.e(e);
+ FileLog.e(e, false);
}
httpConnectionStream = httpConnection.getInputStream();
@@ -854,7 +854,7 @@ public class ImageLoader {
float h_filter = Float.parseFloat(args[1]);
w = Math.min(512, (int) (w_filter * AndroidUtilities.density));
h = Math.min(512, (int) (h_filter * AndroidUtilities.density));
- if (w_filter <= 90 && h_filter <= 90) {
+ if (w_filter <= 90 && h_filter <= 90 && !cacheImage.filter.contains("nolimit")) {
w = Math.min(w, 160);
h = Math.min(h, 160);
limitFps = true;
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/LocaleController.java b/TMessagesProj/src/main/java/org/telegram/messenger/LocaleController.java
index cdd3e4c48..45db469e9 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/LocaleController.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/LocaleController.java
@@ -42,10 +42,12 @@ import java.io.IOException;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Calendar;
+import java.util.Collection;
import java.util.Currency;
import java.util.Date;
import java.util.HashMap;
import java.util.Locale;
+import java.util.Map;
import java.util.TimeZone;
import tw.nekomimi.nkmr.NekomuraConfig;
@@ -504,6 +506,13 @@ public class LocaleController {
}
return languagesDict.get(key.toLowerCase().replace("-", "_"));
}
+ public LocaleInfo getLanguageByPlural(String plural) {
+ Collection values = languagesDict.values();
+ for (LocaleInfo l : values)
+ if (l.pluralLangCode != null && l.pluralLangCode.equals(plural))
+ return l;
+ return null;
+ }
private void addRules(String[] languages, PluralRules rules) {
for (String language : languages) {
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java b/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java
index 02c46081e..14b31697b 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java
@@ -3694,52 +3694,83 @@ public class MediaController implements AudioManager.OnAudioFocusChangeListener,
new Thread(() -> {
try {
- File dir;
- if (isMusic) {
- dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC);
+ if (Build.VERSION.SDK_INT >= 29) {
+ for (int b = 0, N = messageObjects.size(); b < N; b++) {
+ MessageObject message = messageObjects.get(b);
+ String path = message.messageOwner.attachPath;
+ String name = message.getDocumentName();
+ if (path != null && path.length() > 0) {
+ File temp = new File(path);
+ if (!temp.exists()) {
+ path = null;
+ }
+ }
+ if (path == null || path.length() == 0) {
+ path = FileLoader.getPathToMessage(message.messageOwner).toString();
+ }
+ File sourceFile = new File(path);
+ if (!sourceFile.exists()) {
+ waitingForFile = new CountDownLatch(1);
+ addMessageToLoad(message);
+ waitingForFile.await();
+ }
+ if (cancelled) {
+ break;
+ }
+ if (sourceFile.exists()) {
+ saveFileInternal(isMusic ? 3 : 2, sourceFile, name);
+ }
+ }
} else {
- dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
- }
- dir.mkdir();
- for (int b = 0, N = messageObjects.size(); b < N; b++) {
- MessageObject message = messageObjects.get(b);
- String name = message.getDocumentName();
- File destFile = new File(dir, name);
- if (destFile.exists()) {
- int idx = name.lastIndexOf('.');
- for (int a = 0; a < 10; a++) {
- String newName;
- if (idx != -1) {
- newName = name.substring(0, idx) + "(" + (a + 1) + ")" + name.substring(idx);
- } else {
- newName = name + "(" + (a + 1) + ")";
- }
- destFile = new File(dir, newName);
- if (!destFile.exists()) {
- break;
+ File dir;
+ if (isMusic) {
+ dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC);
+ } else {
+ dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
+ }
+ dir.mkdir();
+ for (int b = 0, N = messageObjects.size(); b < N; b++) {
+ MessageObject message = messageObjects.get(b);
+ String name = message.getDocumentName();
+ File destFile = new File(dir, name);
+ if (destFile.exists()) {
+ int idx = name.lastIndexOf('.');
+ for (int a = 0; a < 10; a++) {
+ String newName;
+ if (idx != -1) {
+ newName = name.substring(0, idx) + "(" + (a + 1) + ")" + name.substring(idx);
+ } else {
+ newName = name + "(" + (a + 1) + ")";
+ }
+ destFile = new File(dir, newName);
+ if (!destFile.exists()) {
+ break;
+ }
}
}
- }
- if (!destFile.exists()) {
- destFile.createNewFile();
- }
- String path = message.messageOwner.attachPath;
- if (path != null && path.length() > 0) {
- File temp = new File(path);
- if (!temp.exists()) {
- path = null;
+ if (!destFile.exists()) {
+ destFile.createNewFile();
+ }
+ String path = message.messageOwner.attachPath;
+ if (path != null && path.length() > 0) {
+ File temp = new File(path);
+ if (!temp.exists()) {
+ path = null;
+ }
+ }
+ if (path == null || path.length() == 0) {
+ path = FileLoader.getPathToMessage(message.messageOwner).toString();
+ }
+ File sourceFile = new File(path);
+ if (!sourceFile.exists()) {
+ waitingForFile = new CountDownLatch(1);
+ addMessageToLoad(message);
+ waitingForFile.await();
+ }
+ if (sourceFile.exists()) {
+ copyFile(sourceFile, destFile, message.getMimeType());
}
}
- if (path == null || path.length() == 0) {
- path = FileLoader.getPathToMessage(message.messageOwner).toString();
- }
- File sourceFile = new File(path);
- if (!sourceFile.exists()) {
- waitingForFile = new CountDownLatch(1);
- addMessageToLoad(message);
- waitingForFile.await();
- }
- copyFile(sourceFile, destFile, message.getMimeType());
}
checkIfFinished();
} catch (Exception e) {
@@ -3953,62 +3984,7 @@ public class MediaController implements AudioManager.OnAudioFocusChangeListener,
boolean result = true;
final String folderName = "NekoX";
if (Build.VERSION.SDK_INT >= 29) {
- try {
- int selectedType = type;
- ContentValues contentValues = new ContentValues();
- String extension = MimeTypeMap.getFileExtensionFromUrl(sourceFile.getAbsolutePath());
- String mimeType = null;
- if (extension != null) {
- mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
- }
- Uri uriToInsert = null;
- if ((type == 0 || type == 1) && mimeType != null) {
- if (mimeType.startsWith("image")) {
- selectedType = 0;
- }
- if (mimeType.startsWith("video")) {
- selectedType = 1;
- }
- }
- if (selectedType == 0) {
- uriToInsert = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
- File dirDest = new File(Environment.DIRECTORY_PICTURES, folderName);
- contentValues.put(MediaStore.MediaColumns.RELATIVE_PATH, dirDest + File.separator);
- contentValues.put(MediaStore.Images.Media.DISPLAY_NAME, AndroidUtilities.generateFileName(0, extension));
- contentValues.put(MediaStore.Images.Media.MIME_TYPE, mimeType);
- } else if (selectedType == 1) {
- File dirDest = new File(Environment.DIRECTORY_MOVIES, folderName);
- contentValues.put(MediaStore.MediaColumns.RELATIVE_PATH, dirDest + File.separator);
- uriToInsert = MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
- contentValues.put(MediaStore.Video.Media.DISPLAY_NAME, AndroidUtilities.generateFileName(1, extension));
- contentValues.put(MediaStore.Video.Media.MIME_TYPE, mimeType);
- } else if (selectedType == 2) {
- File dirDest = new File(Environment.DIRECTORY_DOWNLOADS, folderName);
- contentValues.put(MediaStore.MediaColumns.RELATIVE_PATH, dirDest + File.separator);
- uriToInsert = MediaStore.Downloads.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
- contentValues.put(MediaStore.Downloads.DISPLAY_NAME, sourceFile.getName());
- contentValues.put(MediaStore.Downloads.MIME_TYPE, mimeType);
- } else {
- File dirDest = new File(Environment.DIRECTORY_MUSIC, folderName);
- contentValues.put(MediaStore.MediaColumns.RELATIVE_PATH, dirDest + File.separator);
- uriToInsert = MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
- contentValues.put(MediaStore.Audio.Media.DISPLAY_NAME, sourceFile.getName());
- contentValues.put(MediaStore.Audio.Media.MIME_TYPE, mimeType);
- }
-
- contentValues.put(MediaStore.MediaColumns.MIME_TYPE, mimeType);
-
- Uri dstUri = context.getContentResolver().insert(uriToInsert, contentValues);
- if (dstUri != null) {
- FileInputStream fileInputStream = new FileInputStream(sourceFile);
- OutputStream outputStream = context.getContentResolver().openOutputStream(dstUri);
- AndroidUtilities.copyFile(fileInputStream, outputStream);
- fileInputStream.close();
- }
- } catch (Exception e) {
- FileLog.e(e);
- result = false;
- }
+ result = saveFileInternal(type, sourceFile, null);
} else {
File destFile;
if (type == 0) {
@@ -4128,6 +4104,76 @@ public class MediaController implements AudioManager.OnAudioFocusChangeListener,
}
}
+ private static boolean saveFileInternal(int type, File sourceFile, String filename) {
+ try {
+ int selectedType = type;
+ ContentValues contentValues = new ContentValues();
+ String extension = MimeTypeMap.getFileExtensionFromUrl(sourceFile.getAbsolutePath());
+ String mimeType = null;
+ if (extension != null) {
+ mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
+ }
+ Uri uriToInsert = null;
+ if ((type == 0 || type == 1) && mimeType != null) {
+ if (mimeType.startsWith("image")) {
+ selectedType = 0;
+ }
+ if (mimeType.startsWith("video")) {
+ selectedType = 1;
+ }
+ }
+ final String folderName = "NekoX";
+ if (selectedType == 0) {
+ if (filename == null) {
+ filename = AndroidUtilities.generateFileName(0, extension);
+ }
+ uriToInsert = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
+ File dirDest = new File(Environment.DIRECTORY_PICTURES, folderName);
+ contentValues.put(MediaStore.MediaColumns.RELATIVE_PATH, dirDest + File.separator);
+ contentValues.put(MediaStore.Images.Media.DISPLAY_NAME, filename);
+ contentValues.put(MediaStore.Images.Media.MIME_TYPE, mimeType);
+ } else if (selectedType == 1) {
+ if (filename == null) {
+ filename = AndroidUtilities.generateFileName(1, extension);
+ }
+ File dirDest = new File(Environment.DIRECTORY_MOVIES, folderName);
+ contentValues.put(MediaStore.MediaColumns.RELATIVE_PATH, dirDest + File.separator);
+ uriToInsert = MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
+ contentValues.put(MediaStore.Video.Media.DISPLAY_NAME, filename);
+ } else if (selectedType == 2) {
+ if (filename == null) {
+ filename = sourceFile.getName();
+ }
+ File dirDest = new File(Environment.DIRECTORY_DOWNLOADS, folderName);
+ contentValues.put(MediaStore.MediaColumns.RELATIVE_PATH, dirDest + File.separator);
+ uriToInsert = MediaStore.Downloads.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
+ contentValues.put(MediaStore.Downloads.DISPLAY_NAME, filename);
+ } else {
+ if (filename == null) {
+ filename = sourceFile.getName();
+ }
+ File dirDest = new File(Environment.DIRECTORY_MUSIC, folderName);
+ contentValues.put(MediaStore.MediaColumns.RELATIVE_PATH, dirDest + File.separator);
+ uriToInsert = MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
+ contentValues.put(MediaStore.Audio.Media.DISPLAY_NAME, filename);
+ }
+
+ contentValues.put(MediaStore.MediaColumns.MIME_TYPE, mimeType);
+
+ Uri dstUri = ApplicationLoader.applicationContext.getContentResolver().insert(uriToInsert, contentValues);
+ if (dstUri != null) {
+ FileInputStream fileInputStream = new FileInputStream(sourceFile);
+ OutputStream outputStream = ApplicationLoader.applicationContext.getContentResolver().openOutputStream(dstUri);
+ AndroidUtilities.copyFile(fileInputStream, outputStream);
+ fileInputStream.close();
+ }
+ return true;
+ } catch (Exception e) {
+ FileLog.e(e);
+ return false;
+ }
+ }
+
public static String getStickerExt(Uri uri) {
InputStream inputStream = null;
try {
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MediaDataController.java b/TMessagesProj/src/main/java/org/telegram/messenger/MediaDataController.java
index e53eaa295..1e1fb264d 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/MediaDataController.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/MediaDataController.java
@@ -10,6 +10,7 @@ package org.telegram.messenger;
import android.app.Activity;
import android.content.Context;
+import android.content.Entity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.ShortcutManager;
@@ -32,7 +33,6 @@ import android.text.Spanned;
import android.text.SpannedString;
import android.text.TextUtils;
import android.text.style.CharacterStyle;
-import android.util.Log;
import android.util.SparseArray;
import android.widget.Toast;
@@ -40,6 +40,11 @@ import androidx.core.content.pm.ShortcutInfoCompat;
import androidx.core.content.pm.ShortcutManagerCompat;
import androidx.core.graphics.drawable.IconCompat;
+import androidx.collection.LongSparseArray;
+import androidx.core.content.pm.ShortcutInfoCompat;
+import androidx.core.content.pm.ShortcutManagerCompat;
+import androidx.core.graphics.drawable.IconCompat;
+
import org.telegram.SQLite.SQLiteCursor;
import org.telegram.SQLite.SQLiteDatabase;
import org.telegram.SQLite.SQLiteException;
@@ -53,7 +58,6 @@ import org.telegram.tgnet.TLRPC;
import org.telegram.ui.ActionBar.BaseFragment;
import org.telegram.ui.Components.AvatarDrawable;
import org.telegram.ui.Components.Bulletin;
-import org.telegram.ui.Components.SharedMediaLayout;
import org.telegram.ui.Components.StickerSetBulletinLayout;
import org.telegram.ui.Components.StickersArchiveAlert;
import org.telegram.ui.Components.TextStyleSpan;
@@ -63,7 +67,6 @@ import org.telegram.ui.LaunchActivity;
import java.io.File;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
@@ -74,6 +77,8 @@ import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
import androidx.collection.LongSparseArray;
import tw.nekomimi.nkmr.NekomuraConfig;
@@ -82,6 +87,10 @@ import tw.nekomimi.nekogram.PinnedStickerHelper;
@SuppressWarnings("unchecked")
public class MediaDataController extends BaseController {
+ private static Pattern BOLD_PATTERN = Pattern.compile("\\*\\*(.+?)\\*\\*"),
+ ITALIC_PATTERN = Pattern.compile("__(.+?)__"),
+ SPOILER_PATTERN = Pattern.compile("\\|\\|(.+?)\\|\\|"),
+ STRIKE_PATTERN = Pattern.compile("~~(.+?)~~");
public static String SHORTCUT_CATEGORY = "org.telegram.messenger.SHORTCUT_SHARE";
@@ -158,6 +167,14 @@ public class MediaDataController extends BaseController {
public static final int TYPE_GREETINGS = 3;
+ private int reactionsUpdateHash;
+ private List reactionsList = new ArrayList<>();
+ private List enabledReactionsList = new ArrayList<>();
+ private HashMap reactionsMap = new HashMap<>();
+ private String doubleTapReaction;
+ private boolean isLoadingReactions;
+ private int reactionsUpdateDate;
+
private ArrayList[] stickerSets = new ArrayList[]{new ArrayList<>(), new ArrayList<>(), new ArrayList<>(0), new ArrayList<>(), new ArrayList<>()};
private LongSparseArray[] stickersByIds = new LongSparseArray[]{new LongSparseArray<>(), new LongSparseArray<>(), new LongSparseArray<>(), new LongSparseArray<>(), new LongSparseArray<>()};
private LongSparseArray stickerSetsById = new LongSparseArray<>();
@@ -269,6 +286,136 @@ public class MediaDataController extends BaseController {
}
}
+ public void checkReactions() {
+ if (!isLoadingReactions && Math.abs(System.currentTimeMillis() / 1000 - reactionsUpdateDate) >= 60 * 60) {
+ loadReactions(true, false);
+ }
+ }
+
+ public List getReactionsList() {
+ return reactionsList;
+ }
+
+ public void loadReactions(boolean cache, boolean force) {
+ isLoadingReactions = true;
+ if (cache) {
+ getMessagesStorage().getStorageQueue().postRunnable(() -> {
+ SQLiteCursor c = null;
+ int hash = 0;
+ int date = 0;
+ List reactions = null;
+ try {
+ c = getMessagesStorage().getDatabase().queryFinalized("SELECT data, hash, date FROM reactions");
+ if (c.next()) {
+ NativeByteBuffer data = c.byteBufferValue(0);
+ if (data != null) {
+ int count = data.readInt32(false);
+ reactions = new ArrayList<>(count);
+ for (int i = 0; i < count; i++) {
+ TLRPC.TL_availableReaction react = TLRPC.TL_availableReaction.TLdeserialize(data, data.readInt32(false), true);
+ reactions.add(react);
+ }
+ data.reuse();
+ }
+ hash = c.intValue(1);
+ date = c.intValue(2);
+ }
+ } catch (Exception e) {
+ FileLog.e(e);
+ } finally {
+ if (c != null) {
+ c.dispose();
+ }
+ }
+ processLoadedReactions(reactions, hash, date, true);
+ });
+ } else {
+ TLRPC.TL_messages_getAvailableReactions req = new TLRPC.TL_messages_getAvailableReactions();
+ req.hash = force ? 0 : reactionsUpdateHash;
+ getConnectionsManager().sendRequest(req, (response, error) -> {
+ int date = (int) (System.currentTimeMillis() / 1000);
+ if (response instanceof TLRPC.TL_messages_availableReactionsNotModified) {
+ processLoadedReactions(null, 0, date, false);
+ } else if (response instanceof TLRPC.TL_messages_availableReactions) {
+ TLRPC.TL_messages_availableReactions r = (TLRPC.TL_messages_availableReactions) response;
+ processLoadedReactions(r.reactions, r.hash, date, false);
+ }
+ });
+ }
+ }
+
+ private void processLoadedReactions(List reactions, int hash, int date, boolean cache) {
+ if (reactions != null && date != 0) {
+ reactionsList.clear();
+ reactionsMap.clear();
+ enabledReactionsList.clear();
+ reactionsList.addAll(reactions);
+ for (int i = 0; i < reactionsList.size(); i++) {
+ reactionsList.get(i).positionInList = i;
+ reactionsMap.put(reactionsList.get(i).reaction, reactionsList.get(i));
+ if (!reactionsList.get(i).inactive) {
+ enabledReactionsList.add(reactionsList.get(i));
+ }
+ }
+ reactionsUpdateHash = hash;
+ }
+ reactionsUpdateDate = date;
+ if (reactions != null) {
+ AndroidUtilities.runOnUIThread(() -> {
+ for (int i = 0; i < reactions.size(); i++) {
+ ImageReceiver imageReceiver = new ImageReceiver();
+ TLRPC.TL_availableReaction reaction = reactions.get(i);
+ imageReceiver.setImage(ImageLocation.getForDocument(reaction.activate_animation), null, null, null, 0, 1);
+ imageReceiver.setImage(ImageLocation.getForDocument(reaction.appear_animation), null, null, null, 0, 1);
+ imageReceiver = new ImageReceiver();
+ imageReceiver.setImage(ImageLocation.getForDocument(reaction.static_icon), null, null, null, 0, 1);
+ }
+ NotificationCenter.getGlobalInstance().postNotificationName(NotificationCenter.reactionsDidLoad);
+ });
+ }
+
+ if (!cache) {
+ putReactionsToCache(reactions, hash, date);
+ } else if (Math.abs(System.currentTimeMillis() / 1000 - date) >= 60 * 60) {
+ loadReactions(false, true);
+ }
+ }
+
+ private void putReactionsToCache(List reactions, int hash, int date) {
+ ArrayList reactionsFinal = reactions != null ? new ArrayList<>(reactions) : null;
+ getMessagesStorage().getStorageQueue().postRunnable(() -> {
+ try {
+ if (reactionsFinal != null) {
+ SQLitePreparedStatement state = getMessagesStorage().getDatabase().executeFast("REPLACE INTO reactions VALUES(?, ?, ?)");
+ state.requery();
+ int size = 4; // Integer.BYTES
+ for (int a = 0; a < reactionsFinal.size(); a++) {
+ size += reactionsFinal.get(a).getObjectSize();
+ }
+ NativeByteBuffer data = new NativeByteBuffer(size);
+ data.writeInt32(reactionsFinal.size());
+ for (int a = 0; a < reactionsFinal.size(); a++) {
+ reactionsFinal.get(a).serializeToStream(data);
+ }
+ state.bindByteBuffer(1, data);
+ state.bindInteger(2, hash);
+ state.bindInteger(3, date);
+ state.step();
+ data.reuse();
+ state.dispose();
+ } else {
+ SQLitePreparedStatement state = getMessagesStorage().getDatabase().executeFast("UPDATE reactions SET date = ?");
+ state.requery();
+ state.bindLong(1, date);
+ state.step();
+ state.dispose();
+ }
+ } catch (Exception e) {
+ FileLog.e(e);
+ }
+ });
+ }
+
public void checkFeaturedStickers() {
if (!loadingFeaturedStickers && (!featuredStickersLoaded || Math.abs(System.currentTimeMillis() / 1000 - loadFeaturedDate) >= 60 * 60)) {
loadFeaturedStickers(true, false);
@@ -4375,7 +4522,7 @@ public class MediaDataController extends BaseController {
Collections.sort(entities, entityComparator);
}
- private static boolean checkInclusion(int index, ArrayList entities, boolean end) {
+ private static boolean checkInclusion(int index, List entities, boolean end) {
if (entities == null || entities.isEmpty()) {
return false;
}
@@ -4389,7 +4536,7 @@ public class MediaDataController extends BaseController {
return false;
}
- private static boolean checkIntersection(int start, int end, ArrayList entities) {
+ private static boolean checkIntersection(int start, int end, List entities) {
if (entities == null || entities.isEmpty()) {
return false;
}
@@ -4403,16 +4550,6 @@ public class MediaDataController extends BaseController {
return false;
}
- private static void removeOffsetAfter(int start, int countToRemove, ArrayList entities) {
- int count = entities.size();
- for (int a = 0; a < count; a++) {
- TLRPC.MessageEntity entity = entities.get(a);
- if (entity.offset > start) {
- entity.offset -= countToRemove;
- }
- }
- }
-
public CharSequence substring(CharSequence source, int start, int end) {
if (source instanceof SpannableStringBuilder) {
return source.subSequence(start, end);
@@ -4500,14 +4637,30 @@ public class MediaDataController extends BaseController {
}
}
}
- if (span != null && start < end) {
- editable.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
+ if (span != null && start < end && start < editable.length()) {
+ editable.setSpan(span, start, Math.min(editable.length(), end), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
}
} catch (Exception e) {
FileLog.e(e);
}
}
+ public static void addTextStyleRuns(TLRPC.DraftMessage msg, Spannable text) {
+ addTextStyleRuns(msg.entities, msg.message, text);
+ }
+
+ public static void addTextStyleRuns(MessageObject msg, Spannable text) {
+ addTextStyleRuns(msg.messageOwner.entities, msg.messageText, text);
+ }
+
+ public static void addTextStyleRuns(ArrayList entities, CharSequence messageText, Spannable text) {
+ for (TextStyleSpan prevSpan : text.getSpans(0, text.length(), TextStyleSpan.class))
+ text.removeSpan(prevSpan);
+ for (TextStyleSpan.TextStyleRun run : MediaDataController.getTextStyleRuns(entities, messageText)) {
+ MediaDataController.addStyleToText(new TextStyleSpan(run), run.start, run.end, text, true);
+ }
+ }
+
public static ArrayList getTextStyleRuns(ArrayList entities, CharSequence text) {
ArrayList runs = new ArrayList<>();
ArrayList entitiesCopy = new ArrayList<>(entities);
@@ -4532,7 +4685,9 @@ public class MediaDataController extends BaseController {
newRun.start = entity.offset;
newRun.end = newRun.start + entity.length;
TLRPC.MessageEntity urlEntity = null;
- if (entity instanceof TLRPC.TL_messageEntityStrike) {
+ if (entity instanceof TLRPC.TL_messageEntitySpoiler) {
+ newRun.flags = TextStyleSpan.FLAG_STYLE_SPOILER;
+ } else if (entity instanceof TLRPC.TL_messageEntityStrike) {
newRun.flags = TextStyleSpan.FLAG_STYLE_STRIKE;
} else if (entity instanceof TLRPC.TL_messageEntityUnderline) {
newRun.flags = TextStyleSpan.FLAG_STYLE_UNDERLINE;
@@ -4623,42 +4778,26 @@ public class MediaDataController extends BaseController {
}
public void addStyle(int flags, int spanStart, int spanEnd, ArrayList entities) {
- if ((flags & TextStyleSpan.FLAG_STYLE_BOLD) != 0) {
- TLRPC.MessageEntity entity = new TLRPC.TL_messageEntityBold();
- entity.offset = spanStart;
- entity.length = spanEnd - spanStart;
- entities.add(entity);
- }
- if ((flags & TextStyleSpan.FLAG_STYLE_ITALIC) != 0) {
- TLRPC.MessageEntity entity = new TLRPC.TL_messageEntityItalic();
- entity.offset = spanStart;
- entity.length = spanEnd - spanStart;
- entities.add(entity);
- }
- if ((flags & TextStyleSpan.FLAG_STYLE_MONO) != 0) {
- TLRPC.MessageEntity entity = new TLRPC.TL_messageEntityCode();
- entity.offset = spanStart;
- entity.length = spanEnd - spanStart;
- entities.add(entity);
- }
- if ((flags & TextStyleSpan.FLAG_STYLE_STRIKE) != 0) {
- TLRPC.MessageEntity entity = new TLRPC.TL_messageEntityStrike();
- entity.offset = spanStart;
- entity.length = spanEnd - spanStart;
- entities.add(entity);
- }
- if ((flags & TextStyleSpan.FLAG_STYLE_UNDERLINE) != 0) {
- TLRPC.MessageEntity entity = new TLRPC.TL_messageEntityUnderline();
- entity.offset = spanStart;
- entity.length = spanEnd - spanStart;
- entities.add(entity);
- }
- if ((flags & TextStyleSpan.FLAG_STYLE_QUOTE) != 0) {
- TLRPC.MessageEntity entity = new TLRPC.TL_messageEntityBlockquote();
- entity.offset = spanStart;
- entity.length = spanEnd - spanStart;
- entities.add(entity);
- }
+ if ((flags & TextStyleSpan.FLAG_STYLE_SPOILER) != 0)
+ entities.add(setEntityStartEnd(new TLRPC.TL_messageEntitySpoiler(), spanStart, spanEnd));
+ if ((flags & TextStyleSpan.FLAG_STYLE_BOLD) != 0)
+ entities.add(setEntityStartEnd(new TLRPC.TL_messageEntityBold(), spanStart, spanEnd));
+ if ((flags & TextStyleSpan.FLAG_STYLE_ITALIC) != 0)
+ entities.add(setEntityStartEnd(new TLRPC.TL_messageEntityItalic(), spanStart, spanEnd));
+ if ((flags & TextStyleSpan.FLAG_STYLE_MONO) != 0)
+ entities.add(setEntityStartEnd(new TLRPC.TL_messageEntityCode(), spanStart, spanEnd));
+ if ((flags & TextStyleSpan.FLAG_STYLE_STRIKE) != 0)
+ entities.add(setEntityStartEnd(new TLRPC.TL_messageEntityStrike(), spanStart, spanEnd));
+ if ((flags & TextStyleSpan.FLAG_STYLE_UNDERLINE) != 0)
+ entities.add(setEntityStartEnd(new TLRPC.TL_messageEntityUnderline(), spanStart, spanEnd));
+ if ((flags & TextStyleSpan.FLAG_STYLE_QUOTE) != 0)
+ entities.add(setEntityStartEnd(new TLRPC.TL_messageEntityBlockquote(), spanStart, spanEnd));
+ }
+
+ private TLRPC.MessageEntity setEntityStartEnd(TLRPC.MessageEntity entity, int spanStart, int spanEnd) {
+ entity.offset = spanStart;
+ entity.length = spanEnd - spanStart;
+ return entity;
}
public ArrayList getEntities(CharSequence[] message, boolean allowStrike) {
@@ -4672,9 +4811,6 @@ public class MediaDataController extends BaseController {
boolean isPre = false;
final String mono = "`";
final String pre = "```";
- final String bold = "**";
- final String italic = "__";
- final String strike = "~~";
while ((index = TextUtils.indexOf(message[0], !isPre ? mono : pre, lastIndex)) != -1) {
if (start == -1) {
isPre = message[0].length() - index > 2 && message[0].charAt(index + 1) == '`' && message[0].charAt(index + 2) == '`';
@@ -4797,79 +4933,40 @@ public class MediaDataController extends BaseController {
}
}
- int count = allowStrike ? 3 : 2;
- for (int c = 0; c < count; c++) {
- lastIndex = 0;
- start = -1;
- String checkString;
- char checkChar;
- switch (c) {
- case 0:
- checkString = bold;
- checkChar = '*';
- break;
- case 1:
- checkString = italic;
- checkChar = '_';
- break;
- case 2:
- default:
- checkString = strike;
- checkChar = '~';
- break;
- }
- while ((index = TextUtils.indexOf(message[0], checkString, lastIndex)) != -1) {
- if (start == -1) {
- char prevChar = index == 0 ? ' ' : message[0].charAt(index - 1);
- if (!checkInclusion(index, entities, false) && (prevChar == ' ' || prevChar == '\n')) {
- start = index;
- }
- lastIndex = index + 2;
- } else {
- for (int a = index + 2; a < message[0].length(); a++) {
- if (message[0].charAt(a) == checkChar) {
- index++;
- } else {
- break;
- }
- }
- lastIndex = index + 2;
- if (checkInclusion(index, entities, false) || checkIntersection(start, index, entities)) {
- start = -1;
- continue;
- }
- if (start + 2 != index) {
- if (entities == null) {
- entities = new ArrayList<>();
- }
- try {
- message[0] = AndroidUtilities.concat(substring(message[0], 0, start), substring(message[0], start + 2, index), substring(message[0], index + 2, message[0].length()));
- } catch (Exception e) {
- message[0] = substring(message[0], 0, start).toString() + substring(message[0], start + 2, index).toString() + substring(message[0], index + 2, message[0].length()).toString();
- }
-
- TLRPC.MessageEntity entity;
- if (c == 0) {
- entity = new TLRPC.TL_messageEntityBold();
- } else if (c == 1) {
- entity = new TLRPC.TL_messageEntityItalic();
- } else {
- entity = new TLRPC.TL_messageEntityStrike();
- }
- entity.offset = start;
- entity.length = index - start - 2;
- removeOffsetAfter(entity.offset + entity.length, 4, entities);
- entities.add(entity);
- lastIndex -= 4;
- }
- start = -1;
- }
- }
+ CharSequence cs = message[0];
+ if (entities == null) entities = new ArrayList<>();
+ cs = parsePattern(cs, BOLD_PATTERN, entities, obj -> new TLRPC.TL_messageEntityBold());
+ cs = parsePattern(cs, ITALIC_PATTERN, entities, obj -> new TLRPC.TL_messageEntityItalic());
+ cs = parsePattern(cs, SPOILER_PATTERN, entities, obj -> new TLRPC.TL_messageEntitySpoiler());
+ if (allowStrike) {
+ cs = parsePattern(cs, STRIKE_PATTERN, entities, obj -> new TLRPC.TL_messageEntityStrike());
}
+ message[0] = cs;
return entities;
}
+ private CharSequence parsePattern(CharSequence cs, Pattern pattern, List entities, GenericProvider entityProvider) {
+ Matcher m = pattern.matcher(cs);
+ int offset = 0;
+ while (m.find()) {
+ if (checkInclusion(m.start(), entities, false) || checkIntersection(m.start(), m.end(), entities)) {
+
+ }
+
+ String gr = m.group(1);
+ cs = cs.subSequence(0, m.start() - offset) + gr + cs.subSequence(m.end() - offset, cs.length());
+
+ TLRPC.MessageEntity entity = entityProvider.provide(null);
+ entity.offset = m.start() + offset;
+ entity.length = gr.length();
+ entities.add(entity);
+
+ offset += m.end() - m.start() - gr.length();
+ }
+ return cs;
+ }
+
//---------------- MESSAGES END ----------------
private LongSparseArray draftsFolderIds = new LongSparseArray<>();
@@ -5392,6 +5489,33 @@ public class MediaDataController extends BaseController {
});
}
+ public HashMap getReactionsMap() {
+ return reactionsMap;
+ }
+
+ public String getDoubleTapReaction() {
+ if (doubleTapReaction != null) {
+ return doubleTapReaction;
+ }
+ if (!getReactionsList().isEmpty()) {
+ String savedReaction = MessagesController.getEmojiSettings(currentAccount).getString("reaction_on_double_tap", null);
+ if (savedReaction != null && getReactionsMap().get(savedReaction) != null) {
+ doubleTapReaction = savedReaction;
+ return doubleTapReaction;
+ }
+ return getReactionsList().get(0).reaction;
+ }
+ return null;
+ }
+
+ public void setDoubleTapReaction(String reaction) {
+ MessagesController.getEmojiSettings(currentAccount).edit().putString("reaction_on_double_tap", reaction).apply();
+ doubleTapReaction = reaction;
+ }
+
+ public List getEnabledReactionsList() {
+ return enabledReactionsList;
+ }
//---------------- BOT END ----------------
//---------------- EMOJI START ----------------
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java
index 9ca0e1c70..4385bdc8a 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java
@@ -10,6 +10,7 @@ package org.telegram.messenger;
import android.graphics.Typeface;
import android.graphics.drawable.BitmapDrawable;
+import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.text.Layout;
@@ -25,6 +26,8 @@ import android.text.style.URLSpan;
import android.text.util.Linkify;
import android.util.Base64;
+import androidx.collection.LongSparseArray;
+
import org.telegram.PhoneFormat.PhoneFormat;
import org.telegram.messenger.browser.Browser;
import org.telegram.tgnet.ConnectionsManager;
@@ -33,6 +36,7 @@ import org.telegram.tgnet.TLObject;
import org.telegram.tgnet.TLRPC;
import org.telegram.ui.ActionBar.Theme;
import org.telegram.ui.Cells.ChatMessageCell;
+import org.telegram.ui.Components.spoilers.SpoilerEffect;
import org.telegram.ui.Components.TextStyleSpan;
import org.telegram.ui.Components.TypefaceSpan;
import org.telegram.ui.Components.URLSpanBotCommand;
@@ -54,6 +58,9 @@ import java.util.Calendar;
import java.util.Collections;
import java.util.GregorianCalendar;
import java.util.HashMap;
+import java.util.List;
+import java.util.Stack;
+import java.util.concurrent.atomic.AtomicReference;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -62,6 +69,7 @@ import tw.nekomimi.nkmr.NekomuraConfig;
import tw.nekomimi.nekogram.NekoXConfig;
import androidx.collection.LongSparseArray;
+import androidx.core.math.MathUtils;
public class MessageObject {
@@ -94,6 +102,9 @@ public class MessageObject {
public CharSequence caption;
public MessageObject replyMessageObject;
public int type = 1000;
+ public boolean reactionsVisibleOnScreen;
+ public long reactionsLastCheckTime;
+ public String customName;
private int isRoundVideoCached;
public long eventId;
public int contentType;
@@ -127,8 +138,12 @@ public class MessageObject {
public boolean isRestrictedMessage;
public long loadedFileSize;
+ public boolean isSpoilersRevealed;
public byte[] sponsoredId;
public int sponsoredChannelPost;
+ public TLRPC.ChatInvite sponsoredChatInvite;
+ public String sponsoredChatInviteHash;
+
public String botStartParam;
public boolean animateComments;
@@ -210,11 +225,16 @@ public class MessageObject {
" & ",
" . "
};
+ public Drawable customAvatarDrawable;
public int getEmojiOnlyCount() {
return emojiOnlyCount;
}
+ public boolean shouldDrawReactionsInLayout() {
+ return getDialogId() < 0;
+ }
+
public static class SendAnimationData {
public float x;
public float y;
@@ -351,6 +371,9 @@ public class MessageObject {
}
public static class TextLayoutBlock {
+ public final static int FLAG_RTL = 1, FLAG_NOT_RTL = 2;
+
+ public AtomicReference spoilersPatchedTextLayout = new AtomicReference<>();
public StaticLayout textLayout;
public float textYOffset;
public int charactersOffset;
@@ -358,9 +381,10 @@ public class MessageObject {
public int height;
public int heightByOffset;
public byte directionFlags;
+ public List spoilers = new ArrayList<>();
public boolean isRtl() {
- return (directionFlags & 1) != 0 && (directionFlags & 2) == 0;
+ return (directionFlags & FLAG_RTL) != 0 && (directionFlags & FLAG_NOT_RTL) == 0;
}
}
@@ -822,13 +846,17 @@ public class MessageObject {
}
public MessageObject findPrimaryMessageObject() {
+ return findMessageWithFlags(MessageObject.POSITION_FLAG_TOP | MessageObject.POSITION_FLAG_LEFT);
+ }
+
+ public MessageObject findMessageWithFlags(int flags) {
if (!messages.isEmpty() && positions.isEmpty()) {
calculate();
}
for (int i = 0; i < messages.size(); i++) {
MessageObject object = messages.get(i);
MessageObject.GroupedMessagePosition position = positions.get(object);
- if (position != null && (position.flags & (MessageObject.POSITION_FLAG_TOP | MessageObject.POSITION_FLAG_LEFT)) != 0) {
+ if (position != null && (position.flags & (flags)) == flags) {
return object;
}
}
@@ -1652,12 +1680,16 @@ public class MessageObject {
message = new TLRPC.TL_message();
message.out = false;
message.unread = false;
- message.from_id = new TLRPC.TL_peerUser();
- message.from_id.user_id = event.user_id;
message.peer_id = peer_id;
message.date = event.date;
TLRPC.Message newMessage = ((TLRPC.TL_channelAdminLogEventActionEditMessage) event.action).new_message;
TLRPC.Message oldMessage = ((TLRPC.TL_channelAdminLogEventActionEditMessage) event.action).prev_message;
+ if (newMessage != null && newMessage.from_id != null) {
+ message.from_id = newMessage.from_id;
+ } else {
+ message.from_id = new TLRPC.TL_peerUser();
+ message.from_id.user_id = event.user_id;
+ }
if (newMessage.media != null && !(newMessage.media instanceof TLRPC.TL_messageMediaEmpty) && !(newMessage.media instanceof TLRPC.TL_messageMediaWebPage)/* && TextUtils.isEmpty(newMessage.message)*/) {
boolean changedCaption;
boolean changedMedia;
@@ -1864,6 +1896,10 @@ public class MessageObject {
} else if (event.action instanceof TLRPC.TL_channelAdminLogEventActionSendMessage) {
message = ((TLRPC.TL_channelAdminLogEventActionSendMessage) event.action).message;
messageText = replaceWithLink(LocaleController.getString("EventLogSendMessages", R.string.EventLogSendMessages), "un1", fromUser);
+ } else if (event.action instanceof TLRPC.TL_channelAdminLogEventActionChangeAvailableReactions) {
+ String oldReactions = TextUtils.join(", ", ((TLRPC.TL_channelAdminLogEventActionChangeAvailableReactions) event.action).prev_value);
+ String newReactions = TextUtils.join(", ", ((TLRPC.TL_channelAdminLogEventActionChangeAvailableReactions) event.action).new_value);
+ messageText = replaceWithLink(LocaleController.formatString("ActionReactionsChanged", R.string.ActionReactionsChanged, oldReactions, newReactions), "un1", fromUser);
} else {
messageText = "unsupported " + event.action;
}
@@ -2125,7 +2161,8 @@ public class MessageObject {
mess = mess.subSequence(0, 20) + "...";
}
mess = Emoji.replaceEmoji(mess, Theme.chat_msgTextPaint.getFontMetricsInt(), AndroidUtilities.dp(20), false);
- messageText = replaceWithLink(LocaleController.formatString("ActionPinnedText", R.string.ActionPinnedText, mess), "un1", fromUser != null ? fromUser : chat);
+ MediaDataController.addTextStyleRuns(replyMessageObject, (Spannable) mess);
+ messageText = replaceWithLink(AndroidUtilities.formatSpannable(LocaleController.getString("ActionPinnedText", R.string.ActionPinnedText), mess), "un1", fromUser != null ? fromUser : chat);
} else {
messageText = replaceWithLink(LocaleController.getString("ActionPinnedNoText", R.string.ActionPinnedNoText), "un1", fromUser != null ? fromUser : chat);
}
@@ -4061,7 +4098,8 @@ public class MessageObject {
entity instanceof TLRPC.TL_messageEntityPre ||
entity instanceof TLRPC.TL_messageEntityMentionName ||
entity instanceof TLRPC.TL_inputMessageEntityMentionName ||
- entity instanceof TLRPC.TL_messageEntityTextUrl) {
+ entity instanceof TLRPC.TL_messageEntityTextUrl ||
+ entity instanceof TLRPC.TL_messageEntitySpoiler) {
if (spans != null && spans.length > 0) {
for (int b = 0; b < spans.length; b++) {
if (spans[b] == null) {
@@ -4081,7 +4119,9 @@ public class MessageObject {
newRun.start = entity.offset;
newRun.end = newRun.start + entity.length;
TLRPC.MessageEntity urlEntity = null;
- if (entity instanceof TLRPC.TL_messageEntityStrike) {
+ if (entity instanceof TLRPC.TL_messageEntitySpoiler) {
+ newRun.flags = TextStyleSpan.FLAG_STYLE_SPOILER;
+ } else if (entity instanceof TLRPC.TL_messageEntityStrike) {
newRun.flags = TextStyleSpan.FLAG_STYLE_STRIKE;
} else if (entity instanceof TLRPC.TL_messageEntityUnderline) {
newRun.flags = TextStyleSpan.FLAG_STYLE_UNDERLINE;
@@ -4188,6 +4228,7 @@ public class MessageObject {
for (int a = 0; a < count; a++) {
TextStyleSpan.TextStyleRun run = runs.get(a);
+ boolean setRun = false;
String url = run.urlEntity != null ? TextUtils.substring(text, run.urlEntity.offset, run.urlEntity.offset + run.urlEntity.length) : null;
if (run.urlEntity instanceof TLRPC.TL_messageEntityBotCommand) {
spannable.setSpan(new URLSpanBotCommand(url, t, run), run.start, run.end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
@@ -4222,6 +4263,10 @@ public class MessageObject {
} else if ((run.flags & TextStyleSpan.FLAG_STYLE_MONO) != 0) {
spannable.setSpan(new URLSpanMono(spannable, run.start, run.end, t, run), run.start, run.end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
} else {
+ setRun = true;
+ spannable.setSpan(new TextStyleSpan(run), run.start, run.end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
+ }
+ if (!setRun && (run.flags & TextStyleSpan.FLAG_STYLE_SPOILER) != 0) {
spannable.setSpan(new TextStyleSpan(run), run.start, run.end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
}
}
@@ -4417,6 +4462,7 @@ public class MessageObject {
block.textYOffset = 0;
block.charactersOffset = 0;
block.charactersEnd = textLayout.getText().length();
+
if (emojiOnlyCount != 0) {
switch (emojiOnlyCount) {
case 1:
@@ -4444,15 +4490,17 @@ public class MessageObject {
block.charactersOffset = startCharacter;
block.charactersEnd = endCharacter;
try {
+ SpannableStringBuilder sb = SpannableStringBuilder.valueOf(messageText.subSequence(startCharacter, endCharacter));
if (hasUrls && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
- block.textLayout = StaticLayout.Builder.obtain(messageText, startCharacter, endCharacter, paint, maxWidth + AndroidUtilities.dp(2))
+ block.textLayout = StaticLayout.Builder.obtain(sb, 0, sb.length(), paint, maxWidth + AndroidUtilities.dp(2))
.setBreakStrategy(StaticLayout.BREAK_STRATEGY_HIGH_QUALITY)
.setHyphenationFrequency(StaticLayout.HYPHENATION_FREQUENCY_NONE)
.setAlignment(Layout.Alignment.ALIGN_NORMAL)
.build();
} else {
- block.textLayout = new StaticLayout(messageText, startCharacter, endCharacter, paint, maxWidth, Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);
+ block.textLayout = new StaticLayout(sb, 0, sb.length(), paint, maxWidth, Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);
}
+
block.textYOffset = textLayout.getLineTop(linesOffset);
if (a != 0) {
block.height = (int) (block.textYOffset - prevOffset);
@@ -4472,6 +4520,10 @@ public class MessageObject {
}
}
}
+ block.spoilers.clear();
+ if (!isSpoilersRevealed) {
+ SpoilerEffect.addSpoilers(null, block.textLayout, null, block.spoilers);
+ }
textLayoutBlocks.add(block);
@@ -4535,10 +4587,10 @@ public class MessageObject {
if (lineLeft > 0) {
textXOffset = Math.min(textXOffset, lineLeft);
- block.directionFlags |= 1;
+ block.directionFlags |= TextLayoutBlock.FLAG_RTL;
hasRtl = true;
} else {
- block.directionFlags |= 2;
+ block.directionFlags |= TextLayoutBlock.FLAG_NOT_RTL;
}
try {
@@ -4570,9 +4622,9 @@ public class MessageObject {
linesMaxWidth += lastLeft;
}
hasRtl = blocksCount != 1;
- block.directionFlags |= 1;
+ block.directionFlags |= TextLayoutBlock.FLAG_RTL;
} else {
- block.directionFlags |= 2;
+ block.directionFlags |= TextLayoutBlock.FLAG_NOT_RTL;
}
textWidth = Math.max(textWidth, Math.min(maxWidth, linesMaxWidth));
@@ -4606,10 +4658,16 @@ public class MessageObject {
}
public boolean needDrawAvatar() {
+ if (customAvatarDrawable != null) {
+ return true;
+ }
return !isSponsored() && (isFromUser() || isFromGroup() || eventId != 0 || messageOwner.fwd_from != null && messageOwner.fwd_from.saved_from_peer != null);
}
private boolean needDrawAvatarInternal() {
+ if (customAvatarDrawable != null) {
+ return true;
+ }
return !isSponsored() && (isFromChat() && isFromUser() || isFromGroup() || eventId != 0 || messageOwner.fwd_from != null && messageOwner.fwd_from.saved_from_peer != null);
}
@@ -5881,7 +5939,7 @@ public class MessageObject {
if (message.out && message instanceof TLRPC.TL_messageService) {
return message.id != 1 && ChatObject.canUserDoAdminAction(chat, ChatObject.ACTION_DELETE_MESSAGES);
}
- return inScheduleMode || message.id != 1 && (chat.creator || chat.admin_rights != null && (chat.admin_rights.delete_messages || message.out && (chat.megagroup || chat.admin_rights.post_messages)) || chat.megagroup && message.out && (message.from_id instanceof TLRPC.TL_peerUser || message.from_id instanceof TLRPC.TL_peerChannel));
+ return inScheduleMode || message.id != 1 && (chat.creator || chat.admin_rights != null && (chat.admin_rights.delete_messages || message.out && (chat.megagroup || chat.admin_rights.post_messages)) || chat.megagroup && message.out);
}
return inScheduleMode || isOut(message) || !ChatObject.isChannel(chat);
}
@@ -6233,4 +6291,75 @@ public class MessageObject {
public boolean equals(MessageObject obj) {
return getId() == obj.getId() && getDialogId() == obj.getDialogId();
}
+
+ public boolean isReactionsAvailable() {
+ return !isEditing() && !isSponsored() && isSent() && messageOwner.action == null;
+ }
+
+ public boolean selectReaction(String reaction, boolean fromDoubleTap) {
+ if (messageOwner.reactions == null) {
+ messageOwner.reactions = new TLRPC.TL_messageReactions();
+ messageOwner.reactions.can_see_list = isFromGroup() || isFromUser();
+ }
+
+ TLRPC.TL_reactionCount choosenReaction = null;
+ TLRPC.TL_reactionCount newReaction = null;
+ for (int i = 0; i < messageOwner.reactions.results.size(); i++) {
+ if (messageOwner.reactions.results.get(i).chosen) {
+ choosenReaction = messageOwner.reactions.results.get(i);
+ }
+ if (messageOwner.reactions.results.get(i).reaction.equals(reaction)) {
+ newReaction = messageOwner.reactions.results.get(i);
+ }
+ }
+
+ if (choosenReaction != null && (choosenReaction == newReaction || fromDoubleTap)) {
+ choosenReaction.chosen = false;
+ choosenReaction.count--;
+ if (choosenReaction.count <= 0) {
+ messageOwner.reactions.results.remove(choosenReaction);
+ }
+ if (messageOwner.reactions.can_see_list) {
+ for (int i = 0; i < messageOwner.reactions.recent_reactons.size(); i++) {
+ if (messageOwner.reactions.recent_reactons.get(i).user_id == UserConfig.getInstance(currentAccount).getClientUserId()) {
+ messageOwner.reactions.recent_reactons.remove(i);
+ i--;
+ }
+ }
+ }
+ return false;
+ }
+
+ if (choosenReaction != null) {
+ choosenReaction.chosen = false;
+ choosenReaction.count--;
+ if (choosenReaction.count <= 0) {
+ messageOwner.reactions.results.remove(choosenReaction);
+ }
+ if (messageOwner.reactions.can_see_list) {
+ for (int i = 0; i < messageOwner.reactions.recent_reactons.size(); i++) {
+ if (messageOwner.reactions.recent_reactons.get(i).user_id == UserConfig.getInstance(currentAccount).getClientUserId()) {
+ messageOwner.reactions.recent_reactons.remove(i);
+ i--;
+ }
+ }
+ }
+ }
+ if (newReaction == null) {
+ newReaction = new TLRPC.TL_reactionCount();
+ newReaction.reaction = reaction;
+ messageOwner.reactions.results.add(newReaction);
+ }
+
+ newReaction.chosen = true;
+ newReaction.count++;
+
+ if (messageOwner.reactions.can_see_list) {
+ TLRPC.TL_messageUserReaction action = new TLRPC.TL_messageUserReaction();
+ messageOwner.reactions.recent_reactons.add(0, action);
+ action.user_id = UserConfig.getInstance(currentAccount).getClientUserId();
+ action.reaction = reaction;
+ }
+ return true;
+ }
}
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java
index 9af977fc7..43625aa95 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java
@@ -42,27 +42,26 @@ import org.telegram.tgnet.TLObject;
import org.telegram.tgnet.TLRPC;
import org.telegram.ui.ActionBar.AlertDialog;
import org.telegram.ui.ActionBar.BaseFragment;
-import org.telegram.ui.ActionBar.EmojiThemes;
import org.telegram.ui.ActionBar.Theme;
import org.telegram.ui.ChatActivity;
import org.telegram.ui.Components.AlertsCreator;
import org.telegram.ui.Components.BulletinFactory;
import org.telegram.ui.Components.JoinCallAlert;
import org.telegram.ui.Components.MotionBackgroundDrawable;
+import org.telegram.ui.Components.SwipeGestureSettingsView;
import org.telegram.ui.DialogsActivity;
import org.telegram.ui.EditWidgetActivity;
import org.telegram.ui.LaunchActivity;
import org.telegram.ui.ProfileActivity;
-import org.telegram.ui.Components.SwipeGestureSettingsView;
import java.io.File;
-import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
+import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
@@ -149,6 +148,10 @@ public class MessagesController extends BaseController implements NotificationCe
private int pollsToCheckSize;
private long lastViewsCheckTime;
+ private LongSparseArray> reactionsToCheck = new LongSparseArray<>();
+ private long lastReactionsCheckTime;
+ private LongSparseArray> reactionsTempDialogs = new LongSparseArray<>();
+
public ArrayList dialogFilters = new ArrayList<>();
public SparseArray dialogFiltersById = new SparseArray<>();
private boolean loadingSuggestedFilters;
@@ -304,6 +307,8 @@ public class MessagesController extends BaseController implements NotificationCe
public int mapProvider;
public int availableMapProviders;
public int updateCheckDelay;
+ public int chatReadMarkSizeThreshold;
+ public int chatReadMarkExpirePeriod;
public String mapKey;
public int maxMessageLength;
public int maxCaptionLength;
@@ -333,7 +338,6 @@ public class MessagesController extends BaseController implements NotificationCe
public Set exportPrivateUri;
public boolean autoarchiveAvailable;
public int groipCallVideoMaxParticipants;
- public int chatReadMarkSizeThreshold;
public boolean suggestStickersApiOnly;
public ArrayList gifSearchEmojies = new ArrayList<>();
public HashSet diceEmojies;
@@ -882,6 +886,7 @@ public class MessagesController extends BaseController implements NotificationCe
autoarchiveAvailable = mainPreferences.getBoolean("autoarchiveAvailable", false);
groipCallVideoMaxParticipants = mainPreferences.getInt("groipCallVideoMaxParticipants", 30);
chatReadMarkSizeThreshold = mainPreferences.getInt("chatReadMarkSizeThreshold", 100);
+ chatReadMarkExpirePeriod = mainPreferences.getInt("chatReadMarkExpirePeriod", 7 * 86400);
suggestStickersApiOnly = mainPreferences.getBoolean("suggestStickersApiOnly", false);
roundVideoSize = mainPreferences.getInt("roundVideoSize", 384);
roundVideoBitrate = mainPreferences.getInt("roundVideoBitrate", 1000);
@@ -1228,7 +1233,6 @@ public class MessagesController extends BaseController implements NotificationCe
getMessagesStorage().putDialogs(pinnedRemoteDialogs, 0);
}
-
AndroidUtilities.runOnUIThread(() -> {
if (remote != 2) {
dialogFilters = filters;
@@ -1752,7 +1756,6 @@ public class MessagesController extends BaseController implements NotificationCe
case "chat_read_mark_size_threshold": {
if (value.value instanceof TLRPC.TL_jsonNumber) {
TLRPC.TL_jsonNumber number = (TLRPC.TL_jsonNumber) value.value;
- Log.e("test", chatReadMarkSizeThreshold + "");
if (number.value != chatReadMarkSizeThreshold) {
chatReadMarkSizeThreshold = (int) number.value;
editor.putInt("chatReadMarkSizeThreshold", chatReadMarkSizeThreshold);
@@ -1761,6 +1764,17 @@ public class MessagesController extends BaseController implements NotificationCe
}
break;
}
+ case "chat_read_mark_expire_period": {
+ if (value.value instanceof TLRPC.TL_jsonNumber) {
+ TLRPC.TL_jsonNumber number = (TLRPC.TL_jsonNumber) value.value;
+ if (number.value != chatReadMarkExpirePeriod) {
+ chatReadMarkExpirePeriod = (int) number.value;
+ editor.putInt("chatReadMarkExpirePeriod", chatReadMarkExpirePeriod);
+ changed = true;
+ }
+ }
+ break;
+ }
case "inapp_update_check_delay": {
if (value.value instanceof TLRPC.TL_jsonNumber) {
TLRPC.TL_jsonNumber number = (TLRPC.TL_jsonNumber) value.value;
@@ -2718,6 +2732,7 @@ public class MessagesController extends BaseController implements NotificationCe
channelViewsToSend.clear();
pollsToCheck.clear();
pollsToCheckSize = 0;
+ reactionsToCheck.clear();
dialogsServerOnly.clear();
dialogsForward.clear();
allDialogs.clear();
@@ -2949,6 +2964,12 @@ public class MessagesController extends BaseController implements NotificationCe
object.pollVisibleOnScreen = false;
}
}
+ array = reactionsToCheck.get(dialogId);
+ if (array != null) {
+ for (int i = 0; i < array.size(); i++) {
+ array.valueAt(i).reactionsVisibleOnScreen = false;
+ }
+ }
}
}
Utilities.stageQueue.postRunnable(() -> {
@@ -5583,6 +5604,57 @@ public class MessagesController extends BaseController implements NotificationCe
}
}
int currentServerTime = getConnectionsManager().getCurrentTime();
+ if (Math.abs(System.currentTimeMillis() - lastReactionsCheckTime) >= 15000) {
+ lastReactionsCheckTime = System.currentTimeMillis();
+ if (reactionsToCheck.size() > 0) {
+ AndroidUtilities.runOnUIThread(() -> {
+ long time = SystemClock.elapsedRealtime();
+ for (int a = 0, N = reactionsToCheck.size(); a < N; a++) {
+ SparseArray array = reactionsToCheck.valueAt(a);
+ if (array == null) {
+ continue;
+ }
+ reactionsTempDialogs.clear();
+ for (int b = 0, N2 = array.size(); b < N2; b++) {
+ MessageObject messageObject = array.valueAt(b);
+ List ids = reactionsTempDialogs.get(messageObject.getDialogId());
+ if (ids == null) {
+ reactionsTempDialogs.put(messageObject.getDialogId(), ids = new ArrayList<>());
+ }
+ ids.add(messageObject.getId());
+
+ int timeout = 15000;
+ if (Math.abs(time - messageObject.reactionsLastCheckTime) < timeout) {
+ if (!messageObject.reactionsVisibleOnScreen) {
+ array.remove(messageObject.getId());
+ N2--;
+ b--;
+ }
+ } else {
+ messageObject.reactionsLastCheckTime = time;
+ }
+ }
+ if (array.size() == 0) {
+ reactionsToCheck.remove(reactionsToCheck.keyAt(a));
+ N--;
+ a--;
+ }
+ }
+
+ for (int i = 0; i < reactionsTempDialogs.size(); i++) {
+ TLRPC.TL_messages_getMessagesReactions req = new TLRPC.TL_messages_getMessagesReactions();
+ req.peer = getInputPeer(reactionsTempDialogs.keyAt(i));
+ req.id.addAll(reactionsTempDialogs.valueAt(i));
+ getConnectionsManager().sendRequest(req, (response, error) -> {
+ if (error == null) {
+ TLRPC.Updates updates = (TLRPC.Updates) response;
+ processUpdates(updates, false);
+ }
+ });
+ }
+ });
+ }
+ }
if (Math.abs(System.currentTimeMillis() - lastViewsCheckTime) >= 5000) {
lastViewsCheckTime = System.currentTimeMillis();
if (channelViewsToSend.size() != 0) {
@@ -8761,6 +8833,28 @@ public class MessagesController extends BaseController implements NotificationCe
});
}
+ public void addToReactionsQueue(long dialogId, ArrayList visibleObjects) {
+ SparseArray array = reactionsToCheck.get(dialogId);
+ if (array == null) {
+ reactionsToCheck.put(dialogId, array = new SparseArray<>());
+ }
+ for (int a = 0, N = array.size(); a < N; a++) {
+ MessageObject object = array.valueAt(a);
+ object.reactionsVisibleOnScreen = false;
+ }
+ int time = getConnectionsManager().getCurrentTime();
+ for (int a = 0, N = visibleObjects.size(); a < N; a++) {
+ MessageObject messageObject = visibleObjects.get(a);
+ int id = messageObject.getId();
+ MessageObject object = array.get(id);
+ if (object != null) {
+ object.reactionsVisibleOnScreen = true;
+ } else {
+ array.put(id, messageObject);
+ }
+ }
+ }
+
public void addToPollsQueue(long dialogId, ArrayList visibleObjects) {
SparseArray array = pollsToCheck.get(dialogId);
if (array == null) {
@@ -14283,6 +14377,8 @@ public class MessagesController extends BaseController implements NotificationCe
messageObject.sponsoredId = sponsoredMessage.random_id;
messageObject.botStartParam = sponsoredMessage.start_param;
messageObject.sponsoredChannelPost = sponsoredMessage.channel_post;
+ messageObject.sponsoredChatInvite = sponsoredMessage.chat_invite;
+ messageObject.sponsoredChatInviteHash = sponsoredMessage.chat_invite_hash;
result.add(messageObject);
}
}
@@ -15156,10 +15252,7 @@ public class MessagesController extends BaseController implements NotificationCe
}
public void markSponsoredAsRead(long dialog_id, MessageObject object) {
- ArrayList messages = getSponsoredMessages(dialog_id);
- if (messages != null) {
- messages.remove(object);
- }
+ sponsoredMessages.remove(dialog_id);
}
public void deleteMessagesRange(long dialogId, long channelId, int minDate, int maxDate, boolean forAll, Runnable callback) {
@@ -15191,6 +15284,23 @@ public class MessagesController extends BaseController implements NotificationCe
});
}
+ public void setChatReactions(long chatId, List reactions) {
+ TLRPC.TL_messages_setChatAvailableReactions req = new TLRPC.TL_messages_setChatAvailableReactions();
+ req.peer = getInputPeer(-chatId);
+ req.available_reactions.addAll(reactions);
+ getConnectionsManager().sendRequest(req, (response, error) -> {
+ if (response != null) {
+ processUpdates((TLRPC.Updates) response, false);
+ TLRPC.ChatFull full = getChatFull(chatId);
+ if (full != null) {
+ full.available_reactions = new ArrayList<>(reactions);
+ getMessagesStorage().updateChatInfo(full, false);
+ }
+ AndroidUtilities.runOnUIThread(() -> getNotificationCenter().postNotificationName(NotificationCenter.chatAvailableReactionsUpdated, chatId));
+ }
+ });
+ }
+
public interface MessagesLoadedCallback {
void onMessagesLoaded(boolean fromCache);
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesStorage.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesStorage.java
index af8d6943b..e6c5693a6 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesStorage.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesStorage.java
@@ -21,6 +21,9 @@ import android.util.SparseIntArray;
import androidx.annotation.UiThread;
+import androidx.annotation.UiThread;
+import androidx.collection.LongSparseArray;
+
import org.telegram.PhoneFormat.PhoneFormat;
import org.telegram.SQLite.SQLiteCursor;
import org.telegram.SQLite.SQLiteDatabase;
@@ -121,7 +124,7 @@ public class MessagesStorage extends BaseController {
private CountDownLatch openSync = new CountDownLatch(1);
private static SparseArray Instance = new SparseArray();
- private final static int LAST_DB_VERSION = 86;
+ private final static int LAST_DB_VERSION = 87;
private boolean databaseMigrationInProgress;
public static MessagesStorage getInstance(int num) {
@@ -296,7 +299,7 @@ public class MessagesStorage extends BaseController {
shmCacheFile = new File(filesDir, "cache4.db-shm");
boolean createTable = false;
- //cacheFile.delete();
+
if (!cacheFile.exists()) {
createTable = true;
}
@@ -426,6 +429,7 @@ public class MessagesStorage extends BaseController {
database.executeFast("CREATE TABLE polls_v2(mid INTEGER, uid INTEGER, id INTEGER, PRIMARY KEY (mid, uid));").stepThis().dispose();
database.executeFast("CREATE INDEX IF NOT EXISTS polls_id_v2 ON polls_v2(id);").stepThis().dispose();
+ database.executeFast("CREATE TABLE reactions(data BLOB, hash INTEGER, date INTEGER);").stepThis().dispose();
//version
database.executeFast("PRAGMA user_version = " + LAST_DB_VERSION).stepThis().dispose();
} else {
@@ -456,6 +460,9 @@ public class MessagesStorage extends BaseController {
}
cursor.dispose();
} catch (Exception e) {
+ if (e.getMessage() != null && e.getMessage().contains("malformed")) {
+ throw new RuntimeException("malformed");
+ }
FileLog.e(e);
try {
database.executeFast("CREATE TABLE IF NOT EXISTS params(id INTEGER PRIMARY KEY, seq INTEGER, pts INTEGER, date INTEGER, qts INTEGER, lsv INTEGER, sg INTEGER, pbytes BLOB)").stepThis().dispose();
@@ -1555,6 +1562,12 @@ public class MessagesStorage extends BaseController {
version = 86;
}
+ if (version == 86) {
+ database.executeFast("CREATE TABLE IF NOT EXISTS reactions(data BLOB, hash INTEGER, date INTEGER);").stepThis().dispose();
+ database.executeFast("PRAGMA user_version = 87").stepThis().dispose();
+ version = 87;
+ }
+
FileLog.d("MessagesStorage db migration finished");
AndroidUtilities.runOnUIThread(() -> {
databaseMigrationInProgress = false;
@@ -6041,6 +6054,9 @@ public class MessagesStorage extends BaseController {
participant = TLRPC.ChannelParticipant.TLdeserialize(data, data.readInt32(false), false);
data.reuse();
}
+ if (participant != null && participant.user_id == getUserConfig().clientUserId) {
+ user = getUserConfig().getCurrentUser();
+ }
if (user != null && participant != null) {
if (user.status != null) {
user.status.expires = cursor.intValue(1);
@@ -8774,7 +8790,7 @@ public class MessagesStorage extends BaseController {
try {
SQLitePreparedStatement state = database.executeFast("UPDATE messages_v2 SET replies_data = ? WHERE mid = ? AND uid = ?");
TLRPC.MessageReplies currentReplies = null;
- SQLiteCursor cursor = database.queryFinalized(String.format("SELECT replies_data FROM messages_v2 WHERE mid = %d AND uid = %d", mid, -chatId));
+ SQLiteCursor cursor = database.queryFinalized(String.format(Locale.ENGLISH, "SELECT replies_data FROM messages_v2 WHERE mid = %d AND uid = %d", mid, -chatId));
if (cursor.next()) {
NativeByteBuffer data = cursor.byteBufferValue(0);
if (data != null) {
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/NotificationCenter.java b/TMessagesProj/src/main/java/org/telegram/messenger/NotificationCenter.java
index 484abee0e..adc689664 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/NotificationCenter.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/NotificationCenter.java
@@ -109,6 +109,8 @@ public class NotificationCenter {
public static final int newPeopleNearbyAvailable = totalEvents++;
public static final int stopAllHeavyOperations = totalEvents++;
public static final int startAllHeavyOperations = totalEvents++;
+ public static final int stopSpoilers = totalEvents++;
+ public static final int startSpoilers = totalEvents++;
public static final int sendingMessagesChanged = totalEvents++;
public static final int didUpdateReactions = totalEvents++;
public static final int didVerifyMessagesStickers = totalEvents++;
@@ -228,6 +230,8 @@ public class NotificationCenter {
public static final int onDatabaseMigration = totalEvents++;
public static final int onEmojiInteractionsReceived = totalEvents++;
public static final int emojiPreviewThemesChanged = totalEvents++;
+ public static final int reactionsDidLoad = totalEvents++;
+ public static final int chatAvailableReactionsUpdated = totalEvents++;
// custom
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/NotificationsController.java b/TMessagesProj/src/main/java/org/telegram/messenger/NotificationsController.java
index bd676ad0a..9b6deda8a 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/NotificationsController.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/NotificationsController.java
@@ -1385,7 +1385,7 @@ public class NotificationsController extends BaseController {
}
}
}
- return messageObject.messageOwner.message;
+ return replaceSpoilers(messageObject);
}
long selfUsedId = getUserConfig().getClientUserId();
if (fromId == 0) {
@@ -1834,13 +1834,13 @@ public class NotificationsController extends BaseController {
} else {
if (messageObject.isMediaEmpty()) {
if (!TextUtils.isEmpty(messageObject.messageOwner.message)) {
- return messageObject.messageOwner.message;
+ return replaceSpoilers(messageObject);
} else {
return LocaleController.getString("Message", R.string.Message);
}
} else if (messageObject.messageOwner.media instanceof TLRPC.TL_messageMediaPhoto) {
if (Build.VERSION.SDK_INT >= 19 && !TextUtils.isEmpty(messageObject.messageOwner.message)) {
- return "\uD83D\uDDBC " + messageObject.messageOwner.message;
+ return "\uD83D\uDDBC " + replaceSpoilers(messageObject);
} else if (messageObject.messageOwner.media.ttl_seconds != 0) {
return LocaleController.getString("AttachDestructingPhoto", R.string.AttachDestructingPhoto);
} else {
@@ -1848,7 +1848,7 @@ public class NotificationsController extends BaseController {
}
} else if (messageObject.isVideo()) {
if (Build.VERSION.SDK_INT >= 19 && !TextUtils.isEmpty(messageObject.messageOwner.message)) {
- return "\uD83D\uDCF9 " + messageObject.messageOwner.message;
+ return "\uD83D\uDCF9 " + replaceSpoilers(messageObject);
} else if (messageObject.messageOwner.media.ttl_seconds != 0) {
return LocaleController.getString("AttachDestructingVideo", R.string.AttachDestructingVideo);
} else {
@@ -1884,19 +1884,19 @@ public class NotificationsController extends BaseController {
}
} else if (messageObject.isGif()) {
if (Build.VERSION.SDK_INT >= 19 && !TextUtils.isEmpty(messageObject.messageOwner.message)) {
- return "\uD83C\uDFAC " + messageObject.messageOwner.message;
+ return "\uD83C\uDFAC " + replaceSpoilers(messageObject);
} else {
return LocaleController.getString("AttachGif", R.string.AttachGif);
}
} else {
if (Build.VERSION.SDK_INT >= 19 && !TextUtils.isEmpty(messageObject.messageOwner.message)) {
- return "\uD83D\uDCCE " + messageObject.messageOwner.message;
+ return "\uD83D\uDCCE " + replaceSpoilers(messageObject);
} else {
return LocaleController.getString("AttachDocument", R.string.AttachDocument);
}
}
} else if (!TextUtils.isEmpty(messageObject.messageText)) {
- return messageObject.messageText.toString();
+ return replaceSpoilers(messageObject);
} else {
return LocaleController.getString("Message", R.string.Message);
}
@@ -1911,6 +1911,27 @@ public class NotificationsController extends BaseController {
return null;
}
+ char[] spoilerChars = new char[] {
+ '⠌', '⡢', '⢑','⠨',
+ };
+
+ private String replaceSpoilers(MessageObject messageObject) {
+ String text = messageObject.messageOwner.message;
+ if (text == null || messageObject == null || messageObject.messageOwner == null || messageObject.messageOwner.entities == null) {
+ return null;
+ }
+ StringBuilder stringBuilder = new StringBuilder(text);
+ for (int i = 0; i < messageObject.messageOwner.entities.size(); i++) {
+ if (messageObject.messageOwner.entities.get(i) instanceof TLRPC.TL_messageEntitySpoiler) {
+ TLRPC.TL_messageEntitySpoiler spoiler = (TLRPC.TL_messageEntitySpoiler) messageObject.messageOwner.entities.get(i);
+ for (int j = 0; j < spoiler.length; j++) {
+ stringBuilder.setCharAt(spoiler.offset + j, spoilerChars[j % spoilerChars.length]);
+ }
+ }
+ }
+ return stringBuilder.toString();
+ }
+
private String getStringForMessage(MessageObject messageObject, boolean shortMessage, boolean[] text, boolean[] preview) {
if (AndroidUtilities.needShowPasscode() || SharedConfig.isWaitingForPasscodeEnter) {
return LocaleController.getString("YouHaveNewMessage", R.string.YouHaveNewMessage);
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java b/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java
index 834445eaf..00f838fa2 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/SendMessagesHelper.java
@@ -1460,7 +1460,8 @@ public boolean retriedToSend;
entity instanceof TLRPC.TL_messageEntityItalic ||
entity instanceof TLRPC.TL_messageEntityPre ||
entity instanceof TLRPC.TL_messageEntityCode ||
- entity instanceof TLRPC.TL_messageEntityTextUrl) {
+ entity instanceof TLRPC.TL_messageEntityTextUrl ||
+ entity instanceof TLRPC.TL_messageEntitySpoiler) {
entities.add(entity);
}
}
@@ -2655,7 +2656,7 @@ public boolean retriedToSend;
return voteSendTime.get(pollId, 0L);
}
- public void sendReaction(MessageObject messageObject, CharSequence reaction, ChatActivity parentFragment) {
+ public void sendReaction(MessageObject messageObject, CharSequence reaction, ChatActivity parentFragment, Runnable callback) {
if (messageObject == null || parentFragment == null) {
return;
}
@@ -2669,16 +2670,10 @@ public boolean retriedToSend;
getConnectionsManager().sendRequest(req, (response, error) -> {
if (response != null) {
getMessagesController().processUpdates((TLRPC.Updates) response, false);
- }
- /*AndroidUtilities.runOnUIThread(new Runnable() {
- @Override
- public void run() {
- waitingForVote.remove(key);
- if (finishRunnable != null) {
- finishRunnable.run();
- }
+ if (callback != null) {
+ AndroidUtilities.runOnUIThread(callback);
}
- });*/
+ }
});
}
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/SharedConfig.java b/TMessagesProj/src/main/java/org/telegram/messenger/SharedConfig.java
index 6ec168c99..8e6469963 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/SharedConfig.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/SharedConfig.java
@@ -31,17 +31,24 @@ import org.apache.commons.lang3.StringUtils;
import org.dizitart.no2.objects.filters.ObjectFilters;
import org.json.JSONArray;
import org.json.JSONException;
+import androidx.annotation.IntDef;
+import androidx.core.content.pm.ShortcutManagerCompat;
+
import org.json.JSONObject;
import org.telegram.tgnet.ConnectionsManager;
import org.telegram.tgnet.SerializedData;
import org.telegram.ui.Components.SwipeGestureSettingsView;
import org.telegram.tgnet.TLRPC;
+import org.telegram.ui.Components.SwipeGestureSettingsView;
import java.io.File;
import java.io.RandomAccessFile;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.util.Arrays;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
@@ -67,6 +74,7 @@ import static com.v2ray.ang.V2RayConfig.SSR_PROTOCOL;
import static com.v2ray.ang.V2RayConfig.SS_PROTOCOL;
import static com.v2ray.ang.V2RayConfig.WSS_PROTOCOL;
import static com.v2ray.ang.V2RayConfig.WS_PROTOCOL;
+import java.util.Locale;
public class SharedConfig {
@@ -107,6 +115,7 @@ public class SharedConfig {
public static boolean searchMessagesAsListUsed;
public static boolean stickersReorderingHintUsed;
public static boolean disableVoiceAudioEffects;
+ public static boolean drawSnowInChat;
private static int lastLocalId = -210000;
public static String storageCacheDir;
@@ -1271,6 +1280,7 @@ public class SharedConfig {
mediaColumnsCount = preferences.getInt("mediaColumnsCount", 3);
fastScrollHintCount = preferences.getInt("fastScrollHintCount", 3);
dontAskManageStorage = preferences.getBoolean("dontAskManageStorage", false);
+ drawSnowInChat = preferences.getBoolean("drawSnowInChat", BuildVars.DEBUG_VERSION);
preferences = ApplicationLoader.applicationContext.getSharedPreferences("Notifications", Activity.MODE_PRIVATE);
showNotificationsForAllAccounts = preferences.getBoolean("AllAccounts", true);
@@ -1608,6 +1618,14 @@ public class SharedConfig {
editor.commit();
}
+ public static void toggleDrawSnowInChat() {
+ drawSnowInChat = !drawSnowInChat;
+ SharedPreferences preferences = MessagesController.getGlobalMainSettings();
+ SharedPreferences.Editor editor = preferences.edit();
+ editor.putBoolean("drawSnowInChat", drawSnowInChat);
+ editor.commit();
+ }
+
public static void toggleNoiseSupression() {
noiseSupression = !noiseSupression;
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
@@ -2248,25 +2266,38 @@ public class SharedConfig {
public final static int PERFORMANCE_CLASS_AVERAGE = 1;
public final static int PERFORMANCE_CLASS_HIGH = 2;
+ @Retention(RetentionPolicy.SOURCE)
+ @IntDef({
+ PERFORMANCE_CLASS_LOW,
+ PERFORMANCE_CLASS_AVERAGE,
+ PERFORMANCE_CLASS_HIGH
+ })
+ public @interface PerformanceClass {}
+
+ @PerformanceClass
public static int getDevicePerformanceClass() {
if (devicePerformanceClass == -1) {
- int maxCpuFreq = -1;
- try {
- RandomAccessFile reader = new RandomAccessFile("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", "r");
- String line = reader.readLine();
- if (line != null) {
- maxCpuFreq = Utilities.parseInt(line) / 1000;
- }
- reader.close();
- } catch (Throwable ignore) {
-
- }
int androidVersion = Build.VERSION.SDK_INT;
int cpuCount = ConnectionsManager.CPU_COUNT;
int memoryClass = ((ActivityManager) ApplicationLoader.applicationContext.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass();
+ int totalCpuFreq = 0;
+ int freqResolved = 0;
+ for (int i = 0; i < cpuCount; i++) {
+ try {
+ RandomAccessFile reader = new RandomAccessFile(String.format(Locale.ENGLISH, "/sys/devices/system/cpu/cpu%d/cpufreq/cpuinfo_max_freq", i), "r");
+ String line = reader.readLine();
+ if (line != null) {
+ totalCpuFreq += Utilities.parseInt(line) / 1000;
+ freqResolved++;
+ }
+ reader.close();
+ } catch (Throwable ignore) {}
+ }
+ int maxCpuFreq = freqResolved == 0 ? -1 : (int) Math.ceil(totalCpuFreq / (float) freqResolved);
+
if (androidVersion < 21 || cpuCount <= 2 || memoryClass <= 100 || cpuCount <= 4 && maxCpuFreq != -1 && maxCpuFreq <= 1250 || cpuCount <= 4 && maxCpuFreq <= 1600 && memoryClass <= 128 && androidVersion <= 21 || cpuCount <= 4 && maxCpuFreq <= 1300 && memoryClass <= 128 && androidVersion <= 24) {
devicePerformanceClass = PERFORMANCE_CLASS_LOW;
- } else if (cpuCount < 8 || memoryClass <= 160 || maxCpuFreq != -1 && maxCpuFreq <= 1650 || maxCpuFreq == -1 && cpuCount == 8 && androidVersion <= 23) {
+ } else if (cpuCount < 8 || memoryClass <= 160 || maxCpuFreq != -1 && maxCpuFreq <= 2050 || maxCpuFreq == -1 && cpuCount == 8 && androidVersion <= 23) {
devicePerformanceClass = PERFORMANCE_CLASS_AVERAGE;
} else {
devicePerformanceClass = PERFORMANCE_CLASS_HIGH;
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/Utilities.java b/TMessagesProj/src/main/java/org/telegram/messenger/Utilities.java
index b522187e4..45eaecd29 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/Utilities.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/Utilities.java
@@ -14,12 +14,15 @@ import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
+import com.carrotsearch.randomizedtesting.Xoroshiro128PlusRandom;
+
import java.io.File;
import java.io.FileInputStream;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.security.MessageDigest;
import java.security.SecureRandom;
+import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -27,6 +30,7 @@ public class Utilities {
public static Pattern pattern = Pattern.compile("[\\-0-9]+");
public static SecureRandom random = new SecureRandom();
+ public static Random fastRandom = new Xoroshiro128PlusRandom(random.nextLong());
public static volatile DispatchQueue stageQueue = new DispatchQueue("stageQueue");
public static volatile DispatchQueue globalQueue = new DispatchQueue("globalQueue");
diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/video/MediaCodecVideoConvertor.java b/TMessagesProj/src/main/java/org/telegram/messenger/video/MediaCodecVideoConvertor.java
index 042bca03b..b5c6fb476 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/video/MediaCodecVideoConvertor.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/video/MediaCodecVideoConvertor.java
@@ -166,7 +166,7 @@ public class MediaCodecVideoConvertor {
inputSurface.makeCurrent();
encoder.start();
- // outputSurface = new OutputSurface(savedFilterState, videoPath, paintPath, mediaEntities, null, resultWidth, resultHeight, rotationValue, framerate, true);
+ outputSurface = new OutputSurface(savedFilterState, videoPath, paintPath, mediaEntities, null, resultWidth, resultHeight, rotationValue, framerate, true);
ByteBuffer[] encoderOutputBuffers = null;
ByteBuffer[] encoderInputBuffers = null;
diff --git a/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java b/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java
index 5b1cbe784..db5cd7b57 100644
--- a/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java
+++ b/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java
@@ -13,7 +13,6 @@ import android.os.Build;
import android.text.TextUtils;
import org.osmdroid.util.TileSystemWebMercator;
-import com.google.android.exoplayer2.util.Log;
import org.telegram.messenger.FileLog;
import org.telegram.messenger.ImageLoader;
@@ -45,7 +44,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;
@@ -67,10 +66,10 @@ 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;
+ public static final int LAYER = 136;
public static class TL_stats_megagroupStats extends TLObject {
public static int constructor = 0xef7ff916;
@@ -605,71 +604,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;
@@ -993,90 +992,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 {
@@ -1151,496 +1150,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;
@@ -1660,175 +1659,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;
@@ -1889,87 +1888,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;
@@ -2128,59 +2127,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 {
@@ -2235,7 +2234,7 @@ public class TLRPC {
}
public static class TL_messageUserReaction extends TLObject {
- public static int constructor = 0xd267dcbc;
+ public static int constructor = 0x932844fa;
public long user_id;
public String reaction;
@@ -2254,13 +2253,13 @@ public class TLRPC {
}
public void readParams(AbstractSerializedData stream, boolean exception) {
- user_id = stream.readInt32(exception);
+ user_id = stream.readInt64(exception);
reaction = stream.readString(exception);
}
public void serializeToStream(AbstractSerializedData stream) {
stream.writeInt32(constructor);
- stream.writeInt32((int) user_id);
+ stream.writeInt64(user_id);
stream.writeString(reaction);
}
}
@@ -3229,62 +3228,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 {
@@ -3408,36 +3407,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;
@@ -3552,139 +3551,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;
@@ -4127,100 +4126,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;
@@ -4599,311 +4598,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 {
@@ -5017,25 +5016,25 @@ 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;
@@ -5061,48 +5060,48 @@ public class TLRPC {
}
}
- 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;
@@ -5352,36 +5351,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 {
@@ -5573,39 +5572,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;
@@ -5776,118 +5775,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;
@@ -5911,97 +5910,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;
@@ -6012,28 +6011,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;
@@ -6050,14 +6049,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;
@@ -6074,31 +6073,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;
@@ -6109,90 +6108,90 @@ 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 String prefix;
- 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;
+ 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 0x82006484:
result = new TL_auth_sentCodeTypeMissedCall();
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;
- }
- }
+ 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_sentCodeTypeMissedCall extends auth_SentCodeType {
public static int constructor = 0x82006484;
@@ -6209,84 +6208,84 @@ public class TLRPC {
}
}
- 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 = 0xa518110d;
@@ -6499,133 +6498,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 {
@@ -6814,36 +6813,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 {
@@ -7105,194 +7104,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;
@@ -7303,8 +7302,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);
}
@@ -7328,62 +7327,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;
@@ -7411,8 +7410,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);
}
@@ -7466,108 +7465,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;
@@ -7622,145 +7621,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;
@@ -7810,252 +7809,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 {
@@ -8236,183 +8235,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;
@@ -8523,116 +8522,34 @@ 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 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 static class TL_messageReactionsList extends TLObject {
- public static int constructor = 0xe3ae6108;
-
- public int flags;
- public int count;
- public ArrayList reactions = new ArrayList<>();
- public ArrayList users = new ArrayList<>();
- public String next_offset;
-
- public static TL_messageReactionsList TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) {
- if (TL_messageReactionsList.constructor != constructor) {
+ 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_messageReactionsList", constructor));
+ throw new RuntimeException(String.format("can't parse magic %x in TL_secureValueHash", constructor));
} else {
return null;
}
}
- TL_messageReactionsList result = new TL_messageReactionsList();
+ TL_secureValueHash result = new TL_secureValueHash();
result.readParams(stream, exception);
return result;
}
public void readParams(AbstractSerializedData stream, boolean exception) {
- flags = stream.readInt32(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_messageUserReaction object = TL_messageUserReaction.TLdeserialize(stream, stream.readInt32(exception), exception);
- if (object == null) {
- return;
- }
- reactions.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) {
- next_offset = stream.readString(exception);
- }
+ type = SecureValueType.TLdeserialize(stream, stream.readInt32(exception), exception);
+ hash = stream.readByteArray(exception);
}
public void serializeToStream(AbstractSerializedData stream) {
stream.writeInt32(constructor);
- stream.writeInt32(flags);
- stream.writeInt32(count);
- stream.writeInt32(0x1cb5c415);
- int count = reactions.size();
- stream.writeInt32(count);
- for (int a = 0; a < count; a++) {
- reactions.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(next_offset);
- }
+ type.serializeToStream(stream);
+ stream.writeByteArray(hash);
}
}
@@ -8725,7 +8642,7 @@ public class TLRPC {
}
}
- public static abstract class InputGeoPoint extends TLObject {
+ public static abstract class InputGeoPoint extends TLObject {
public int flags;
public double lat;
@@ -8733,24 +8650,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;
@@ -8776,207 +8693,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;
@@ -9044,69 +8961,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;
@@ -9136,124 +9053,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;
@@ -9292,63 +9209,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 {
@@ -9928,178 +9845,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 {
@@ -10366,137 +10283,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);
}
}
}
@@ -10548,18 +10465,23 @@ public class TLRPC {
public String theme_emoticon;
public int requests_pending;
public Peer default_send_as;
+ public ArrayList available_reactions = new ArrayList<>();
+
public long inviterId; //custom
public int invitesCount; //custom
public static ChatFull TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) {
ChatFull result = null;
switch (constructor) {
- case 0x46a6ffb4:
+ case 0xd18ee226:
result = new TL_chatFull();
break;
- case 0x56662e2e:
+ case 0xe13c3d20:
result = new TL_channelFull();
break;
+ case 0x56662e2e:
+ result = new TL_channelFull_layer135();
+ break;
case 0x59cff963:
result = new TL_channelFull_layer134();
break;
@@ -10644,6 +10566,9 @@ public class TLRPC {
case 0xedd2a791:
result = new TL_chatFull_layer92();
break;
+ case 0x46a6ffb4:
+ result = new TL_chatFull_layer135();
+ break;
case 0xfab31aa3:
result = new TL_channelFull_old();
break;
@@ -11874,7 +11799,7 @@ public class TLRPC {
}
}
- public static class TL_chatFull extends ChatFull {
+ public static class TL_chatFull_layer135 extends ChatFull {
public static int constructor = 0x46a6ffb4;
public void readParams(AbstractSerializedData stream, boolean exception) {
@@ -11999,7 +11924,7 @@ public class TLRPC {
}
}
- public static class TL_channelFull extends ChatFull {
+ public static class TL_channelFull_layer135 extends ChatFull {
public static int constructor = 0x56662e2e;
public void readParams(AbstractSerializedData stream, boolean exception) {
@@ -12699,6 +12624,419 @@ public class TLRPC {
}
}
+ public static class TL_chatFull extends ChatFull {
+ public static int constructor = 0xd18ee226;
+
+ public void readParams(AbstractSerializedData stream, boolean exception) {
+ flags = stream.readInt32(exception);
+ can_set_username = (flags & 128) != 0;
+ has_scheduled = (flags & 256) != 0;
+ id = stream.readInt64(exception);
+ about = stream.readString(exception);
+ participants = ChatParticipants.TLdeserialize(stream, stream.readInt32(exception), exception);
+ if ((flags & 4) != 0) {
+ chat_photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ notify_settings = PeerNotifySettings.TLdeserialize(stream, stream.readInt32(exception), exception);
+ if ((flags & 8192) != 0) {
+ exported_invite = ExportedChatInvite.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ if ((flags & 8) != 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++) {
+ BotInfo object = BotInfo.TLdeserialize(stream, stream.readInt32(exception), exception);
+ if (object == null) {
+ return;
+ }
+ bot_info.add(object);
+ }
+ }
+ if ((flags & 64) != 0) {
+ pinned_msg_id = stream.readInt32(exception);
+ }
+ if ((flags & 2048) != 0) {
+ folder_id = stream.readInt32(exception);
+ }
+ if ((flags & 4096) != 0) {
+ call = TL_inputGroupCall.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ if ((flags & 16384) != 0) {
+ ttl_period = stream.readInt32(exception);
+ }
+ if ((flags & 32768) != 0) {
+ groupcall_default_join_as = Peer.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ if ((flags & 65536) != 0) {
+ theme_emoticon = stream.readString(exception);
+ }
+ if ((flags & 131072) != 0) {
+ requests_pending = stream.readInt32(exception);
+ }
+ if ((flags & 131072) != 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++) {
+ recent_requesters.add(stream.readInt64(exception));
+ }
+ }
+ if ((flags & 262144) != 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++) {
+ available_reactions.add(stream.readString(exception));
+ }
+ }
+ }
+
+ public void serializeToStream(AbstractSerializedData stream) {
+ stream.writeInt32(constructor);
+ flags = can_set_username ? (flags | 128) : (flags &~ 128);
+ flags = has_scheduled ? (flags | 256) : (flags &~ 256);
+ stream.writeInt32(flags);
+ stream.writeInt64(id);
+ stream.writeString(about);
+ participants.serializeToStream(stream);
+ if ((flags & 4) != 0) {
+ chat_photo.serializeToStream(stream);
+ }
+ notify_settings.serializeToStream(stream);
+ if ((flags & 8192) != 0) {
+ exported_invite.serializeToStream(stream);
+ }
+ if ((flags & 8) != 0) {
+ stream.writeInt32(0x1cb5c415);
+ int count = bot_info.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ bot_info.get(a).serializeToStream(stream);
+ }
+ }
+ if ((flags & 64) != 0) {
+ stream.writeInt32(pinned_msg_id);
+ }
+ if ((flags & 2048) != 0) {
+ stream.writeInt32(folder_id);
+ }
+ if ((flags & 4096) != 0) {
+ call.serializeToStream(stream);
+ }
+ if ((flags & 16384) != 0) {
+ stream.writeInt32(ttl_period);
+ }
+ if ((flags & 32768) != 0) {
+ groupcall_default_join_as.serializeToStream(stream);
+ }
+ if ((flags & 65536) != 0) {
+ stream.writeString(theme_emoticon);
+ }
+ if ((flags & 131072) != 0) {
+ stream.writeInt32(requests_pending);
+ }
+ if ((flags & 131072) != 0) {
+ stream.writeInt32(0x1cb5c415);
+ int count = recent_requesters.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ stream.writeInt64(recent_requesters.get(a));
+ }
+ }
+ if ((flags & 262144) != 0) {
+ stream.writeInt32(0x1cb5c415);
+ int count = available_reactions.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ stream.writeString(available_reactions.get(a));
+ }
+ }
+ }
+ }
+
+ public static class TL_channelFull extends ChatFull {
+ public static int constructor = 0xe13c3d20;
+
+ public void readParams(AbstractSerializedData stream, boolean exception) {
+ flags = stream.readInt32(exception);
+ can_view_participants = (flags & 8) != 0;
+ can_set_username = (flags & 64) != 0;
+ can_set_stickers = (flags & 128) != 0;
+ hidden_prehistory = (flags & 1024) != 0;
+ can_set_location = (flags & 65536) != 0;
+ has_scheduled = (flags & 524288) != 0;
+ can_view_stats = (flags & 1048576) != 0;
+ blocked = (flags & 4194304) != 0;
+ id = stream.readInt64(exception);
+ about = stream.readString(exception);
+ if ((flags & 1) != 0) {
+ participants_count = stream.readInt32(exception);
+ }
+ if ((flags & 2) != 0) {
+ admins_count = stream.readInt32(exception);
+ }
+ if ((flags & 4) != 0) {
+ kicked_count = stream.readInt32(exception);
+ }
+ if ((flags & 4) != 0) {
+ banned_count = stream.readInt32(exception);
+ }
+ if ((flags & 8192) != 0) {
+ online_count = stream.readInt32(exception);
+ }
+ read_inbox_max_id = stream.readInt32(exception);
+ read_outbox_max_id = stream.readInt32(exception);
+ unread_count = stream.readInt32(exception);
+ chat_photo = Photo.TLdeserialize(stream, stream.readInt32(exception), exception);
+ notify_settings = PeerNotifySettings.TLdeserialize(stream, stream.readInt32(exception), exception);
+ if ((flags & 8388608) != 0) {
+ exported_invite = ExportedChatInvite.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++) {
+ BotInfo object = BotInfo.TLdeserialize(stream, stream.readInt32(exception), exception);
+ if (object == null) {
+ return;
+ }
+ bot_info.add(object);
+ }
+ if ((flags & 16) != 0) {
+ migrated_from_chat_id = stream.readInt64(exception);
+ }
+ if ((flags & 16) != 0) {
+ migrated_from_max_id = stream.readInt32(exception);
+ }
+ if ((flags & 32) != 0) {
+ pinned_msg_id = stream.readInt32(exception);
+ }
+ if ((flags & 256) != 0) {
+ stickerset = StickerSet.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ if ((flags & 512) != 0) {
+ available_min_id = stream.readInt32(exception);
+ }
+ if ((flags & 2048) != 0) {
+ folder_id = stream.readInt32(exception);
+ }
+ if ((flags & 16384) != 0) {
+ linked_chat_id = stream.readInt64(exception);
+ }
+ if ((flags & 32768) != 0) {
+ location = ChannelLocation.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ if ((flags & 131072) != 0) {
+ slowmode_seconds = stream.readInt32(exception);
+ }
+ if ((flags & 262144) != 0) {
+ slowmode_next_send_date = stream.readInt32(exception);
+ }
+ if ((flags & 4096) != 0) {
+ stats_dc = stream.readInt32(exception);
+ }
+ pts = stream.readInt32(exception);
+ if ((flags & 2097152) != 0) {
+ call = TL_inputGroupCall.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ if ((flags & 16777216) != 0) {
+ ttl_period = stream.readInt32(exception);
+ }
+ if ((flags & 33554432) != 0) {
+ 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++) {
+ pending_suggestions.add(stream.readString(exception));
+ }
+ }
+ if ((flags & 67108864) != 0) {
+ groupcall_default_join_as = Peer.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ if ((flags & 134217728) != 0) {
+ theme_emoticon = stream.readString(exception);
+ }
+ if ((flags & 268435456) != 0) {
+ requests_pending = stream.readInt32(exception);
+ }
+ if ((flags & 268435456) != 0) {
+ 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++) {
+ recent_requesters.add(stream.readInt64(exception));
+ }
+ }
+ if ((flags & 536870912) != 0) {
+ default_send_as = Peer.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ if ((flags & 1073741824) != 0) {
+ 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++) {
+ available_reactions.add(stream.readString(exception));
+ }
+ }
+ }
+
+ public void serializeToStream(AbstractSerializedData stream) {
+ stream.writeInt32(constructor);
+ flags = can_view_participants ? (flags | 8) : (flags &~ 8);
+ flags = can_set_username ? (flags | 64) : (flags &~ 64);
+ flags = can_set_stickers ? (flags | 128) : (flags &~ 128);
+ flags = hidden_prehistory ? (flags | 1024) : (flags &~ 1024);
+ flags = can_set_location ? (flags | 65536) : (flags &~ 65536);
+ flags = has_scheduled ? (flags | 524288) : (flags &~ 524288);
+ flags = can_view_stats ? (flags | 1048576) : (flags &~ 1048576);
+ flags = blocked ? (flags | 4194304) : (flags &~ 4194304);
+ stream.writeInt32(flags);
+ stream.writeInt64(id);
+ stream.writeString(about);
+ if ((flags & 1) != 0) {
+ stream.writeInt32(participants_count);
+ }
+ if ((flags & 2) != 0) {
+ stream.writeInt32(admins_count);
+ }
+ if ((flags & 4) != 0) {
+ stream.writeInt32(kicked_count);
+ }
+ if ((flags & 4) != 0) {
+ stream.writeInt32(banned_count);
+ }
+ if ((flags & 8192) != 0) {
+ stream.writeInt32(online_count);
+ }
+ stream.writeInt32(read_inbox_max_id);
+ stream.writeInt32(read_outbox_max_id);
+ stream.writeInt32(unread_count);
+ chat_photo.serializeToStream(stream);
+ notify_settings.serializeToStream(stream);
+ if ((flags & 8388608) != 0) {
+ exported_invite.serializeToStream(stream);
+ }
+ stream.writeInt32(0x1cb5c415);
+ int count = bot_info.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ bot_info.get(a).serializeToStream(stream);
+ }
+ if ((flags & 16) != 0) {
+ stream.writeInt64(migrated_from_chat_id);
+ }
+ if ((flags & 16) != 0) {
+ stream.writeInt32(migrated_from_max_id);
+ }
+ if ((flags & 32) != 0) {
+ stream.writeInt32(pinned_msg_id);
+ }
+ if ((flags & 256) != 0) {
+ stickerset.serializeToStream(stream);
+ }
+ if ((flags & 512) != 0) {
+ stream.writeInt32(available_min_id);
+ }
+ if ((flags & 2048) != 0) {
+ stream.writeInt32(folder_id);
+ }
+ if ((flags & 16384) != 0) {
+ stream.writeInt64(linked_chat_id);
+ }
+ if ((flags & 32768) != 0) {
+ location.serializeToStream(stream);
+ }
+ if ((flags & 131072) != 0) {
+ stream.writeInt32(slowmode_seconds);
+ }
+ if ((flags & 262144) != 0) {
+ stream.writeInt32(slowmode_next_send_date);
+ }
+ if ((flags & 4096) != 0) {
+ stream.writeInt32(stats_dc);
+ }
+ stream.writeInt32(pts);
+ if ((flags & 2097152) != 0) {
+ call.serializeToStream(stream);
+ }
+ if ((flags & 16777216) != 0) {
+ stream.writeInt32(ttl_period);
+ }
+ if ((flags & 33554432) != 0) {
+ stream.writeInt32(0x1cb5c415);
+ count = pending_suggestions.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ stream.writeString(pending_suggestions.get(a));
+ }
+ }
+ if ((flags & 67108864) != 0) {
+ groupcall_default_join_as.serializeToStream(stream);
+ }
+ if ((flags & 134217728) != 0) {
+ stream.writeString(theme_emoticon);
+ }
+ if ((flags & 268435456) != 0) {
+ stream.writeInt32(requests_pending);
+ }
+ if ((flags & 268435456) != 0) {
+ stream.writeInt32(0x1cb5c415);
+ count = recent_requesters.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ stream.writeInt64(recent_requesters.get(a));
+ }
+ }
+ if ((flags & 536870912) != 0) {
+ default_send_as.serializeToStream(stream);
+ }
+ if ((flags & 1073741824) != 0) {
+ stream.writeInt32(0x1cb5c415);
+ count = available_reactions.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ stream.writeString(available_reactions.get(a));
+ }
+ }
+ }
+ }
+
public static class TL_channelFull_layer131 extends TL_channelFull {
public static int constructor = 0x548c3f93;
@@ -14894,61 +15232,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 {
@@ -15192,27 +15530,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 {
@@ -15732,58 +16070,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 {
@@ -15870,14 +16208,14 @@ 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;
@@ -15889,48 +16227,48 @@ public class TLRPC {
public static KeyboardButton TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) {
KeyboardButton result = null;
switch (constructor) {
- case 0xd02e7fd4:
- result = new TL_inputKeyboardButtonUrlAuth();
- break;
- case 0xa2fa4880:
- result = new TL_keyboardButton();
- break;
- case 0xfc796b3f:
- result = new TL_keyboardButtonRequestGeoLocation();
- break;
- case 0x258aff05:
- result = new TL_keyboardButtonUrl();
+ case 0xb16a6c29:
+ result = new TL_keyboardButtonRequestPhone();
break;
case 0x50f41ccf:
result = new TL_keyboardButtonGame();
break;
- case 0x683a5e46:
- result = new TL_keyboardButtonCallback_layer117();
+ case 0x258aff05:
+ result = new TL_keyboardButtonUrl();
break;
case 0x568a748:
result = new TL_keyboardButtonSwitchInline();
break;
- case 0xb16a6c29:
- result = new TL_keyboardButtonRequestPhone();
+ case 0xfc796b3f:
+ result = new TL_keyboardButtonRequestGeoLocation();
break;
case 0x10b78d29:
result = new TL_keyboardButtonUrlAuth();
break;
+ case 0xd02e7fd4:
+ result = new TL_inputKeyboardButtonUrlAuth();
+ break;
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 0x35bbdb6b:
+ result = new TL_keyboardButtonCallback();
+ break;
case 0xe988037b:
result = new TL_inputKeyboardButtonUserProfile();
break;
case 0x308660c1:
result = new TL_keyboardButtonUserProfile();
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));
@@ -15942,83 +16280,83 @@ public class TLRPC {
}
}
- 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;
@@ -16096,6 +16434,20 @@ public class TLRPC {
}
}
+ 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 serializeToStream(AbstractSerializedData stream) {
+ stream.writeInt32(constructor);
+ stream.writeString(text);
+ }
+ }
+
public static class TL_inputKeyboardButtonUserProfile extends KeyboardButton {
public static int constructor = 0xe988037b;
@@ -16126,20 +16478,6 @@ public class TLRPC {
}
}
- 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 serializeToStream(AbstractSerializedData stream) {
- stream.writeInt32(constructor);
- stream.writeString(text);
- }
- }
-
public static class TL_keyboardButtonCallback extends KeyboardButton {
public static int constructor = 0x35bbdb6b;
@@ -16160,35 +16498,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 {
@@ -16746,92 +17084,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;
@@ -17056,71 +17394,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;
@@ -17370,244 +17708,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;
@@ -17630,97 +17968,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 {
@@ -17817,456 +18155,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;
@@ -18399,64 +18737,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 {
@@ -18748,110 +19086,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;
@@ -19341,36 +19679,36 @@ 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 boolean verifiedExtended() {
@@ -19395,109 +19733,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;
@@ -19883,421 +20221,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 {
@@ -20529,124 +20867,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 {
@@ -20801,45 +21139,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;
@@ -20852,165 +21190,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;
@@ -21043,36 +21381,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;
@@ -21223,51 +21561,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;
@@ -21315,73 +21653,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;
@@ -21414,28 +21752,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;
@@ -21446,33 +21784,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;
@@ -21489,33 +21827,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;
@@ -21551,14 +21889,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;
@@ -21581,14 +21919,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;
@@ -21620,75 +21958,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;
@@ -21819,309 +22157,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 {
@@ -22365,68 +22703,70 @@ 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;
+ public static int constructor = 0x87b6e36;
public int flags;
public boolean min;
+ public boolean can_see_list;
public ArrayList results = new ArrayList<>();
+ public ArrayList recent_reactons = new ArrayList<>();
public static TL_messageReactions TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) {
if (TL_messageReactions.constructor != constructor) {
@@ -22444,6 +22784,7 @@ public class TLRPC {
public void readParams(AbstractSerializedData stream, boolean exception) {
flags = stream.readInt32(exception);
min = (flags & 1) != 0;
+ can_see_list = (flags & 4) != 0;
int magic = stream.readInt32(exception);
if (magic != 0x1cb5c415) {
if (exception) {
@@ -22459,11 +22800,29 @@ public class TLRPC {
}
results.add(object);
}
+ if ((flags & 2) != 0) {
+ 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_messageUserReaction object = TL_messageUserReaction.TLdeserialize(stream, stream.readInt32(exception), exception);
+ if (object == null) {
+ return;
+ }
+ recent_reactons.add(object);
+ }
+ }
}
public void serializeToStream(AbstractSerializedData stream) {
stream.writeInt32(constructor);
flags = min ? (flags | 1) : (flags &~ 1);
+ flags = can_see_list ? (flags | 4) : (flags &~ 4);
stream.writeInt32(flags);
stream.writeInt32(0x1cb5c415);
int count = results.size();
@@ -22471,242 +22830,250 @@ public class TLRPC {
for (int a = 0; a < count; a++) {
results.get(a).serializeToStream(stream);
}
+ if ((flags & 2) != 0) {
+ stream.writeInt32(0x1cb5c415);
+ count = recent_reactons.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ recent_reactons.get(a).serializeToStream(stream);
+ }
+ }
}
}
- 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 {
@@ -22788,36 +23155,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;
@@ -23040,66 +23407,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;
@@ -23204,111 +23571,111 @@ public class TLRPC {
}
}
- public static class TL_shippingOption extends TLObject {
- public static int constructor = 0xb6213cdf;
+ public static class TL_shippingOption extends TLObject {
+ public static int constructor = 0xb6213cdf;
- public String id;
- public String title;
- public ArrayList prices = new ArrayList<>();
+ 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 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 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 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 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;
@@ -23430,177 +23797,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;
@@ -23633,230 +24000,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;
@@ -24031,147 +24398,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 {
@@ -24228,11 +24595,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
@@ -24366,171 +24733,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;
@@ -24569,72 +24936,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;
@@ -24663,130 +25030,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;
@@ -24847,203 +25214,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;
@@ -25091,53 +25458,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 {
@@ -25343,42 +25710,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;
@@ -25496,105 +25863,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;
@@ -25626,20 +25993,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;
@@ -25656,51 +26023,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;
@@ -25774,76 +26141,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;
@@ -25961,196 +26328,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 {
@@ -26326,104 +26693,104 @@ 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;
@@ -26525,36 +26892,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 {
@@ -26793,36 +27160,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 {
@@ -29072,158 +29439,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;
@@ -29261,14 +29628,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;
@@ -29361,297 +29728,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 {
@@ -30064,57 +30431,60 @@ 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 0x32ca960f:
+ result = new TL_messageEntitySpoiler();
+ 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;
@@ -30127,254 +30497,269 @@ 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_messageEntitySpoiler extends MessageEntity {
+ public static int constructor = 0x32ca960f;
+
+ 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 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;
@@ -30440,20 +30825,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;
@@ -30956,163 +31341,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);
@@ -31210,34 +31595,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;
@@ -31428,39 +31813,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;
@@ -31698,281 +32083,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 {
@@ -32315,162 +32700,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;
@@ -32588,125 +32973,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;
@@ -32979,173 +33364,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;
@@ -33234,37 +33619,39 @@ 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;
+ public static int constructor = 0x3a836df8;
public int flags;
public byte[] random_id;
public Peer from_id;
+ public ChatInvite chat_invite;
+ public String chat_invite_hash;
public int channel_post;
public String start_param;
public String message;
@@ -33286,7 +33673,15 @@ public class TLRPC {
public void readParams(AbstractSerializedData stream, boolean exception) {
flags = stream.readInt32(exception);
random_id = stream.readByteArray(exception);
- from_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception);
+ if ((flags & 8) != 0) {
+ from_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ if ((flags & 16) != 0) {
+ chat_invite = ChatInvite.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+ if ((flags & 16) != 0) {
+ chat_invite_hash = stream.readString(exception);
+ }
if ((flags & 4) != 0) {
channel_post = stream.readInt32(exception);
}
@@ -33317,7 +33712,15 @@ public class TLRPC {
stream.writeInt32(constructor);
stream.writeInt32(flags);
stream.writeByteArray(random_id);
- from_id.serializeToStream(stream);
+ if ((flags & 8) != 0) {
+ from_id.serializeToStream(stream);
+ }
+ if ((flags & 16) != 0) {
+ chat_invite.serializeToStream(stream);
+ }
+ if ((flags & 16) != 0) {
+ stream.writeString(chat_invite_hash);
+ }
if ((flags & 4) != 0) {
stream.writeInt32(channel_post);
}
@@ -33336,265 +33739,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;
@@ -33643,7 +34046,7 @@ public class TLRPC {
}
}
TL_contacts_resolvedPeer result = new TL_contacts_resolvedPeer();
- result.readParams(stream, exception);
+ result.readParams(stream, exception);
return result;
}
@@ -33820,252 +34223,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 {
@@ -34186,27 +34589,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;
@@ -34273,16 +34676,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;
@@ -34507,75 +34910,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;
@@ -34664,71 +35067,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;
@@ -34763,82 +35166,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;
@@ -34921,14 +35324,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 {
@@ -35091,130 +35494,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;
@@ -35233,16 +35636,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;
@@ -35415,557 +35818,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 {
@@ -36089,15 +36492,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;
@@ -36116,16 +36519,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;
@@ -36227,6 +36630,59 @@ public class TLRPC {
}
}
+ public static class TL_availableReaction extends TLObject {
+ public static int constructor = 0x21d7c4b;
+
+ public int flags;
+ public boolean inactive;
+ public String reaction;
+ public String title;
+ public Document static_icon;
+ public Document appear_animation;
+ public Document select_animation;
+ public Document activate_animation;
+ public Document effect_animation;
+ public int positionInList; //custom
+
+ public static TL_availableReaction TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) {
+ if (TL_availableReaction.constructor != constructor) {
+ if (exception) {
+ throw new RuntimeException(String.format("can't parse magic %x in TL_availableReaction", constructor));
+ } else {
+ return null;
+ }
+ }
+ TL_availableReaction result = new TL_availableReaction();
+ result.readParams(stream, exception);
+ return result;
+ }
+
+ public void readParams(AbstractSerializedData stream, boolean exception) {
+ flags = stream.readInt32(exception);
+ inactive = (flags & 1) != 0;
+ reaction = stream.readString(exception);
+ title = stream.readString(exception);
+ static_icon = Document.TLdeserialize(stream, stream.readInt32(exception), exception);
+ appear_animation = Document.TLdeserialize(stream, stream.readInt32(exception), exception);
+ select_animation = Document.TLdeserialize(stream, stream.readInt32(exception), exception);
+ activate_animation = Document.TLdeserialize(stream, stream.readInt32(exception), exception);
+ effect_animation = Document.TLdeserialize(stream, stream.readInt32(exception), exception);
+ }
+
+ public void serializeToStream(AbstractSerializedData stream) {
+ stream.writeInt32(constructor);
+ flags = inactive ? (flags | 1) : (flags &~ 1);
+ stream.writeInt32(flags);
+ stream.writeString(reaction);
+ stream.writeString(title);
+ static_icon.serializeToStream(stream);
+ appear_animation.serializeToStream(stream);
+ select_animation.serializeToStream(stream);
+ activate_animation.serializeToStream(stream);
+ effect_animation.serializeToStream(stream);
+ }
+ }
+
public static class TL_webAuthorization extends TLObject {
public static int constructor = 0xa6f8f452;
@@ -36279,115 +36735,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 {
@@ -36478,12 +36934,12 @@ public class TLRPC {
case 0x23209745:
result = new TL_channelAdminLogEventActionStartGroupCall();
break;
+ case 0x9cf7f76a:
+ result = new TL_channelAdminLogEventActionChangeAvailableReactions();
+ break;
case 0x50c7ac8:
result = new TL_channelAdminLogEventActionChangeLinkedChat();
break;
- case 0x278f2868:
- result = new TL_channelAdminLogEventActionSendMessage();
- break;
case 0x1b7907ae:
result = new TL_channelAdminLogEventActionToggleInvites();
break;
@@ -36993,6 +37449,54 @@ public class TLRPC {
}
}
+ public static class TL_channelAdminLogEventActionChangeAvailableReactions extends ChannelAdminLogEventAction {
+ public static int constructor = 0x9cf7f76a;
+
+ public ArrayList prev_value = new ArrayList<>();
+ public ArrayList new_value = 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++) {
+ prev_value.add(stream.readString(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++) {
+ new_value.add(stream.readString(exception));
+ }
+ }
+
+ public void serializeToStream(AbstractSerializedData stream) {
+ stream.writeInt32(constructor);
+ stream.writeInt32(0x1cb5c415);
+ int count = prev_value.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ stream.writeString(prev_value.get(a));
+ }
+ stream.writeInt32(0x1cb5c415);
+ count = new_value.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ stream.writeString(new_value.get(a));
+ }
+ }
+ }
+
public static class TL_channelAdminLogEventActionToggleInvites extends ChannelAdminLogEventAction {
public static int constructor = 0x1b7907ae;
@@ -37089,75 +37593,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 {
@@ -37300,36 +37804,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;
@@ -37418,88 +37922,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;
@@ -37511,7 +38015,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 boolean verifiedExtended() {
return verified || ArrayUtil.contains(NekoXConfig.officialChats, id);
@@ -37600,8 +38104,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;
@@ -37635,58 +38139,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;
@@ -37832,132 +38336,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;
@@ -38092,154 +38596,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;
@@ -38623,121 +39127,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;
@@ -39169,196 +39673,196 @@ 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;
+ 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;
case 0xd61ad6ee:
result = new TL_auth_codeTypeMissedCall();
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;
- }
- }
+ }
+ 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 class TL_auth_codeTypeMissedCall extends auth_CodeType {
public static int constructor = 0xd61ad6ee;
@@ -39369,158 +39873,158 @@ public class TLRPC {
}
}
- 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;
@@ -39531,84 +40035,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;
@@ -39710,138 +40214,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 {
@@ -40345,38 +40849,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;
@@ -40413,36 +40917,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;
@@ -40452,14 +40956,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;
@@ -40475,10 +40979,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;
@@ -40537,63 +41041,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;
@@ -40900,178 +41404,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;
@@ -41110,6 +41614,74 @@ public class TLRPC {
}
}
+ public static abstract class messages_AvailableReactions extends TLObject {
+
+ public static messages_AvailableReactions TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) {
+ messages_AvailableReactions result = null;
+ switch (constructor) {
+ case 0x9f071957:
+ result = new TL_messages_availableReactionsNotModified();
+ break;
+ case 0x768e3aad:
+ result = new TL_messages_availableReactions();
+ break;
+ }
+ if (result == null && exception) {
+ throw new RuntimeException(String.format("can't parse magic %x in messages_AvailableReactions", constructor));
+ }
+ if (result != null) {
+ result.readParams(stream, exception);
+ }
+ return result;
+ }
+ }
+
+ public static class TL_messages_availableReactionsNotModified extends messages_AvailableReactions {
+ public static int constructor = 0x9f071957;
+
+
+ public void serializeToStream(AbstractSerializedData stream) {
+ stream.writeInt32(constructor);
+ }
+ }
+
+ public static class TL_messages_availableReactions extends messages_AvailableReactions {
+ public static int constructor = 0x768e3aad;
+
+ public int hash;
+ public ArrayList reactions = new ArrayList<>();
+
+ public void readParams(AbstractSerializedData stream, boolean exception) {
+ hash = 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_availableReaction object = TL_availableReaction.TLdeserialize(stream, stream.readInt32(exception), exception);
+ if (object == null) {
+ return;
+ }
+ reactions.add(object);
+ }
+ }
+
+ public void serializeToStream(AbstractSerializedData stream) {
+ stream.writeInt32(constructor);
+ stream.writeInt32(hash);
+ stream.writeInt32(0x1cb5c415);
+ int count = reactions.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ reactions.get(a).serializeToStream(stream);
+ }
+ }
+ }
+
public static abstract class UserFull extends TLObject {
public int flags;
@@ -41570,36 +42142,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;
@@ -41621,71 +42193,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;
@@ -41772,15 +42344,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;
@@ -41831,65 +42403,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 {
@@ -42042,184 +42614,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 {
@@ -42306,129 +42878,211 @@ 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_messages_messageReactionsList extends TLObject {
+ public static int constructor = 0xa366923c;
+
+ public int flags;
+ public int count;
+ public ArrayList reactions = new ArrayList<>();
+ public ArrayList users = new ArrayList<>();
+ public String next_offset;
+
+ public static TL_messages_messageReactionsList TLdeserialize(AbstractSerializedData stream, int constructor, boolean exception) {
+ if (TL_messages_messageReactionsList.constructor != constructor) {
+ if (exception) {
+ throw new RuntimeException(String.format("can't parse magic %x in TL_messages_messageReactionsList", constructor));
+ } else {
+ return null;
+ }
+ }
+ TL_messages_messageReactionsList result = new TL_messages_messageReactionsList();
+ result.readParams(stream, exception);
+ return result;
+ }
+
+ public void readParams(AbstractSerializedData stream, boolean exception) {
+ flags = stream.readInt32(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_messageUserReaction object = TL_messageUserReaction.TLdeserialize(stream, stream.readInt32(exception), exception);
+ if (object == null) {
+ return;
+ }
+ reactions.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) {
+ next_offset = stream.readString(exception);
+ }
+ }
+
+ public void serializeToStream(AbstractSerializedData stream) {
+ stream.writeInt32(constructor);
+ stream.writeInt32(flags);
+ stream.writeInt32(count);
+ stream.writeInt32(0x1cb5c415);
+ int count = reactions.size();
+ stream.writeInt32(count);
+ for (int a = 0; a < count; a++) {
+ reactions.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(next_offset);
+ }
+ }
+ }
public static class TL_importedContact extends TLObject {
public static int constructor = 0xc13e3c50;
@@ -42489,27 +43143,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;
@@ -42588,14 +43242,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;
@@ -42666,64 +43320,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;
@@ -43003,54 +43657,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;
@@ -43080,174 +43734,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;
@@ -43277,45 +43931,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;
@@ -43440,186 +44094,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