Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
1
TMessagesProj_AppTests/.gitignore
vendored
Normal file
1
TMessagesProj_AppTests/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/build
|
||||
164
TMessagesProj_AppTests/build.gradle
Normal file
164
TMessagesProj_AppTests/build.gradle
Normal file
|
|
@ -0,0 +1,164 @@
|
|||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
}
|
||||
|
||||
configurations {
|
||||
compile.exclude module: 'support-v4'
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
exclude group: 'com.google.firebase', module: 'firebase-core'
|
||||
exclude group: 'androidx.recyclerview', module: 'recyclerview'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':TMessagesProj')
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
|
||||
|
||||
androidTestImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
||||
androidTestImplementation 'androidx.test:runner:1.5.2'
|
||||
androidTestImplementation "org.jetbrains.kotlin:kotlin-test:1.9.20"
|
||||
androidTestImplementation "org.jetbrains.kotlin:kotlin-test-junit:1.9.20"
|
||||
androidTestImplementation "com.appmattus.fixture:fixture:1.2.0"
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 35
|
||||
buildToolsVersion '35.0.0'
|
||||
|
||||
defaultConfig.applicationId = APP_PACKAGE
|
||||
|
||||
sourceSets.main.jniLibs.srcDirs = ['../TMessagesProj/jni/']
|
||||
testBuildType "debug"
|
||||
|
||||
lintOptions {
|
||||
disable 'MissingTranslation'
|
||||
disable 'ExtraTranslation'
|
||||
disable 'BlockedPrivateApi'
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
|
||||
coreLibraryDesugaringEnabled true
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
debug {
|
||||
storeFile file("../TMessagesProj/config/release.keystore")
|
||||
storePassword RELEASE_STORE_PASSWORD
|
||||
keyAlias RELEASE_KEY_ALIAS
|
||||
keyPassword RELEASE_KEY_PASSWORD
|
||||
}
|
||||
|
||||
release {
|
||||
storeFile file("../TMessagesProj/config/release.keystore")
|
||||
storePassword RELEASE_STORE_PASSWORD
|
||||
keyAlias RELEASE_KEY_ALIAS
|
||||
keyPassword RELEASE_KEY_PASSWORD
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
debuggable true
|
||||
jniDebuggable true
|
||||
signingConfig signingConfigs.debug
|
||||
applicationIdSuffix ".web"
|
||||
minifyEnabled false
|
||||
multiDexEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro', '../TMessagesProj/proguard-rules-beta.pro'
|
||||
ndk.debugSymbolLevel = 'FULL'
|
||||
}
|
||||
standalone {
|
||||
debuggable false
|
||||
jniDebuggable false
|
||||
signingConfig signingConfigs.release
|
||||
applicationIdSuffix ".web"
|
||||
minifyEnabled true
|
||||
multiDexEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
|
||||
ndk.debugSymbolLevel = 'FULL'
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets.debug {
|
||||
manifest.srcFile '../TMessagesProj/config/release/AndroidManifest.xml'
|
||||
}
|
||||
sourceSets.standalone {
|
||||
manifest.srcFile '../TMessagesProj/config/release/AndroidManifest.xml'
|
||||
}
|
||||
|
||||
flavorDimensions "minApi"
|
||||
|
||||
productFlavors {
|
||||
afat {
|
||||
ndk {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
||||
}
|
||||
ext {
|
||||
abiVersionCode = 9
|
||||
}
|
||||
sourceSets.standalone {
|
||||
manifest.srcFile '../TMessagesProj/config/release/AndroidManifest.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE)
|
||||
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.all { output ->
|
||||
outputFileName = "app.apk"
|
||||
output.versionCodeOverride = defaultConfig.versionCode * 10 + variant.productFlavors.get(0).abiVersionCode
|
||||
}
|
||||
}
|
||||
|
||||
variantFilter { variant ->
|
||||
def names = variant.flavors*.name
|
||||
if (variant.buildType.name != "release" && !names.contains("afat")) {
|
||||
setIgnore(true)
|
||||
}
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 35
|
||||
versionName APP_VERSION_NAME
|
||||
ndkVersion "21.4.7075529"
|
||||
|
||||
multiDexEnabled true
|
||||
|
||||
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
version '3.10.2'
|
||||
arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-21' //, '-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON'
|
||||
}
|
||||
}
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
|
||||
buildFeatures {
|
||||
buildConfig = true
|
||||
}
|
||||
namespace 'org.telegram.messenger.test'
|
||||
|
||||
lintOptions {
|
||||
checkReleaseBuilds false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package org.telegram.tgnet.model
|
||||
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
|
||||
public interface TlGen_Object {
|
||||
fun serializeToStream(stream: OutputSerializedData)
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
package org.telegram.tgnet.model
|
||||
|
||||
import org.telegram.messenger.Utilities
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
|
||||
|
||||
public object TlGen_Vector {
|
||||
public const val MAGIC: UInt = 0x1CB5C415U
|
||||
|
||||
fun <T> serialize(stream: OutputSerializedData, write: Utilities.Callback<T>, objects: List<T>) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(objects.size)
|
||||
for (obj in objects) {
|
||||
write.run(obj)
|
||||
}
|
||||
}
|
||||
|
||||
fun serializeInt(stream: OutputSerializedData, objects: List<Int>) {
|
||||
serialize(stream, stream::writeInt32, objects)
|
||||
}
|
||||
|
||||
fun serializeLong(stream: OutputSerializedData, objects: List<Long>) {
|
||||
serialize(stream, stream::writeInt64, objects)
|
||||
}
|
||||
|
||||
fun serializeString(stream: OutputSerializedData, objects: List<String>) {
|
||||
serialize(stream, stream::writeString, objects)
|
||||
}
|
||||
|
||||
fun serializeDouble(stream: OutputSerializedData, objects: List<Double>) {
|
||||
serialize(stream, stream::writeDouble, objects)
|
||||
}
|
||||
|
||||
fun serializeBytes(stream: OutputSerializedData, objects: List<List<Byte>>) {
|
||||
serialize(stream, stream::writeByteArray, objects.map { it.toByteArray() })
|
||||
}
|
||||
|
||||
fun <T : TlGen_Object> serialize(stream: OutputSerializedData, objects: List<T>) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(objects.size)
|
||||
for (obj in objects) {
|
||||
obj.serializeToStream(stream)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AccountDaysTTL : TlGen_Object {
|
||||
public data class TL_accountDaysTTL(
|
||||
public val days: Int,
|
||||
) : TlGen_AccountDaysTTL() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(days)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xB8D0AFDFU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AttachMenuBot : TlGen_Object {
|
||||
public data class TL_attachMenuBot(
|
||||
public val inactive: Boolean,
|
||||
public val has_settings: Boolean,
|
||||
public val request_write_access: Boolean,
|
||||
public val show_in_side_menu: Boolean,
|
||||
public val side_menu_disclaimer_needed: Boolean,
|
||||
public val bot_id: Long,
|
||||
public val short_name: String,
|
||||
public val peer_types: List<TlGen_AttachMenuPeerType>?,
|
||||
public val icons: List<TlGen_AttachMenuBotIcon>,
|
||||
) : TlGen_AttachMenuBot() {
|
||||
public val show_in_attach_menu: Boolean = peer_types != null
|
||||
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (inactive) result = result or 1U
|
||||
if (has_settings) result = result or 2U
|
||||
if (request_write_access) result = result or 4U
|
||||
if (show_in_attach_menu) result = result or 8U
|
||||
if (show_in_side_menu) result = result or 16U
|
||||
if (side_menu_disclaimer_needed) result = result or 32U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(bot_id)
|
||||
stream.writeString(short_name)
|
||||
peer_types?.let { TlGen_Vector.serialize(stream, it) }
|
||||
TlGen_Vector.serialize(stream, icons)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xD90D8DFEU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AttachMenuBotIcon : TlGen_Object {
|
||||
public data class TL_attachMenuBotIcon(
|
||||
public val name: String,
|
||||
public val icon: TlGen_Document,
|
||||
public val colors: List<TlGen_AttachMenuBotIconColor>?,
|
||||
) : TlGen_AttachMenuBotIcon() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (colors != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(name)
|
||||
icon.serializeToStream(stream)
|
||||
colors?.let { TlGen_Vector.serialize(stream, it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xB2A7386BU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AttachMenuBotIconColor : TlGen_Object {
|
||||
public data class TL_attachMenuBotIconColor(
|
||||
public val name: String,
|
||||
public val color: Int,
|
||||
) : TlGen_AttachMenuBotIconColor() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(name)
|
||||
stream.writeInt32(color)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x4576F3F0U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AttachMenuBots : TlGen_Object {
|
||||
public data object TL_attachMenuBotsNotModified : TlGen_AttachMenuBots() {
|
||||
public const val MAGIC: UInt = 0xF1D88A5CU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_attachMenuBots(
|
||||
public val hash: Long,
|
||||
public val bots: List<TlGen_AttachMenuBot>,
|
||||
public val users: List<TlGen_User>,
|
||||
) : TlGen_AttachMenuBots() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(hash)
|
||||
TlGen_Vector.serialize(stream, bots)
|
||||
TlGen_Vector.serialize(stream, users)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x3C4301C0U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AttachMenuBotsBot : TlGen_Object {
|
||||
public data class TL_attachMenuBotsBot(
|
||||
public val bot: TlGen_AttachMenuBot,
|
||||
public val users: List<TlGen_User>,
|
||||
) : TlGen_AttachMenuBotsBot() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
bot.serializeToStream(stream)
|
||||
TlGen_Vector.serialize(stream, users)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x93BF667FU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AttachMenuPeerType : TlGen_Object {
|
||||
public data object TL_attachMenuPeerTypeSameBotPM : TlGen_AttachMenuPeerType() {
|
||||
public const val MAGIC: UInt = 0x7D6BE90EU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_attachMenuPeerTypeBotPM : TlGen_AttachMenuPeerType() {
|
||||
public const val MAGIC: UInt = 0xC32BFA1AU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_attachMenuPeerTypePM : TlGen_AttachMenuPeerType() {
|
||||
public const val MAGIC: UInt = 0xF146D31FU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_attachMenuPeerTypeChat : TlGen_AttachMenuPeerType() {
|
||||
public const val MAGIC: UInt = 0x0509113FU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_attachMenuPeerTypeBroadcast : TlGen_AttachMenuPeerType() {
|
||||
public const val MAGIC: UInt = 0x7BFBDEFCU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AuctionBidLevel : TlGen_Object {
|
||||
public data class TL_auctionBidLevel(
|
||||
public val pos: Int,
|
||||
public val amount: Long,
|
||||
public val date: Int,
|
||||
) : TlGen_AuctionBidLevel() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(pos)
|
||||
stream.writeInt64(amount)
|
||||
stream.writeInt32(date)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x310240CCU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_Audio : TlGen_Object {
|
||||
public data class TL_audioEmpty_layer45(
|
||||
public val id: Long,
|
||||
) : TlGen_Audio() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x586988D8U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_audio_layer12(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val user_id: Int,
|
||||
public val date: Int,
|
||||
public val duration: Int,
|
||||
public val size: Int,
|
||||
public val dc_id: Int,
|
||||
) : TlGen_Audio() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt64(access_hash)
|
||||
stream.writeInt32(user_id)
|
||||
stream.writeInt32(date)
|
||||
stream.writeInt32(duration)
|
||||
stream.writeInt32(size)
|
||||
stream.writeInt32(dc_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x427425E7U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_audio_layer32(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val user_id: Int,
|
||||
public val date: Int,
|
||||
public val duration: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val dc_id: Int,
|
||||
) : TlGen_Audio() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt64(access_hash)
|
||||
stream.writeInt32(user_id)
|
||||
stream.writeInt32(date)
|
||||
stream.writeInt32(duration)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt32(size)
|
||||
stream.writeInt32(dc_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xC7AC6496U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_audio_layer45(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val date: Int,
|
||||
public val duration: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val dc_id: Int,
|
||||
) : TlGen_Audio() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
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 companion object {
|
||||
public const val MAGIC: UInt = 0xF9E35055U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_Authorization : TlGen_Object {
|
||||
public data class TL_authorization(
|
||||
public val current: Boolean,
|
||||
public val official_app: Boolean,
|
||||
public val password_pending: Boolean,
|
||||
public val encrypted_requests_disabled: Boolean,
|
||||
public val call_requests_disabled: Boolean,
|
||||
public val unconfirmed: Boolean,
|
||||
public val hash: Long,
|
||||
public val device_model: String,
|
||||
public val platform: String,
|
||||
public val system_version: String,
|
||||
public val api_id: Int,
|
||||
public val app_name: String,
|
||||
public val app_version: String,
|
||||
public val date_created: Int,
|
||||
public val date_active: Int,
|
||||
public val ip: String,
|
||||
public val country: String,
|
||||
public val region: String,
|
||||
) : TlGen_Authorization() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (current) result = result or 1U
|
||||
if (official_app) result = result or 2U
|
||||
if (password_pending) result = result or 4U
|
||||
if (encrypted_requests_disabled) result = result or 8U
|
||||
if (call_requests_disabled) result = result or 16U
|
||||
if (unconfirmed) result = result or 32U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(hash)
|
||||
stream.writeString(device_model)
|
||||
stream.writeString(platform)
|
||||
stream.writeString(system_version)
|
||||
stream.writeInt32(api_id)
|
||||
stream.writeString(app_name)
|
||||
stream.writeString(app_version)
|
||||
stream.writeInt32(date_created)
|
||||
stream.writeInt32(date_active)
|
||||
stream.writeString(ip)
|
||||
stream.writeString(country)
|
||||
stream.writeString(region)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xAD01D61DU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AutoDownloadSettings : TlGen_Object {
|
||||
public data class TL_autoDownloadSettings(
|
||||
public val disabled: Boolean,
|
||||
public val video_preload_large: Boolean,
|
||||
public val audio_preload_next: Boolean,
|
||||
public val phonecalls_less_data: Boolean,
|
||||
public val stories_preload: Boolean,
|
||||
public val photo_size_max: Int,
|
||||
public val video_size_max: Long,
|
||||
public val file_size_max: Long,
|
||||
public val video_upload_maxbitrate: Int,
|
||||
public val small_queue_active_operations_max: Int,
|
||||
public val large_queue_active_operations_max: Int,
|
||||
) : TlGen_AutoDownloadSettings() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (disabled) result = result or 1U
|
||||
if (video_preload_large) result = result or 2U
|
||||
if (audio_preload_next) result = result or 4U
|
||||
if (phonecalls_less_data) result = result or 8U
|
||||
if (stories_preload) result = result or 16U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(photo_size_max)
|
||||
stream.writeInt64(video_size_max)
|
||||
stream.writeInt64(file_size_max)
|
||||
stream.writeInt32(video_upload_maxbitrate)
|
||||
stream.writeInt32(small_queue_active_operations_max)
|
||||
stream.writeInt32(large_queue_active_operations_max)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xBAA57628U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AutoSaveException : TlGen_Object
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AutoSaveSettings : TlGen_Object
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AvailableEffect : TlGen_Object {
|
||||
public data class TL_availableEffect(
|
||||
public val premium_required: Boolean,
|
||||
public val id: Long,
|
||||
public val emoticon: String,
|
||||
public val static_icon_id: Long?,
|
||||
public val effect_sticker_id: Long,
|
||||
public val effect_animation_id: Long?,
|
||||
) : TlGen_AvailableEffect() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (static_icon_id != null) result = result or 1U
|
||||
if (effect_animation_id != null) result = result or 2U
|
||||
if (premium_required) result = result or 4U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeString(emoticon)
|
||||
static_icon_id?.let { stream.writeInt64(it) }
|
||||
stream.writeInt64(effect_sticker_id)
|
||||
effect_animation_id?.let { stream.writeInt64(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x93C3E27EU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_AvailableReaction : TlGen_Object {
|
||||
public data class TL_availableReaction(
|
||||
public val inactive: Boolean,
|
||||
public val premium: Boolean,
|
||||
public val reaction: String,
|
||||
public val title: String,
|
||||
public val static_icon: TlGen_Document,
|
||||
public val appear_animation: TlGen_Document,
|
||||
public val select_animation: TlGen_Document,
|
||||
public val activate_animation: TlGen_Document,
|
||||
public val effect_animation: TlGen_Document,
|
||||
public val multiflags_1: Multiflags_1?,
|
||||
) : TlGen_AvailableReaction() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (inactive) result = result or 1U
|
||||
if (multiflags_1 != null) result = result or 2U
|
||||
if (premium) result = result or 4U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
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)
|
||||
multiflags_1?.let { it.around_animation.serializeToStream(stream) }
|
||||
multiflags_1?.let { it.center_icon.serializeToStream(stream) }
|
||||
}
|
||||
|
||||
public data class Multiflags_1(
|
||||
public val around_animation: TlGen_Document,
|
||||
public val center_icon: TlGen_Document,
|
||||
)
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xC077EC01U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BankCardOpenUrl : TlGen_Object {
|
||||
public data class TL_bankCardOpenUrl(
|
||||
public val url: String,
|
||||
public val name: String,
|
||||
) : TlGen_BankCardOpenUrl() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(url)
|
||||
stream.writeString(name)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF568028AU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BaseTheme : TlGen_Object {
|
||||
public data object TL_baseThemeClassic : TlGen_BaseTheme() {
|
||||
public const val MAGIC: UInt = 0xC3A12462U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_baseThemeDay : TlGen_BaseTheme() {
|
||||
public const val MAGIC: UInt = 0xFBD81688U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_baseThemeNight : TlGen_BaseTheme() {
|
||||
public const val MAGIC: UInt = 0xB7B31EA8U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_baseThemeTinted : TlGen_BaseTheme() {
|
||||
public const val MAGIC: UInt = 0x6D5F77EEU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_baseThemeArctic : TlGen_BaseTheme() {
|
||||
public const val MAGIC: UInt = 0x5B11125AU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_Birthday : TlGen_Object {
|
||||
public data class TL_birthday(
|
||||
public val day: Int,
|
||||
public val month: Int,
|
||||
public val year: Int?,
|
||||
) : TlGen_Birthday() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (year != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(day)
|
||||
stream.writeInt32(month)
|
||||
year?.let { stream.writeInt32(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x6C8E1E06U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_Bool : TlGen_Object {
|
||||
public data object TL_boolFalse : TlGen_Bool() {
|
||||
public const val MAGIC: UInt = 0xBC799737U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_boolTrue : TlGen_Bool() {
|
||||
public const val MAGIC: UInt = 0x997275B5U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_Boost : TlGen_Object {
|
||||
public data class TL_boost(
|
||||
public val gift: Boolean,
|
||||
public val unclaimed: Boolean,
|
||||
public val id: String,
|
||||
public val user_id: Long?,
|
||||
public val giveaway_msg_id: Int?,
|
||||
public val date: Int,
|
||||
public val expires: Int,
|
||||
public val used_gift_slug: String?,
|
||||
public val multiplier: Int?,
|
||||
public val stars: Long?,
|
||||
) : TlGen_Boost() {
|
||||
public val giveaway: Boolean = giveaway_msg_id != null
|
||||
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (user_id != null) result = result or 1U
|
||||
if (gift) result = result or 2U
|
||||
if (giveaway) result = result or 4U
|
||||
if (unclaimed) result = result or 8U
|
||||
if (used_gift_slug != null) result = result or 16U
|
||||
if (multiplier != null) result = result or 32U
|
||||
if (stars != null) result = result or 64U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(id)
|
||||
user_id?.let { stream.writeInt64(it) }
|
||||
giveaway_msg_id?.let { stream.writeInt32(it) }
|
||||
stream.writeInt32(date)
|
||||
stream.writeInt32(expires)
|
||||
used_gift_slug?.let { stream.writeString(it) }
|
||||
multiplier?.let { stream.writeInt32(it) }
|
||||
stars?.let { stream.writeInt64(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x4B3E14D6U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotApp : TlGen_Object {
|
||||
public data object TL_botAppNotModified : TlGen_BotApp() {
|
||||
public const val MAGIC: UInt = 0x5DA674B7U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botApp(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val short_name: String,
|
||||
public val title: String,
|
||||
public val description: String,
|
||||
public val photo: TlGen_Photo,
|
||||
public val document: TlGen_Document?,
|
||||
public val hash: Long,
|
||||
) : TlGen_BotApp() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (document != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt64(access_hash)
|
||||
stream.writeString(short_name)
|
||||
stream.writeString(title)
|
||||
stream.writeString(description)
|
||||
photo.serializeToStream(stream)
|
||||
document?.serializeToStream(stream)
|
||||
stream.writeInt64(hash)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x95FCD1D6U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Byte
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotAppSettings : TlGen_Object {
|
||||
public data class TL_botAppSettings(
|
||||
public val placeholder_path: List<Byte>?,
|
||||
public val background_color: Int?,
|
||||
public val background_dark_color: Int?,
|
||||
public val header_color: Int?,
|
||||
public val header_dark_color: Int?,
|
||||
) : TlGen_BotAppSettings() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (placeholder_path != null) result = result or 1U
|
||||
if (background_color != null) result = result or 2U
|
||||
if (background_dark_color != null) result = result or 4U
|
||||
if (header_color != null) result = result or 8U
|
||||
if (header_dark_color != null) result = result or 16U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
placeholder_path?.let { stream.writeByteArray(it.toByteArray()) }
|
||||
background_color?.let { stream.writeInt32(it) }
|
||||
background_dark_color?.let { stream.writeInt32(it) }
|
||||
header_color?.let { stream.writeInt32(it) }
|
||||
header_dark_color?.let { stream.writeInt32(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xC99B1950U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotBusinessConnection : TlGen_Object
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotCommand : TlGen_Object {
|
||||
public data class TL_botCommand(
|
||||
public val command: String,
|
||||
public val description: String,
|
||||
) : TlGen_BotCommand() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(command)
|
||||
stream.writeString(description)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xC27AC8C7U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotCommandScope : TlGen_Object
|
||||
|
|
@ -0,0 +1,265 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotInfo : TlGen_Object {
|
||||
public data class TL_botInfo(
|
||||
public val has_preview_medias: Boolean,
|
||||
public val user_id: Long?,
|
||||
public val description: String?,
|
||||
public val description_photo: TlGen_Photo?,
|
||||
public val description_document: TlGen_Document?,
|
||||
public val commands: List<TlGen_BotCommand>?,
|
||||
public val menu_button: TlGen_BotMenuButton?,
|
||||
public val privacy_policy_url: String?,
|
||||
public val app_settings: TlGen_BotAppSettings?,
|
||||
public val verifier_settings: TlGen_BotVerifierSettings?,
|
||||
) : TlGen_BotInfo() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (user_id != null) result = result or 1U
|
||||
if (description != null) result = result or 2U
|
||||
if (commands != null) result = result or 4U
|
||||
if (menu_button != null) result = result or 8U
|
||||
if (description_photo != null) result = result or 16U
|
||||
if (description_document != null) result = result or 32U
|
||||
if (has_preview_medias) result = result or 64U
|
||||
if (privacy_policy_url != null) result = result or 128U
|
||||
if (app_settings != null) result = result or 256U
|
||||
if (verifier_settings != null) result = result or 512U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
user_id?.let { stream.writeInt64(it) }
|
||||
description?.let { stream.writeString(it) }
|
||||
description_photo?.serializeToStream(stream)
|
||||
description_document?.serializeToStream(stream)
|
||||
commands?.let { TlGen_Vector.serialize(stream, it) }
|
||||
menu_button?.serializeToStream(stream)
|
||||
privacy_policy_url?.let { stream.writeString(it) }
|
||||
app_settings?.serializeToStream(stream)
|
||||
verifier_settings?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x4D8A0299U
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_botInfoEmpty_layer48 : TlGen_Object {
|
||||
public const val MAGIC: UInt = 0xBB2E37CEU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInfo_layer48(
|
||||
public val user_id: Int,
|
||||
public val version: Int,
|
||||
public val share_text: String,
|
||||
public val description: String,
|
||||
public val commands: List<TlGen_BotCommand>,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(user_id)
|
||||
stream.writeInt32(version)
|
||||
stream.writeString(share_text)
|
||||
stream.writeString(description)
|
||||
TlGen_Vector.serialize(stream, commands)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x09CF585DU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInfo_layer132(
|
||||
public val user_id: Int,
|
||||
public val description: String,
|
||||
public val commands: List<TlGen_BotCommand>,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(user_id)
|
||||
stream.writeString(description)
|
||||
TlGen_Vector.serialize(stream, commands)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x98E81D3AU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInfo_layer139(
|
||||
public val user_id: Long,
|
||||
public val description: String,
|
||||
public val commands: List<TlGen_BotCommand>,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
stream.writeString(description)
|
||||
TlGen_Vector.serialize(stream, commands)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1B74B335U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInfo_layer142(
|
||||
public val user_id: Long,
|
||||
public val description: String,
|
||||
public val commands: List<TlGen_BotCommand>,
|
||||
public val menu_button: TlGen_BotMenuButton,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
stream.writeString(description)
|
||||
TlGen_Vector.serialize(stream, commands)
|
||||
menu_button.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE4169B5DU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInfo_layer185(
|
||||
public val has_preview_medias: Boolean,
|
||||
public val user_id: Long?,
|
||||
public val description: String?,
|
||||
public val description_photo: TlGen_Photo?,
|
||||
public val description_document: TlGen_Document?,
|
||||
public val commands: List<TlGen_BotCommand>?,
|
||||
public val menu_button: TlGen_BotMenuButton?,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (user_id != null) result = result or 1U
|
||||
if (description != null) result = result or 2U
|
||||
if (commands != null) result = result or 4U
|
||||
if (menu_button != null) result = result or 8U
|
||||
if (description_photo != null) result = result or 16U
|
||||
if (description_document != null) result = result or 32U
|
||||
if (has_preview_medias) result = result or 64U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
user_id?.let { stream.writeInt64(it) }
|
||||
description?.let { stream.writeString(it) }
|
||||
description_photo?.serializeToStream(stream)
|
||||
description_document?.serializeToStream(stream)
|
||||
commands?.let { TlGen_Vector.serialize(stream, it) }
|
||||
menu_button?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x8F300B57U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInfo_layer192(
|
||||
public val has_preview_medias: Boolean,
|
||||
public val user_id: Long?,
|
||||
public val description: String?,
|
||||
public val description_photo: TlGen_Photo?,
|
||||
public val description_document: TlGen_Document?,
|
||||
public val commands: List<TlGen_BotCommand>?,
|
||||
public val menu_button: TlGen_BotMenuButton?,
|
||||
public val privacy_policy_url: String?,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (user_id != null) result = result or 1U
|
||||
if (description != null) result = result or 2U
|
||||
if (commands != null) result = result or 4U
|
||||
if (menu_button != null) result = result or 8U
|
||||
if (description_photo != null) result = result or 16U
|
||||
if (description_document != null) result = result or 32U
|
||||
if (has_preview_medias) result = result or 64U
|
||||
if (privacy_policy_url != null) result = result or 128U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
user_id?.let { stream.writeInt64(it) }
|
||||
description?.let { stream.writeString(it) }
|
||||
description_photo?.serializeToStream(stream)
|
||||
description_document?.serializeToStream(stream)
|
||||
commands?.let { TlGen_Vector.serialize(stream, it) }
|
||||
menu_button?.serializeToStream(stream)
|
||||
privacy_policy_url?.let { stream.writeString(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x82437E74U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInfo_layer195(
|
||||
public val has_preview_medias: Boolean,
|
||||
public val user_id: Long?,
|
||||
public val description: String?,
|
||||
public val description_photo: TlGen_Photo?,
|
||||
public val description_document: TlGen_Document?,
|
||||
public val commands: List<TlGen_BotCommand>?,
|
||||
public val menu_button: TlGen_BotMenuButton?,
|
||||
public val privacy_policy_url: String?,
|
||||
public val app_settings: TlGen_BotAppSettings?,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (user_id != null) result = result or 1U
|
||||
if (description != null) result = result or 2U
|
||||
if (commands != null) result = result or 4U
|
||||
if (menu_button != null) result = result or 8U
|
||||
if (description_photo != null) result = result or 16U
|
||||
if (description_document != null) result = result or 32U
|
||||
if (has_preview_medias) result = result or 64U
|
||||
if (privacy_policy_url != null) result = result or 128U
|
||||
if (app_settings != null) result = result or 256U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
user_id?.let { stream.writeInt64(it) }
|
||||
description?.let { stream.writeString(it) }
|
||||
description_photo?.serializeToStream(stream)
|
||||
description_document?.serializeToStream(stream)
|
||||
commands?.let { TlGen_Vector.serialize(stream, it) }
|
||||
menu_button?.serializeToStream(stream)
|
||||
privacy_policy_url?.let { stream.writeString(it) }
|
||||
app_settings?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x36607333U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,239 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotInlineMessage : TlGen_Object {
|
||||
public data class TL_botInlineMessageText(
|
||||
public val no_webpage: Boolean,
|
||||
public val invert_media: Boolean,
|
||||
public val message: String,
|
||||
public val entities: List<TlGen_MessageEntity>?,
|
||||
public val reply_markup: TlGen_ReplyMarkup?,
|
||||
) : TlGen_BotInlineMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (no_webpage) result = result or 1U
|
||||
if (entities != null) result = result or 2U
|
||||
if (reply_markup != null) result = result or 4U
|
||||
if (invert_media) result = result or 8U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(message)
|
||||
entities?.let { TlGen_Vector.serialize(stream, it) }
|
||||
reply_markup?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x8C7F65E2U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInlineMessageMediaAuto(
|
||||
public val invert_media: Boolean,
|
||||
public val message: String,
|
||||
public val entities: List<TlGen_MessageEntity>?,
|
||||
public val reply_markup: TlGen_ReplyMarkup?,
|
||||
) : TlGen_BotInlineMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (entities != null) result = result or 2U
|
||||
if (reply_markup != null) result = result or 4U
|
||||
if (invert_media) result = result or 8U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(message)
|
||||
entities?.let { TlGen_Vector.serialize(stream, it) }
|
||||
reply_markup?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x764CF810U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInlineMessageMediaVenue(
|
||||
public val geo: TlGen_GeoPoint,
|
||||
public val title: String,
|
||||
public val address: String,
|
||||
public val provider: String,
|
||||
public val venue_id: String,
|
||||
public val venue_type: String,
|
||||
public val reply_markup: TlGen_ReplyMarkup?,
|
||||
) : TlGen_BotInlineMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (reply_markup != null) result = result or 4U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
geo.serializeToStream(stream)
|
||||
stream.writeString(title)
|
||||
stream.writeString(address)
|
||||
stream.writeString(provider)
|
||||
stream.writeString(venue_id)
|
||||
stream.writeString(venue_type)
|
||||
reply_markup?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x8A86659CU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInlineMessageMediaContact(
|
||||
public val phone_number: String,
|
||||
public val first_name: String,
|
||||
public val last_name: String,
|
||||
public val vcard: String,
|
||||
public val reply_markup: TlGen_ReplyMarkup?,
|
||||
) : TlGen_BotInlineMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (reply_markup != null) result = result or 4U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(phone_number)
|
||||
stream.writeString(first_name)
|
||||
stream.writeString(last_name)
|
||||
stream.writeString(vcard)
|
||||
reply_markup?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x18D1CDC2U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInlineMessageMediaGeo(
|
||||
public val geo: TlGen_GeoPoint,
|
||||
public val heading: Int?,
|
||||
public val period: Int?,
|
||||
public val proximity_notification_radius: Int?,
|
||||
public val reply_markup: TlGen_ReplyMarkup?,
|
||||
) : TlGen_BotInlineMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (heading != null) result = result or 1U
|
||||
if (period != null) result = result or 2U
|
||||
if (reply_markup != null) result = result or 4U
|
||||
if (proximity_notification_radius != null) result = result or 8U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
geo.serializeToStream(stream)
|
||||
heading?.let { stream.writeInt32(it) }
|
||||
period?.let { stream.writeInt32(it) }
|
||||
proximity_notification_radius?.let { stream.writeInt32(it) }
|
||||
reply_markup?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x051846FDU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInlineMessageMediaInvoice(
|
||||
public val shipping_address_requested: Boolean,
|
||||
public val test: Boolean,
|
||||
public val title: String,
|
||||
public val description: String,
|
||||
public val photo: TlGen_WebDocument?,
|
||||
public val currency: String,
|
||||
public val total_amount: Long,
|
||||
public val reply_markup: TlGen_ReplyMarkup?,
|
||||
) : TlGen_BotInlineMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (photo != null) result = result or 1U
|
||||
if (shipping_address_requested) result = result or 2U
|
||||
if (reply_markup != null) result = result or 4U
|
||||
if (test) result = result or 8U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(title)
|
||||
stream.writeString(description)
|
||||
photo?.serializeToStream(stream)
|
||||
stream.writeString(currency)
|
||||
stream.writeInt64(total_amount)
|
||||
reply_markup?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x354A9B09U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInlineMessageMediaWebPage(
|
||||
public val invert_media: Boolean,
|
||||
public val force_large_media: Boolean,
|
||||
public val force_small_media: Boolean,
|
||||
public val manual: Boolean,
|
||||
public val safe: Boolean,
|
||||
public val message: String,
|
||||
public val entities: List<TlGen_MessageEntity>?,
|
||||
public val url: String,
|
||||
public val reply_markup: TlGen_ReplyMarkup?,
|
||||
) : TlGen_BotInlineMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (entities != null) result = result or 2U
|
||||
if (reply_markup != null) result = result or 4U
|
||||
if (invert_media) result = result or 8U
|
||||
if (force_large_media) result = result or 16U
|
||||
if (force_small_media) result = result or 32U
|
||||
if (manual) result = result or 128U
|
||||
if (safe) result = result or 256U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(message)
|
||||
entities?.let { TlGen_Vector.serialize(stream, it) }
|
||||
stream.writeString(url)
|
||||
reply_markup?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x809AD9A6U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotInlineResult : TlGen_Object {
|
||||
public data class TL_botInlineMediaResult(
|
||||
public val id: String,
|
||||
public val type: String,
|
||||
public val photo: TlGen_Photo?,
|
||||
public val document: TlGen_Document?,
|
||||
public val title: String?,
|
||||
public val description: String?,
|
||||
public val send_message: TlGen_BotInlineMessage,
|
||||
) : TlGen_BotInlineResult() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (photo != null) result = result or 1U
|
||||
if (document != null) result = result or 2U
|
||||
if (title != null) result = result or 4U
|
||||
if (description != null) result = result or 8U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(id)
|
||||
stream.writeString(type)
|
||||
photo?.serializeToStream(stream)
|
||||
document?.serializeToStream(stream)
|
||||
title?.let { stream.writeString(it) }
|
||||
description?.let { stream.writeString(it) }
|
||||
send_message.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x17DB940BU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botInlineResult(
|
||||
public val id: String,
|
||||
public val type: String,
|
||||
public val title: String?,
|
||||
public val description: String?,
|
||||
public val url: String?,
|
||||
public val thumb: TlGen_WebDocument?,
|
||||
public val content: TlGen_WebDocument?,
|
||||
public val send_message: TlGen_BotInlineMessage,
|
||||
) : TlGen_BotInlineResult() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (title != null) result = result or 2U
|
||||
if (description != null) result = result or 4U
|
||||
if (url != null) result = result or 8U
|
||||
if (thumb != null) result = result or 16U
|
||||
if (content != null) result = result or 32U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(id)
|
||||
stream.writeString(type)
|
||||
title?.let { stream.writeString(it) }
|
||||
description?.let { stream.writeString(it) }
|
||||
url?.let { stream.writeString(it) }
|
||||
thumb?.serializeToStream(stream)
|
||||
content?.serializeToStream(stream)
|
||||
send_message.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x11965F3AU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotMenuButton : TlGen_Object {
|
||||
public data object TL_botMenuButtonDefault : TlGen_BotMenuButton() {
|
||||
public const val MAGIC: UInt = 0x7533A588U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_botMenuButtonCommands : TlGen_BotMenuButton() {
|
||||
public const val MAGIC: UInt = 0x4258C205U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_botMenuButton(
|
||||
public val text: String,
|
||||
public val url: String,
|
||||
) : TlGen_BotMenuButton() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(text)
|
||||
stream.writeString(url)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xC7B57CE6U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotPreviewMedia : TlGen_Object {
|
||||
public data class TL_botPreviewMedia(
|
||||
public val date: Int,
|
||||
public val media: TlGen_MessageMedia,
|
||||
) : TlGen_BotPreviewMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(date)
|
||||
media.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x23E91BA3U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotVerification : TlGen_Object {
|
||||
public data class TL_botVerification(
|
||||
public val bot_id: Long,
|
||||
public val icon: Long,
|
||||
public val description: String,
|
||||
) : TlGen_BotVerification() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(bot_id)
|
||||
stream.writeInt64(icon)
|
||||
stream.writeString(description)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF93CD45CU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BotVerifierSettings : TlGen_Object {
|
||||
public data class TL_botVerifierSettings(
|
||||
public val can_modify_custom_description: Boolean,
|
||||
public val icon: Long,
|
||||
public val company: String,
|
||||
public val custom_description: String?,
|
||||
) : TlGen_BotVerifierSettings() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (custom_description != null) result = result or 1U
|
||||
if (can_modify_custom_description) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(icon)
|
||||
stream.writeString(company)
|
||||
custom_description?.let { stream.writeString(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xB0CD6617U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessAwayMessage : TlGen_Object {
|
||||
public data class TL_businessAwayMessage(
|
||||
public val offline_only: Boolean,
|
||||
public val shortcut_id: Int,
|
||||
public val schedule: TlGen_BusinessAwayMessageSchedule,
|
||||
public val recipients: TlGen_BusinessRecipients,
|
||||
) : TlGen_BusinessAwayMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (offline_only) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(shortcut_id)
|
||||
schedule.serializeToStream(stream)
|
||||
recipients.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xEF156A5CU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessAwayMessageSchedule : TlGen_Object {
|
||||
public data object TL_businessAwayMessageScheduleAlways : TlGen_BusinessAwayMessageSchedule() {
|
||||
public const val MAGIC: UInt = 0xC9B9E2B9U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_businessAwayMessageScheduleOutsideWorkHours :
|
||||
TlGen_BusinessAwayMessageSchedule() {
|
||||
public const val MAGIC: UInt = 0xC3F2F501U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_businessAwayMessageScheduleCustom(
|
||||
public val start_date: Int,
|
||||
public val end_date: Int,
|
||||
) : TlGen_BusinessAwayMessageSchedule() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(start_date)
|
||||
stream.writeInt32(end_date)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xCC4D9ECCU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessBotRecipients : TlGen_Object {
|
||||
public data class TL_businessBotRecipients(
|
||||
public val existing_chats: Boolean,
|
||||
public val new_chats: Boolean,
|
||||
public val contacts: Boolean,
|
||||
public val non_contacts: Boolean,
|
||||
public val exclude_selected: Boolean,
|
||||
public val users: List<Long>?,
|
||||
public val exclude_users: List<Long>?,
|
||||
) : TlGen_BusinessBotRecipients() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (existing_chats) result = result or 1U
|
||||
if (new_chats) result = result or 2U
|
||||
if (contacts) result = result or 4U
|
||||
if (non_contacts) result = result or 8U
|
||||
if (users != null) result = result or 16U
|
||||
if (exclude_selected) result = result or 32U
|
||||
if (exclude_users != null) result = result or 64U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
users?.let { TlGen_Vector.serializeLong(stream, it) }
|
||||
exclude_users?.let { TlGen_Vector.serializeLong(stream, it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xB88CF373U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessBotRights : TlGen_Object {
|
||||
public data class TL_businessBotRights(
|
||||
public val reply: Boolean,
|
||||
public val read_messages: Boolean,
|
||||
public val delete_sent_messages: Boolean,
|
||||
public val delete_received_messages: Boolean,
|
||||
public val edit_name: Boolean,
|
||||
public val edit_bio: Boolean,
|
||||
public val edit_profile_photo: Boolean,
|
||||
public val edit_username: Boolean,
|
||||
public val view_gifts: Boolean,
|
||||
public val sell_gifts: Boolean,
|
||||
public val change_gift_settings: Boolean,
|
||||
public val transfer_and_upgrade_gifts: Boolean,
|
||||
public val transfer_stars: Boolean,
|
||||
public val manage_stories: Boolean,
|
||||
) : TlGen_BusinessBotRights() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (reply) result = result or 1U
|
||||
if (read_messages) result = result or 2U
|
||||
if (delete_sent_messages) result = result or 4U
|
||||
if (delete_received_messages) result = result or 8U
|
||||
if (edit_name) result = result or 16U
|
||||
if (edit_bio) result = result or 32U
|
||||
if (edit_profile_photo) result = result or 64U
|
||||
if (edit_username) result = result or 128U
|
||||
if (view_gifts) result = result or 256U
|
||||
if (sell_gifts) result = result or 512U
|
||||
if (change_gift_settings) result = result or 1024U
|
||||
if (transfer_and_upgrade_gifts) result = result or 2048U
|
||||
if (transfer_stars) result = result or 4096U
|
||||
if (manage_stories) result = result or 8192U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xA0624CF7U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessChatLink : TlGen_Object {
|
||||
public data class TL_businessChatLink(
|
||||
public val link: String,
|
||||
public val message: String,
|
||||
public val entities: List<TlGen_MessageEntity>?,
|
||||
public val title: String?,
|
||||
public val views: Int,
|
||||
) : TlGen_BusinessChatLink() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (entities != null) result = result or 1U
|
||||
if (title != null) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(link)
|
||||
stream.writeString(message)
|
||||
entities?.let { TlGen_Vector.serialize(stream, it) }
|
||||
title?.let { stream.writeString(it) }
|
||||
stream.writeInt32(views)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xB4AE666FU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessGreetingMessage : TlGen_Object {
|
||||
public data class TL_businessGreetingMessage(
|
||||
public val shortcut_id: Int,
|
||||
public val recipients: TlGen_BusinessRecipients,
|
||||
public val no_activity_days: Int,
|
||||
) : TlGen_BusinessGreetingMessage() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(shortcut_id)
|
||||
recipients.serializeToStream(stream)
|
||||
stream.writeInt32(no_activity_days)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE519ABABU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessIntro : TlGen_Object {
|
||||
public data class TL_businessIntro(
|
||||
public val title: String,
|
||||
public val description: String,
|
||||
public val sticker: TlGen_Document?,
|
||||
) : TlGen_BusinessIntro() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (sticker != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(title)
|
||||
stream.writeString(description)
|
||||
sticker?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5A0A066DU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessLocation : TlGen_Object {
|
||||
public data class TL_businessLocation(
|
||||
public val geo_point: TlGen_GeoPoint?,
|
||||
public val address: String,
|
||||
) : TlGen_BusinessLocation() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (geo_point != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
geo_point?.serializeToStream(stream)
|
||||
stream.writeString(address)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xAC5C1AF7U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessRecipients : TlGen_Object {
|
||||
public data class TL_businessRecipients(
|
||||
public val existing_chats: Boolean,
|
||||
public val new_chats: Boolean,
|
||||
public val contacts: Boolean,
|
||||
public val non_contacts: Boolean,
|
||||
public val exclude_selected: Boolean,
|
||||
public val users: List<Long>?,
|
||||
) : TlGen_BusinessRecipients() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (existing_chats) result = result or 1U
|
||||
if (new_chats) result = result or 2U
|
||||
if (contacts) result = result or 4U
|
||||
if (non_contacts) result = result or 8U
|
||||
if (users != null) result = result or 16U
|
||||
if (exclude_selected) result = result or 32U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
users?.let { TlGen_Vector.serializeLong(stream, it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x21108FF7U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessWeeklyOpen : TlGen_Object {
|
||||
public data class TL_businessWeeklyOpen(
|
||||
public val start_minute: Int,
|
||||
public val end_minute: Int,
|
||||
) : TlGen_BusinessWeeklyOpen() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(start_minute)
|
||||
stream.writeInt32(end_minute)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x120B1AB9U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_BusinessWorkHours : TlGen_Object {
|
||||
public data class TL_businessWorkHours(
|
||||
public val open_now: Boolean,
|
||||
public val timezone_id: String,
|
||||
public val weekly_open: List<TlGen_BusinessWeeklyOpen>,
|
||||
) : TlGen_BusinessWorkHours() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (open_now) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(timezone_id)
|
||||
TlGen_Vector.serialize(stream, weekly_open)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x8C92B098U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_CdnConfig : TlGen_Object
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_CdnPublicKey : TlGen_Object
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChannelAdminLogEvent : TlGen_Object {
|
||||
public data class TL_channelAdminLogEvent(
|
||||
public val id: Long,
|
||||
public val date: Int,
|
||||
public val user_id: Long,
|
||||
public val action: TlGen_ChannelAdminLogEventAction,
|
||||
) : TlGen_ChannelAdminLogEvent() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt32(date)
|
||||
stream.writeInt64(user_id)
|
||||
action.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1FAD68CDU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,736 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChannelAdminLogEventAction : TlGen_Object {
|
||||
public data class TL_channelAdminLogEventActionChangeTitle(
|
||||
public val prev_value: String,
|
||||
public val new_value: String,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(prev_value)
|
||||
stream.writeString(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE6DFB825U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeAbout(
|
||||
public val prev_value: String,
|
||||
public val new_value: String,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(prev_value)
|
||||
stream.writeString(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x55188A2EU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeUsername(
|
||||
public val prev_value: String,
|
||||
public val new_value: String,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(prev_value)
|
||||
stream.writeString(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x6A4AFC38U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionToggleInvites(
|
||||
public val new_value: Boolean,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeBool(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1B7907AEU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionToggleSignatures(
|
||||
public val new_value: Boolean,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeBool(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x26AE0971U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionUpdatePinned(
|
||||
public val message: TlGen_Message,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
message.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE9E82C18U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionEditMessage(
|
||||
public val prev_message: TlGen_Message,
|
||||
public val new_message: TlGen_Message,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_message.serializeToStream(stream)
|
||||
new_message.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x709B2405U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionDeleteMessage(
|
||||
public val message: TlGen_Message,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
message.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x42E047BBU
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_channelAdminLogEventActionParticipantJoin :
|
||||
TlGen_ChannelAdminLogEventAction() {
|
||||
public const val MAGIC: UInt = 0x183040D3U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_channelAdminLogEventActionParticipantLeave :
|
||||
TlGen_ChannelAdminLogEventAction() {
|
||||
public const val MAGIC: UInt = 0xF89777F2U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionParticipantInvite(
|
||||
public val participant: TlGen_ChannelParticipant,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
participant.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE31C34D8U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionParticipantToggleBan(
|
||||
public val prev_participant: TlGen_ChannelParticipant,
|
||||
public val new_participant: TlGen_ChannelParticipant,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_participant.serializeToStream(stream)
|
||||
new_participant.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE6D83D7EU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionParticipantToggleAdmin(
|
||||
public val prev_participant: TlGen_ChannelParticipant,
|
||||
public val new_participant: TlGen_ChannelParticipant,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_participant.serializeToStream(stream)
|
||||
new_participant.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xD5676710U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeStickerSet(
|
||||
public val prev_stickerset: TlGen_InputStickerSet,
|
||||
public val new_stickerset: TlGen_InputStickerSet,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_stickerset.serializeToStream(stream)
|
||||
new_stickerset.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xB1C3CAA7U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionTogglePreHistoryHidden(
|
||||
public val new_value: Boolean,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeBool(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5F5C95F1U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionDefaultBannedRights(
|
||||
public val prev_banned_rights: TlGen_ChatBannedRights,
|
||||
public val new_banned_rights: TlGen_ChatBannedRights,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_banned_rights.serializeToStream(stream)
|
||||
new_banned_rights.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x2DF5FC0AU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionStopPoll(
|
||||
public val message: TlGen_Message,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
message.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x8F079643U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangePhoto(
|
||||
public val prev_photo: TlGen_Photo,
|
||||
public val new_photo: TlGen_Photo,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_photo.serializeToStream(stream)
|
||||
new_photo.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x434BD2AFU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeLocation(
|
||||
public val prev_value: TlGen_ChannelLocation,
|
||||
public val new_value: TlGen_ChannelLocation,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_value.serializeToStream(stream)
|
||||
new_value.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x0E6B76AEU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionToggleSlowMode(
|
||||
public val prev_value: Int,
|
||||
public val new_value: Int,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(prev_value)
|
||||
stream.writeInt32(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x53909779U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionStartGroupCall(
|
||||
public val call: TlGen_InputGroupCall,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
call.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x23209745U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionDiscardGroupCall(
|
||||
public val call: TlGen_InputGroupCall,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
call.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xDB9F9140U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionParticipantMute(
|
||||
public val participant: TlGen_GroupCallParticipant,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
participant.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF92424D2U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionParticipantUnmute(
|
||||
public val participant: TlGen_GroupCallParticipant,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
participant.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE64429C0U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionToggleGroupCallSetting(
|
||||
public val join_muted: Boolean,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeBool(join_muted)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x56D6A247U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionExportedInviteDelete(
|
||||
public val invite: TlGen_ExportedChatInvite,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
invite.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5A50FCA4U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionExportedInviteRevoke(
|
||||
public val invite: TlGen_ExportedChatInvite,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
invite.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x410A134EU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionExportedInviteEdit(
|
||||
public val prev_invite: TlGen_ExportedChatInvite,
|
||||
public val new_invite: TlGen_ExportedChatInvite,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_invite.serializeToStream(stream)
|
||||
new_invite.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE90EBB59U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionParticipantVolume(
|
||||
public val participant: TlGen_GroupCallParticipant,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
participant.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x3E7F6847U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeHistoryTTL(
|
||||
public val prev_value: Int,
|
||||
public val new_value: Int,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(prev_value)
|
||||
stream.writeInt32(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x6E941A38U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeLinkedChat(
|
||||
public val prev_value: Long,
|
||||
public val new_value: Long,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(prev_value)
|
||||
stream.writeInt64(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x050C7AC8U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionParticipantJoinByRequest(
|
||||
public val invite: TlGen_ExportedChatInvite,
|
||||
public val approved_by: Long,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
invite.serializeToStream(stream)
|
||||
stream.writeInt64(approved_by)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xAFB6144AU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionToggleNoForwards(
|
||||
public val new_value: Boolean,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeBool(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xCB2AC766U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionSendMessage(
|
||||
public val message: TlGen_Message,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
message.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x278F2868U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeAvailableReactions(
|
||||
public val prev_value: TlGen_ChatReactions,
|
||||
public val new_value: TlGen_ChatReactions,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_value.serializeToStream(stream)
|
||||
new_value.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xBE4E0EF8U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeUsernames(
|
||||
public val prev_value: List<String>,
|
||||
public val new_value: List<String>,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
TlGen_Vector.serializeString(stream, prev_value)
|
||||
TlGen_Vector.serializeString(stream, new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF04FB3A9U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionToggleForum(
|
||||
public val new_value: Boolean,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeBool(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x02CC6383U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionCreateTopic(
|
||||
public val topic: TlGen_ForumTopic,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
topic.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x58707D28U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionEditTopic(
|
||||
public val prev_topic: TlGen_ForumTopic,
|
||||
public val new_topic: TlGen_ForumTopic,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_topic.serializeToStream(stream)
|
||||
new_topic.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF06FE208U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionDeleteTopic(
|
||||
public val topic: TlGen_ForumTopic,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
topic.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xAE168909U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionPinTopic(
|
||||
public val prev_topic: TlGen_ForumTopic?,
|
||||
public val new_topic: TlGen_ForumTopic?,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (prev_topic != null) result = result or 1U
|
||||
if (new_topic != null) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
prev_topic?.serializeToStream(stream)
|
||||
new_topic?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5D8D353BU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionToggleAntiSpam(
|
||||
public val new_value: Boolean,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeBool(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x64F36DFCU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionParticipantJoinByInvite(
|
||||
public val via_chatlist: Boolean,
|
||||
public val invite: TlGen_ExportedChatInvite,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (via_chatlist) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
invite.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xFE9FC158U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangePeerColor(
|
||||
public val prev_value: TlGen_PeerColor,
|
||||
public val new_value: TlGen_PeerColor,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_value.serializeToStream(stream)
|
||||
new_value.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5796E780U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeProfilePeerColor(
|
||||
public val prev_value: TlGen_PeerColor,
|
||||
public val new_value: TlGen_PeerColor,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_value.serializeToStream(stream)
|
||||
new_value.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5E477B25U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeWallpaper(
|
||||
public val prev_value: TlGen_WallPaper,
|
||||
public val new_value: TlGen_WallPaper,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_value.serializeToStream(stream)
|
||||
new_value.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x31BB5D52U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeEmojiStatus(
|
||||
public val prev_value: TlGen_EmojiStatus,
|
||||
public val new_value: TlGen_EmojiStatus,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_value.serializeToStream(stream)
|
||||
new_value.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x3EA9FEB1U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionChangeEmojiStickerSet(
|
||||
public val prev_stickerset: TlGen_InputStickerSet,
|
||||
public val new_stickerset: TlGen_InputStickerSet,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_stickerset.serializeToStream(stream)
|
||||
new_stickerset.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x46D840ABU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionToggleSignatureProfiles(
|
||||
public val new_value: Boolean,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeBool(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x60A79C79U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionParticipantSubExtend(
|
||||
public val prev_participant: TlGen_ChannelParticipant,
|
||||
public val new_participant: TlGen_ChannelParticipant,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
prev_participant.serializeToStream(stream)
|
||||
new_participant.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x64642DB3U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelAdminLogEventActionToggleAutotranslation(
|
||||
public val new_value: Boolean,
|
||||
) : TlGen_ChannelAdminLogEventAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeBool(new_value)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xC517F77EU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChannelAdminLogEventsFilter : TlGen_Object {
|
||||
public data class TL_channelAdminLogEventsFilter(
|
||||
public val join: Boolean,
|
||||
public val leave: Boolean,
|
||||
public val invite: Boolean,
|
||||
public val ban: Boolean,
|
||||
public val unban: Boolean,
|
||||
public val kick: Boolean,
|
||||
public val unkick: Boolean,
|
||||
public val promote: Boolean,
|
||||
public val demote: Boolean,
|
||||
public val info: Boolean,
|
||||
public val settings: Boolean,
|
||||
public val pinned: Boolean,
|
||||
public val edit: Boolean,
|
||||
public val delete: Boolean,
|
||||
public val group_call: Boolean,
|
||||
public val invites: Boolean,
|
||||
public val send: Boolean,
|
||||
public val forums: Boolean,
|
||||
public val sub_extend: Boolean,
|
||||
) : TlGen_ChannelAdminLogEventsFilter() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (join) result = result or 1U
|
||||
if (leave) result = result or 2U
|
||||
if (invite) result = result or 4U
|
||||
if (ban) result = result or 8U
|
||||
if (unban) result = result or 16U
|
||||
if (kick) result = result or 32U
|
||||
if (unkick) result = result or 64U
|
||||
if (promote) result = result or 128U
|
||||
if (demote) result = result or 256U
|
||||
if (info) result = result or 512U
|
||||
if (settings) result = result or 1024U
|
||||
if (pinned) result = result or 2048U
|
||||
if (edit) result = result or 4096U
|
||||
if (delete) result = result or 8192U
|
||||
if (group_call) result = result or 16384U
|
||||
if (invites) result = result or 32768U
|
||||
if (send) result = result or 65536U
|
||||
if (forums) result = result or 131072U
|
||||
if (sub_extend) result = result or 262144U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xEA107AE4U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChannelAdminRights : TlGen_Object {
|
||||
public data class TL_channelAdminRights_layer92(
|
||||
public val change_info: Boolean,
|
||||
public val post_messages: Boolean,
|
||||
public val edit_messages: Boolean,
|
||||
public val delete_messages: Boolean,
|
||||
public val ban_users: Boolean,
|
||||
public val invite_users: Boolean,
|
||||
public val invite_link: Boolean,
|
||||
public val pin_messages: Boolean,
|
||||
public val add_admins: Boolean,
|
||||
) : TlGen_ChannelAdminRights() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (change_info) result = result or 1U
|
||||
if (post_messages) result = result or 2U
|
||||
if (edit_messages) result = result or 4U
|
||||
if (delete_messages) result = result or 8U
|
||||
if (ban_users) result = result or 16U
|
||||
if (invite_users) result = result or 32U
|
||||
if (invite_link) result = result or 64U
|
||||
if (pin_messages) result = result or 128U
|
||||
if (add_admins) result = result or 512U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5D7CEBA5U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChannelBannedRights : TlGen_Object {
|
||||
public data class TL_channelBannedRights_layer92(
|
||||
public val view_messages: Boolean,
|
||||
public val send_messages: Boolean,
|
||||
public val send_media: Boolean,
|
||||
public val send_stickers: Boolean,
|
||||
public val send_gifs: Boolean,
|
||||
public val send_games: Boolean,
|
||||
public val send_inline: Boolean,
|
||||
public val embed_links: Boolean,
|
||||
public val until_date: Int,
|
||||
) : TlGen_ChannelBannedRights() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (view_messages) result = result or 1U
|
||||
if (send_messages) result = result or 2U
|
||||
if (send_media) result = result or 4U
|
||||
if (send_stickers) result = result or 8U
|
||||
if (send_gifs) result = result or 16U
|
||||
if (send_games) result = result or 32U
|
||||
if (send_inline) result = result or 64U
|
||||
if (embed_links) result = result or 128U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(until_date)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x58CF4249U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChannelLocation : TlGen_Object {
|
||||
public data object TL_channelLocationEmpty : TlGen_ChannelLocation() {
|
||||
public const val MAGIC: UInt = 0xBFB5AD8BU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelLocation(
|
||||
public val geo_point: TlGen_GeoPoint,
|
||||
public val address: String,
|
||||
) : TlGen_ChannelLocation() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
geo_point.serializeToStream(stream)
|
||||
stream.writeString(address)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x209B82DBU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChannelMessagesFilter : TlGen_Object {
|
||||
public data object TL_channelMessagesFilterEmpty : TlGen_ChannelMessagesFilter() {
|
||||
public const val MAGIC: UInt = 0x94D42EE7U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelMessagesFilter(
|
||||
public val exclude_new_messages: Boolean,
|
||||
public val ranges: List<TlGen_MessageRange>,
|
||||
) : TlGen_ChannelMessagesFilter() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (exclude_new_messages) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
TlGen_Vector.serialize(stream, ranges)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xCD77D957U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChannelParticipant : TlGen_Object {
|
||||
public data class TL_channelParticipantLeft(
|
||||
public val peer: TlGen_Peer,
|
||||
) : TlGen_ChannelParticipant() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
peer.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1B03F006U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelParticipantCreator(
|
||||
public val user_id: Long,
|
||||
public val admin_rights: TlGen_ChatAdminRights,
|
||||
public val rank: String?,
|
||||
) : TlGen_ChannelParticipant() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (rank != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
admin_rights.serializeToStream(stream)
|
||||
rank?.let { stream.writeString(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x2FE601D3U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelParticipantAdmin(
|
||||
public val can_edit: Boolean,
|
||||
public val user_id: Long,
|
||||
public val inviter_id: Long?,
|
||||
public val promoted_by: Long,
|
||||
public val date: Int,
|
||||
public val admin_rights: TlGen_ChatAdminRights,
|
||||
public val rank: String?,
|
||||
) : TlGen_ChannelParticipant() {
|
||||
public val self: Boolean = inviter_id != null
|
||||
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (can_edit) result = result or 1U
|
||||
if (self) result = result or 2U
|
||||
if (rank != null) result = result or 4U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
inviter_id?.let { stream.writeInt64(it) }
|
||||
stream.writeInt64(promoted_by)
|
||||
stream.writeInt32(date)
|
||||
admin_rights.serializeToStream(stream)
|
||||
rank?.let { stream.writeString(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x34C3BB53U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelParticipantBanned(
|
||||
public val left: Boolean,
|
||||
public val peer: TlGen_Peer,
|
||||
public val kicked_by: Long,
|
||||
public val date: Int,
|
||||
public val banned_rights: TlGen_ChatBannedRights,
|
||||
) : TlGen_ChannelParticipant() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (left) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
peer.serializeToStream(stream)
|
||||
stream.writeInt64(kicked_by)
|
||||
stream.writeInt32(date)
|
||||
banned_rights.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x6DF8014EU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelParticipant(
|
||||
public val user_id: Long,
|
||||
public val date: Int,
|
||||
public val subscription_until_date: Int?,
|
||||
) : TlGen_ChannelParticipant() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (subscription_until_date != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
stream.writeInt32(date)
|
||||
subscription_until_date?.let { stream.writeInt32(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xCB397619U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelParticipantSelf(
|
||||
public val via_request: Boolean,
|
||||
public val user_id: Long,
|
||||
public val inviter_id: Long,
|
||||
public val date: Int,
|
||||
public val subscription_until_date: Int?,
|
||||
) : TlGen_ChannelParticipant() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (via_request) result = result or 1U
|
||||
if (subscription_until_date != null) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
stream.writeInt64(inviter_id)
|
||||
stream.writeInt32(date)
|
||||
subscription_until_date?.let { stream.writeInt32(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x4F607BEFU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,110 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChannelParticipantsFilter : TlGen_Object {
|
||||
public data object TL_channelParticipantsRecent : TlGen_ChannelParticipantsFilter() {
|
||||
public const val MAGIC: UInt = 0xDE3F3C79U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_channelParticipantsAdmins : TlGen_ChannelParticipantsFilter() {
|
||||
public const val MAGIC: UInt = 0xB4608969U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_channelParticipantsBots : TlGen_ChannelParticipantsFilter() {
|
||||
public const val MAGIC: UInt = 0xB0D1865BU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelParticipantsKicked(
|
||||
public val q: String,
|
||||
) : TlGen_ChannelParticipantsFilter() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(q)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xA3B54985U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelParticipantsBanned(
|
||||
public val q: String,
|
||||
) : TlGen_ChannelParticipantsFilter() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(q)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1427A5E1U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelParticipantsSearch(
|
||||
public val q: String,
|
||||
) : TlGen_ChannelParticipantsFilter() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(q)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x0656AC4BU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelParticipantsContacts(
|
||||
public val q: String,
|
||||
) : TlGen_ChannelParticipantsFilter() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(q)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xBB6AE88DU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_channelParticipantsMentions(
|
||||
public val q: String?,
|
||||
public val top_msg_id: Int?,
|
||||
) : TlGen_ChannelParticipantsFilter() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (q != null) result = result or 1U
|
||||
if (top_msg_id != null) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
q?.let { stream.writeString(it) }
|
||||
top_msg_id?.let { stream.writeInt32(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE04B5CEBU
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,59 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatAdminRights : TlGen_Object {
|
||||
public data class TL_chatAdminRights(
|
||||
public val change_info: Boolean,
|
||||
public val post_messages: Boolean,
|
||||
public val edit_messages: Boolean,
|
||||
public val delete_messages: Boolean,
|
||||
public val ban_users: Boolean,
|
||||
public val invite_users: Boolean,
|
||||
public val pin_messages: Boolean,
|
||||
public val add_admins: Boolean,
|
||||
public val anonymous: Boolean,
|
||||
public val manage_call: Boolean,
|
||||
public val other: Boolean,
|
||||
public val manage_topics: Boolean,
|
||||
public val post_stories: Boolean,
|
||||
public val edit_stories: Boolean,
|
||||
public val delete_stories: Boolean,
|
||||
public val manage_direct_messages: Boolean,
|
||||
) : TlGen_ChatAdminRights() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (change_info) result = result or 1U
|
||||
if (post_messages) result = result or 2U
|
||||
if (edit_messages) result = result or 4U
|
||||
if (delete_messages) result = result or 8U
|
||||
if (ban_users) result = result or 16U
|
||||
if (invite_users) result = result or 32U
|
||||
if (pin_messages) result = result or 128U
|
||||
if (add_admins) result = result or 512U
|
||||
if (anonymous) result = result or 1024U
|
||||
if (manage_call) result = result or 2048U
|
||||
if (other) result = result or 4096U
|
||||
if (manage_topics) result = result or 8192U
|
||||
if (post_stories) result = result or 16384U
|
||||
if (edit_stories) result = result or 32768U
|
||||
if (delete_stories) result = result or 65536U
|
||||
if (manage_direct_messages) result = result or 131072U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5FB224D5U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatAdminWithInvites : TlGen_Object {
|
||||
public data class TL_chatAdminWithInvites(
|
||||
public val admin_id: Long,
|
||||
public val invites_count: Int,
|
||||
public val revoked_invites_count: Int,
|
||||
) : TlGen_ChatAdminWithInvites() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(admin_id)
|
||||
stream.writeInt32(invites_count)
|
||||
stream.writeInt32(revoked_invites_count)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF2ECEF23U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatBannedRights : TlGen_Object {
|
||||
public data class TL_chatBannedRights(
|
||||
public val view_messages: Boolean,
|
||||
public val send_messages: Boolean,
|
||||
public val send_media: Boolean,
|
||||
public val send_stickers: Boolean,
|
||||
public val send_gifs: Boolean,
|
||||
public val send_games: Boolean,
|
||||
public val send_inline: Boolean,
|
||||
public val embed_links: Boolean,
|
||||
public val send_polls: Boolean,
|
||||
public val change_info: Boolean,
|
||||
public val invite_users: Boolean,
|
||||
public val pin_messages: Boolean,
|
||||
public val manage_topics: Boolean,
|
||||
public val send_photos: Boolean,
|
||||
public val send_videos: Boolean,
|
||||
public val send_roundvideos: Boolean,
|
||||
public val send_audios: Boolean,
|
||||
public val send_voices: Boolean,
|
||||
public val send_docs: Boolean,
|
||||
public val send_plain: Boolean,
|
||||
public val until_date: Int,
|
||||
) : TlGen_ChatBannedRights() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (view_messages) result = result or 1U
|
||||
if (send_messages) result = result or 2U
|
||||
if (send_media) result = result or 4U
|
||||
if (send_stickers) result = result or 8U
|
||||
if (send_gifs) result = result or 16U
|
||||
if (send_games) result = result or 32U
|
||||
if (send_inline) result = result or 64U
|
||||
if (embed_links) result = result or 128U
|
||||
if (send_polls) result = result or 256U
|
||||
if (change_info) result = result or 1024U
|
||||
if (invite_users) result = result or 32768U
|
||||
if (pin_messages) result = result or 131072U
|
||||
if (manage_topics) result = result or 262144U
|
||||
if (send_photos) result = result or 524288U
|
||||
if (send_videos) result = result or 1048576U
|
||||
if (send_roundvideos) result = result or 2097152U
|
||||
if (send_audios) result = result or 4194304U
|
||||
if (send_voices) result = result or 8388608U
|
||||
if (send_docs) result = result or 16777216U
|
||||
if (send_plain) result = result or 33554432U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(until_date)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x9F120418U
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,100 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatInvite : TlGen_Object {
|
||||
public data class TL_chatInviteAlready(
|
||||
public val chat: TlGen_Chat,
|
||||
) : TlGen_ChatInvite() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
chat.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5A686D7CU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatInvitePeek(
|
||||
public val chat: TlGen_Chat,
|
||||
public val expires: Int,
|
||||
) : TlGen_ChatInvite() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
chat.serializeToStream(stream)
|
||||
stream.writeInt32(expires)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x61695CB0U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatInvite(
|
||||
public val channel: Boolean,
|
||||
public val broadcast: Boolean,
|
||||
public val `public`: Boolean,
|
||||
public val megagroup: Boolean,
|
||||
public val request_needed: Boolean,
|
||||
public val verified: Boolean,
|
||||
public val scam: Boolean,
|
||||
public val fake: Boolean,
|
||||
public val can_refulfill_subscription: Boolean,
|
||||
public val title: String,
|
||||
public val about: String?,
|
||||
public val photo: TlGen_Photo,
|
||||
public val participants_count: Int,
|
||||
public val participants: List<TlGen_User>?,
|
||||
public val color: Int,
|
||||
public val subscription_pricing: TlGen_StarsSubscriptionPricing?,
|
||||
public val subscription_form_id: Long?,
|
||||
public val bot_verification: TlGen_BotVerification?,
|
||||
) : TlGen_ChatInvite() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (channel) result = result or 1U
|
||||
if (broadcast) result = result or 2U
|
||||
if (public) result = result or 4U
|
||||
if (megagroup) result = result or 8U
|
||||
if (participants != null) result = result or 16U
|
||||
if (about != null) result = result or 32U
|
||||
if (request_needed) result = result or 64U
|
||||
if (verified) result = result or 128U
|
||||
if (scam) result = result or 256U
|
||||
if (fake) result = result or 512U
|
||||
if (subscription_pricing != null) result = result or 1024U
|
||||
if (can_refulfill_subscription) result = result or 2048U
|
||||
if (subscription_form_id != null) result = result or 4096U
|
||||
if (bot_verification != null) result = result or 8192U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(title)
|
||||
about?.let { stream.writeString(it) }
|
||||
photo.serializeToStream(stream)
|
||||
stream.writeInt32(participants_count)
|
||||
participants?.let { TlGen_Vector.serialize(stream, it) }
|
||||
stream.writeInt32(color)
|
||||
subscription_pricing?.serializeToStream(stream)
|
||||
subscription_form_id?.let { stream.writeInt64(it) }
|
||||
bot_verification?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5C9D3702U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatInviteImporter : TlGen_Object {
|
||||
public data class TL_chatInviteImporter(
|
||||
public val requested: Boolean,
|
||||
public val via_chatlist: Boolean,
|
||||
public val user_id: Long,
|
||||
public val date: Int,
|
||||
public val about: String?,
|
||||
public val approved_by: Long?,
|
||||
) : TlGen_ChatInviteImporter() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (requested) result = result or 1U
|
||||
if (approved_by != null) result = result or 2U
|
||||
if (about != null) result = result or 4U
|
||||
if (via_chatlist) result = result or 8U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
stream.writeInt32(date)
|
||||
about?.let { stream.writeString(it) }
|
||||
approved_by?.let { stream.writeInt64(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x8C5ADFD9U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatOnlines : TlGen_Object {
|
||||
public data class TL_chatOnlines(
|
||||
public val onlines: Int,
|
||||
) : TlGen_ChatOnlines() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(onlines)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF041E250U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatParticipant : TlGen_Object {
|
||||
public data class TL_chatParticipant(
|
||||
public val user_id: Long,
|
||||
public val inviter_id: Long,
|
||||
public val date: Int,
|
||||
) : TlGen_ChatParticipant() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
stream.writeInt64(inviter_id)
|
||||
stream.writeInt32(date)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xC02D4007U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatParticipantCreator(
|
||||
public val user_id: Long,
|
||||
) : TlGen_ChatParticipant() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE46BCEE4U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatParticipantAdmin(
|
||||
public val user_id: Long,
|
||||
public val inviter_id: Long,
|
||||
public val date: Int,
|
||||
) : TlGen_ChatParticipant() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
stream.writeInt64(inviter_id)
|
||||
stream.writeInt32(date)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xA0933F5BU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatParticipant_layer132(
|
||||
public val user_id: Int,
|
||||
public val inviter_id: Int,
|
||||
public val date: Int,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(user_id)
|
||||
stream.writeInt32(inviter_id)
|
||||
stream.writeInt32(date)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xC8D7493EU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatParticipantCreator_layer132(
|
||||
public val user_id: Int,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(user_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xDA13538AU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatParticipantAdmin_layer132(
|
||||
public val user_id: Int,
|
||||
public val inviter_id: Int,
|
||||
public val date: Int,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(user_id)
|
||||
stream.writeInt32(inviter_id)
|
||||
stream.writeInt32(date)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE2D6E436U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatParticipants : TlGen_Object {
|
||||
public data class TL_chatParticipantsForbidden(
|
||||
public val chat_id: Long,
|
||||
public val self_participant: TlGen_ChatParticipant?,
|
||||
) : TlGen_ChatParticipants() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (self_participant != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(chat_id)
|
||||
self_participant?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x8763D3E1U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatParticipants(
|
||||
public val chat_id: Long,
|
||||
public val participants: List<TlGen_ChatParticipant>,
|
||||
public val version: Int,
|
||||
) : TlGen_ChatParticipants() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(chat_id)
|
||||
TlGen_Vector.serialize(stream, participants)
|
||||
stream.writeInt32(version)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x3CBC93F8U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatParticipantsForbidden_layer36(
|
||||
public val chat_id: Int,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(chat_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x0FD2BB8AU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatParticipants_layer39(
|
||||
public val chat_id: Int,
|
||||
public val admin_id: Int,
|
||||
public val participants: List<TlGen_ChatParticipant>,
|
||||
public val version: Int,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(chat_id)
|
||||
stream.writeInt32(admin_id)
|
||||
TlGen_Vector.serialize(stream, participants)
|
||||
stream.writeInt32(version)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x7841B415U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatParticipantsForbidden_layer132(
|
||||
public val chat_id: Int,
|
||||
public val self_participant: TlGen_ChatParticipant?,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (self_participant != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(chat_id)
|
||||
self_participant?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xFC900C2BU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatParticipants_layer132(
|
||||
public val chat_id: Int,
|
||||
public val participants: List<TlGen_ChatParticipant>,
|
||||
public val version: Int,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(chat_id)
|
||||
TlGen_Vector.serialize(stream, participants)
|
||||
stream.writeInt32(version)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x3F460FEDU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,135 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Byte
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatPhoto : TlGen_Object {
|
||||
public data object TL_chatPhotoEmpty : TlGen_ChatPhoto() {
|
||||
public const val MAGIC: UInt = 0x37C1011CU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatPhoto(
|
||||
public val has_video: Boolean,
|
||||
public val photo_id: Long,
|
||||
public val stripped_thumb: List<Byte>?,
|
||||
public val dc_id: Int,
|
||||
) : TlGen_ChatPhoto() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (has_video) result = result or 1U
|
||||
if (stripped_thumb != null) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(photo_id)
|
||||
stripped_thumb?.let { stream.writeByteArray(it.toByteArray()) }
|
||||
stream.writeInt32(dc_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1C6E1C11U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatPhoto_layer97(
|
||||
public val photo_small: TlGen_FileLocation,
|
||||
public val photo_big: TlGen_FileLocation,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
photo_small.serializeToStream(stream)
|
||||
photo_big.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x6153276AU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatPhoto_layer115(
|
||||
public val photo_small: TlGen_FileLocation,
|
||||
public val photo_big: TlGen_FileLocation,
|
||||
public val dc_id: Int,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
photo_small.serializeToStream(stream)
|
||||
photo_big.serializeToStream(stream)
|
||||
stream.writeInt32(dc_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x475CDBD5U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatPhoto_layer126(
|
||||
public val has_video: Boolean,
|
||||
public val photo_small: TlGen_FileLocation,
|
||||
public val photo_big: TlGen_FileLocation,
|
||||
public val dc_id: Int,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (has_video) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
photo_small.serializeToStream(stream)
|
||||
photo_big.serializeToStream(stream)
|
||||
stream.writeInt32(dc_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xD20B9F3CU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatPhoto_layer127(
|
||||
public val has_video: Boolean,
|
||||
public val photo_small: TlGen_FileLocation,
|
||||
public val photo_big: TlGen_FileLocation,
|
||||
public val stripped_thumb: List<Byte>?,
|
||||
public val dc_id: Int,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (has_video) result = result or 1U
|
||||
if (stripped_thumb != null) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
photo_small.serializeToStream(stream)
|
||||
photo_big.serializeToStream(stream)
|
||||
stripped_thumb?.let { stream.writeByteArray(it.toByteArray()) }
|
||||
stream.writeInt32(dc_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x4790EE05U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatReactions : TlGen_Object {
|
||||
public data object TL_chatReactionsNone : TlGen_ChatReactions() {
|
||||
public const val MAGIC: UInt = 0xEAFC32BCU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatReactionsAll(
|
||||
public val allow_custom: Boolean,
|
||||
) : TlGen_ChatReactions() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (allow_custom) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x52928BCAU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatReactionsSome(
|
||||
public val reactions: List<TlGen_Reaction>,
|
||||
) : TlGen_ChatReactions() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
TlGen_Vector.serialize(stream, reactions)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x661D4037U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ChatTheme : TlGen_Object {
|
||||
public data class TL_chatTheme(
|
||||
public val emoticon: String,
|
||||
) : TlGen_ChatTheme() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(emoticon)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xC3DFFC04U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_chatThemeUniqueGift(
|
||||
public val gift: TlGen_StarGift,
|
||||
public val theme_settings: List<TlGen_ThemeSettings>,
|
||||
) : TlGen_ChatTheme() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
gift.serializeToStream(stream)
|
||||
TlGen_Vector.serialize(stream, theme_settings)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x3458F9C8U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Byte
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_CodeSettings : TlGen_Object {
|
||||
public data class TL_codeSettings(
|
||||
public val allow_flashcall: Boolean,
|
||||
public val current_number: Boolean,
|
||||
public val allow_app_hash: Boolean,
|
||||
public val allow_missed_call: Boolean,
|
||||
public val allow_firebase: Boolean,
|
||||
public val unknown_number: Boolean,
|
||||
public val logout_tokens: List<List<Byte>>?,
|
||||
public val multiflags_8: Multiflags_8?,
|
||||
) : TlGen_CodeSettings() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (allow_flashcall) result = result or 1U
|
||||
if (current_number) result = result or 2U
|
||||
if (allow_app_hash) result = result or 16U
|
||||
if (allow_missed_call) result = result or 32U
|
||||
if (logout_tokens != null) result = result or 64U
|
||||
if (allow_firebase) result = result or 128U
|
||||
if (multiflags_8 != null) result = result or 256U
|
||||
if (unknown_number) result = result or 512U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
logout_tokens?.let { TlGen_Vector.serializeBytes(stream, it) }
|
||||
multiflags_8?.let { stream.writeString(it.token) }
|
||||
multiflags_8?.let { stream.writeBool(it.app_sandbox) }
|
||||
}
|
||||
|
||||
public data class Multiflags_8(
|
||||
public val token: String,
|
||||
public val app_sandbox: Boolean,
|
||||
)
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xAD253D78U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,137 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_Config : TlGen_Object {
|
||||
public data class TL_config(
|
||||
public val default_p2p_contacts: Boolean,
|
||||
public val preload_featured_stickers: Boolean,
|
||||
public val revoke_pm_inbox: Boolean,
|
||||
public val blocked_mode: Boolean,
|
||||
public val force_try_ipv6: Boolean,
|
||||
public val date: Int,
|
||||
public val expires: Int,
|
||||
public val test_mode: Boolean,
|
||||
public val this_dc: Int,
|
||||
public val dc_options: List<TlGen_DcOption>,
|
||||
public val dc_txt_domain_name: String,
|
||||
public val chat_size_max: Int,
|
||||
public val megagroup_size_max: Int,
|
||||
public val forwarded_count_max: Int,
|
||||
public val online_update_period_ms: Int,
|
||||
public val offline_blur_timeout_ms: Int,
|
||||
public val offline_idle_timeout_ms: Int,
|
||||
public val online_cloud_timeout_ms: Int,
|
||||
public val notify_cloud_delay_ms: Int,
|
||||
public val notify_default_delay_ms: Int,
|
||||
public val push_chat_period_ms: Int,
|
||||
public val push_chat_limit: Int,
|
||||
public val edit_time_limit: Int,
|
||||
public val revoke_time_limit: Int,
|
||||
public val revoke_pm_time_limit: Int,
|
||||
public val rating_e_decay: Int,
|
||||
public val stickers_recent_limit: Int,
|
||||
public val channels_read_media_period: Int,
|
||||
public val tmp_sessions: Int?,
|
||||
public val call_receive_timeout_ms: Int,
|
||||
public val call_ring_timeout_ms: Int,
|
||||
public val call_connect_timeout_ms: Int,
|
||||
public val call_packet_timeout_ms: Int,
|
||||
public val me_url_prefix: String,
|
||||
public val autoupdate_url_prefix: String?,
|
||||
public val gif_search_username: String?,
|
||||
public val venue_search_username: String?,
|
||||
public val img_search_username: String?,
|
||||
public val static_maps_provider: String?,
|
||||
public val caption_length_max: Int,
|
||||
public val message_length_max: Int,
|
||||
public val webfile_dc_id: Int,
|
||||
public val reactions_default: TlGen_Reaction?,
|
||||
public val autologin_token: String?,
|
||||
public val multiflags_2: Multiflags_2?,
|
||||
) : TlGen_Config() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (tmp_sessions != null) result = result or 1U
|
||||
if (multiflags_2 != null) result = result or 4U
|
||||
if (default_p2p_contacts) result = result or 8U
|
||||
if (preload_featured_stickers) result = result or 16U
|
||||
if (revoke_pm_inbox) result = result or 64U
|
||||
if (autoupdate_url_prefix != null) result = result or 128U
|
||||
if (blocked_mode) result = result or 256U
|
||||
if (gif_search_username != null) result = result or 512U
|
||||
if (venue_search_username != null) result = result or 1024U
|
||||
if (img_search_username != null) result = result or 2048U
|
||||
if (static_maps_provider != null) result = result or 4096U
|
||||
if (force_try_ipv6) result = result or 16384U
|
||||
if (reactions_default != null) result = result or 32768U
|
||||
if (autologin_token != null) result = result or 65536U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(date)
|
||||
stream.writeInt32(expires)
|
||||
stream.writeBool(test_mode)
|
||||
stream.writeInt32(this_dc)
|
||||
TlGen_Vector.serialize(stream, dc_options)
|
||||
stream.writeString(dc_txt_domain_name)
|
||||
stream.writeInt32(chat_size_max)
|
||||
stream.writeInt32(megagroup_size_max)
|
||||
stream.writeInt32(forwarded_count_max)
|
||||
stream.writeInt32(online_update_period_ms)
|
||||
stream.writeInt32(offline_blur_timeout_ms)
|
||||
stream.writeInt32(offline_idle_timeout_ms)
|
||||
stream.writeInt32(online_cloud_timeout_ms)
|
||||
stream.writeInt32(notify_cloud_delay_ms)
|
||||
stream.writeInt32(notify_default_delay_ms)
|
||||
stream.writeInt32(push_chat_period_ms)
|
||||
stream.writeInt32(push_chat_limit)
|
||||
stream.writeInt32(edit_time_limit)
|
||||
stream.writeInt32(revoke_time_limit)
|
||||
stream.writeInt32(revoke_pm_time_limit)
|
||||
stream.writeInt32(rating_e_decay)
|
||||
stream.writeInt32(stickers_recent_limit)
|
||||
stream.writeInt32(channels_read_media_period)
|
||||
tmp_sessions?.let { stream.writeInt32(it) }
|
||||
stream.writeInt32(call_receive_timeout_ms)
|
||||
stream.writeInt32(call_ring_timeout_ms)
|
||||
stream.writeInt32(call_connect_timeout_ms)
|
||||
stream.writeInt32(call_packet_timeout_ms)
|
||||
stream.writeString(me_url_prefix)
|
||||
autoupdate_url_prefix?.let { stream.writeString(it) }
|
||||
gif_search_username?.let { stream.writeString(it) }
|
||||
venue_search_username?.let { stream.writeString(it) }
|
||||
img_search_username?.let { stream.writeString(it) }
|
||||
static_maps_provider?.let { stream.writeString(it) }
|
||||
stream.writeInt32(caption_length_max)
|
||||
stream.writeInt32(message_length_max)
|
||||
stream.writeInt32(webfile_dc_id)
|
||||
multiflags_2?.let { stream.writeString(it.suggested_lang_code) }
|
||||
multiflags_2?.let { stream.writeInt32(it.lang_pack_version) }
|
||||
multiflags_2?.let { stream.writeInt32(it.base_lang_pack_version) }
|
||||
reactions_default?.serializeToStream(stream)
|
||||
autologin_token?.let { stream.writeString(it) }
|
||||
}
|
||||
|
||||
public data class Multiflags_2(
|
||||
public val suggested_lang_code: String,
|
||||
public val lang_pack_version: Int,
|
||||
public val base_lang_pack_version: Int,
|
||||
)
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xCC1A241EU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ConnectedBot : TlGen_Object {
|
||||
public data class TL_connectedBot(
|
||||
public val bot_id: Long,
|
||||
public val recipients: TlGen_BusinessBotRecipients,
|
||||
public val rights: TlGen_BusinessBotRights,
|
||||
) : TlGen_ConnectedBot() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(bot_id)
|
||||
recipients.serializeToStream(stream)
|
||||
rights.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xCD64636CU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ConnectedBotStarRef : TlGen_Object {
|
||||
public data class TL_connectedBotStarRef(
|
||||
public val revoked: Boolean,
|
||||
public val url: String,
|
||||
public val date: Int,
|
||||
public val bot_id: Long,
|
||||
public val commission_permille: Int,
|
||||
public val duration_months: Int?,
|
||||
public val participants: Long,
|
||||
public val revenue: Long,
|
||||
) : TlGen_ConnectedBotStarRef() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (duration_months != null) result = result or 1U
|
||||
if (revoked) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(url)
|
||||
stream.writeInt32(date)
|
||||
stream.writeInt64(bot_id)
|
||||
stream.writeInt32(commission_permille)
|
||||
duration_months?.let { stream.writeInt32(it) }
|
||||
stream.writeInt64(participants)
|
||||
stream.writeInt64(revenue)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x19A13F71U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_Contact : TlGen_Object {
|
||||
public data class TL_contact(
|
||||
public val user_id: Long,
|
||||
public val mutual: Boolean,
|
||||
) : TlGen_Contact() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
stream.writeBool(mutual)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x145ADE0BU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ContactBirthday : TlGen_Object {
|
||||
public data class TL_contactBirthday(
|
||||
public val contact_id: Long,
|
||||
public val birthday: TlGen_Birthday,
|
||||
) : TlGen_ContactBirthday() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(contact_id)
|
||||
birthday.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1D998733U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ContactLink : TlGen_Object {
|
||||
public data object TL_contactLinkUnknown_layer101 : TlGen_ContactLink() {
|
||||
public const val MAGIC: UInt = 0x5F4F9247U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_contactLinkNone_layer101 : TlGen_ContactLink() {
|
||||
public const val MAGIC: UInt = 0xFEEDD3ADU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_contactLinkHasPhone_layer99 : TlGen_ContactLink() {
|
||||
public const val MAGIC: UInt = 0x268F3F59U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_contactLinkContact_layer101 : TlGen_ContactLink() {
|
||||
public const val MAGIC: UInt = 0xD502C2D0U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_ContactStatus : TlGen_Object {
|
||||
public data class TL_contactStatus(
|
||||
public val user_id: Long,
|
||||
public val status: TlGen_UserStatus,
|
||||
) : TlGen_ContactStatus() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(user_id)
|
||||
status.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x16D9703BU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DataJSON : TlGen_Object {
|
||||
public data class TL_dataJSON(
|
||||
public val `data`: String,
|
||||
) : TlGen_DataJSON() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(data)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x7D748D04U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Byte
|
||||
import kotlin.Int
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DcOption : TlGen_Object {
|
||||
public data class TL_dcOption(
|
||||
public val ipv6: Boolean,
|
||||
public val media_only: Boolean,
|
||||
public val tcpo_only: Boolean,
|
||||
public val cdn: Boolean,
|
||||
public val static: Boolean,
|
||||
public val this_port_only: Boolean,
|
||||
public val id: Int,
|
||||
public val ip_address: String,
|
||||
public val port: Int,
|
||||
public val secret: List<Byte>?,
|
||||
) : TlGen_DcOption() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (ipv6) result = result or 1U
|
||||
if (media_only) result = result or 2U
|
||||
if (tcpo_only) result = result or 4U
|
||||
if (cdn) result = result or 8U
|
||||
if (static) result = result or 16U
|
||||
if (this_port_only) result = result or 32U
|
||||
if (secret != null) result = result or 1024U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(id)
|
||||
stream.writeString(ip_address)
|
||||
stream.writeInt32(port)
|
||||
secret?.let { stream.writeByteArray(it.toByteArray()) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x18B7A10DU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,158 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Byte
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DecryptedMessage : TlGen_Object {
|
||||
public data class TL_decryptedMessage_layer8(
|
||||
public val random_id: Long,
|
||||
public val random_bytes: List<Byte>,
|
||||
public val message: String,
|
||||
public val media: TlGen_DecryptedMessageMedia,
|
||||
) : TlGen_DecryptedMessage() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(random_id)
|
||||
stream.writeByteArray(random_bytes.toByteArray())
|
||||
stream.writeString(message)
|
||||
media.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1F814F1FU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessage_layer17(
|
||||
public val random_id: Long,
|
||||
public val ttl: Int,
|
||||
public val message: String,
|
||||
public val media: TlGen_DecryptedMessageMedia,
|
||||
) : TlGen_DecryptedMessage() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(random_id)
|
||||
stream.writeInt32(ttl)
|
||||
stream.writeString(message)
|
||||
media.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x204D3878U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessage_layer45(
|
||||
public val random_id: Long,
|
||||
public val ttl: Int,
|
||||
public val message: String,
|
||||
public val media: TlGen_DecryptedMessageMedia?,
|
||||
public val entities: List<TlGen_MessageEntity>?,
|
||||
public val via_bot_name: String?,
|
||||
public val reply_to_random_id: Long?,
|
||||
) : TlGen_DecryptedMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (reply_to_random_id != null) result = result or 8U
|
||||
if (entities != null) result = result or 128U
|
||||
if (media != null) result = result or 512U
|
||||
if (via_bot_name != null) result = result or 2048U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(random_id)
|
||||
stream.writeInt32(ttl)
|
||||
stream.writeString(message)
|
||||
media?.serializeToStream(stream)
|
||||
entities?.let { TlGen_Vector.serialize(stream, it) }
|
||||
via_bot_name?.let { stream.writeString(it) }
|
||||
reply_to_random_id?.let { stream.writeInt64(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x36B091DEU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessage_layer73(
|
||||
public val random_id: Long,
|
||||
public val ttl: Int,
|
||||
public val message: String,
|
||||
public val media: TlGen_DecryptedMessageMedia?,
|
||||
public val entities: List<TlGen_MessageEntity>?,
|
||||
public val via_bot_name: String?,
|
||||
public val reply_to_random_id: Long?,
|
||||
public val grouped_id: Long?,
|
||||
) : TlGen_DecryptedMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (reply_to_random_id != null) result = result or 8U
|
||||
if (entities != null) result = result or 128U
|
||||
if (media != null) result = result or 512U
|
||||
if (via_bot_name != null) result = result or 2048U
|
||||
if (grouped_id != null) result = result or 131072U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(random_id)
|
||||
stream.writeInt32(ttl)
|
||||
stream.writeString(message)
|
||||
media?.serializeToStream(stream)
|
||||
entities?.let { TlGen_Vector.serialize(stream, it) }
|
||||
via_bot_name?.let { stream.writeString(it) }
|
||||
reply_to_random_id?.let { stream.writeInt64(it) }
|
||||
grouped_id?.let { stream.writeInt64(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x91CC4674U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageService_layer8(
|
||||
public val random_id: Long,
|
||||
public val random_bytes: List<Byte>,
|
||||
public val action: TlGen_DecryptedMessageAction,
|
||||
) : TlGen_DecryptedMessage() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(random_id)
|
||||
stream.writeByteArray(random_bytes.toByteArray())
|
||||
action.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xAA48327DU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageService_layer17(
|
||||
public val random_id: Long,
|
||||
public val action: TlGen_DecryptedMessageAction,
|
||||
) : TlGen_DecryptedMessage() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(random_id)
|
||||
action.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x73164160U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,181 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Byte
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DecryptedMessageAction : TlGen_Object {
|
||||
public data class TL_decryptedMessageActionSetMessageTTL_layer8(
|
||||
public val ttl_seconds: Int,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(ttl_seconds)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xA1733AECU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageActionReadMessages_layer8(
|
||||
public val random_ids: List<Long>,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
TlGen_Vector.serializeLong(stream, random_ids)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x0C4F40BEU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageActionDeleteMessages_layer8(
|
||||
public val random_ids: List<Long>,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
TlGen_Vector.serializeLong(stream, random_ids)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x65614304U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageActionScreenshotMessages_layer8(
|
||||
public val random_ids: List<Long>,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
TlGen_Vector.serializeLong(stream, random_ids)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x8AC1F475U
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_decryptedMessageActionFlushHistory_layer8 : TlGen_DecryptedMessageAction() {
|
||||
public const val MAGIC: UInt = 0x6719E45CU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageActionResend_layer17(
|
||||
public val start_seq_no: Int,
|
||||
public val end_seq_no: Int,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(start_seq_no)
|
||||
stream.writeInt32(end_seq_no)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x511110B0U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageActionNotifyLayer_layer17(
|
||||
public val layer: Int,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(layer)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF3048883U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageActionTyping_layer17(
|
||||
public val action: TlGen_SendMessageAction,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
action.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xCCB27641U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageActionRequestKey_layer20(
|
||||
public val exchange_id: Long,
|
||||
public val g_a: List<Byte>,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(exchange_id)
|
||||
stream.writeByteArray(g_a.toByteArray())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF3C9611BU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageActionAcceptKey_layer20(
|
||||
public val exchange_id: Long,
|
||||
public val g_b: List<Byte>,
|
||||
public val key_fingerprint: Long,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(exchange_id)
|
||||
stream.writeByteArray(g_b.toByteArray())
|
||||
stream.writeInt64(key_fingerprint)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x6FE1735BU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageActionAbortKey_layer20(
|
||||
public val exchange_id: Long,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(exchange_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xDD05EC6BU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageActionCommitKey_layer20(
|
||||
public val exchange_id: Long,
|
||||
public val key_fingerprint: Long,
|
||||
) : TlGen_DecryptedMessageAction() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(exchange_id)
|
||||
stream.writeInt64(key_fingerprint)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xEC2E0B9BU
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_decryptedMessageActionNoop_layer20 : TlGen_DecryptedMessageAction() {
|
||||
public const val MAGIC: UInt = 0xA82FDD63U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Byte
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DecryptedMessageLayer : TlGen_Object {
|
||||
public data class TL_decryptedMessageLayer_layer17(
|
||||
public val random_bytes: List<Byte>,
|
||||
public val layer: Int,
|
||||
public val in_seq_no: Int,
|
||||
public val out_seq_no: Int,
|
||||
public val message: TlGen_DecryptedMessage,
|
||||
) : TlGen_DecryptedMessageLayer() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeByteArray(random_bytes.toByteArray())
|
||||
stream.writeInt32(layer)
|
||||
stream.writeInt32(in_seq_no)
|
||||
stream.writeInt32(out_seq_no)
|
||||
message.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1BE31789U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,393 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Byte
|
||||
import kotlin.Double
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DecryptedMessageMedia : TlGen_Object {
|
||||
public data object TL_decryptedMessageMediaEmpty_layer8 : TlGen_DecryptedMessageMedia() {
|
||||
public const val MAGIC: UInt = 0x089F5C4AU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaPhoto_layer8(
|
||||
public val thumb: List<Byte>,
|
||||
public val thumb_w: Int,
|
||||
public val thumb_h: Int,
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
public val size: Int,
|
||||
public val key: List<Byte>,
|
||||
public val iv: List<Byte>,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeByteArray(thumb.toByteArray())
|
||||
stream.writeInt32(thumb_w)
|
||||
stream.writeInt32(thumb_h)
|
||||
stream.writeInt32(w)
|
||||
stream.writeInt32(h)
|
||||
stream.writeInt32(size)
|
||||
stream.writeByteArray(key.toByteArray())
|
||||
stream.writeByteArray(iv.toByteArray())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x32798A8CU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaPhoto_layer45(
|
||||
public val thumb: List<Byte>,
|
||||
public val thumb_w: Int,
|
||||
public val thumb_h: Int,
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
public val size: Int,
|
||||
public val key: List<Byte>,
|
||||
public val iv: List<Byte>,
|
||||
public val caption: String,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeByteArray(thumb.toByteArray())
|
||||
stream.writeInt32(thumb_w)
|
||||
stream.writeInt32(thumb_h)
|
||||
stream.writeInt32(w)
|
||||
stream.writeInt32(h)
|
||||
stream.writeInt32(size)
|
||||
stream.writeByteArray(key.toByteArray())
|
||||
stream.writeByteArray(iv.toByteArray())
|
||||
stream.writeString(caption)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF1FA8D78U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaVideo_layer8(
|
||||
public val thumb: List<Byte>,
|
||||
public val thumb_w: Int,
|
||||
public val thumb_h: Int,
|
||||
public val duration: Int,
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
public val size: Int,
|
||||
public val key: List<Byte>,
|
||||
public val iv: List<Byte>,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeByteArray(thumb.toByteArray())
|
||||
stream.writeInt32(thumb_w)
|
||||
stream.writeInt32(thumb_h)
|
||||
stream.writeInt32(duration)
|
||||
stream.writeInt32(w)
|
||||
stream.writeInt32(h)
|
||||
stream.writeInt32(size)
|
||||
stream.writeByteArray(key.toByteArray())
|
||||
stream.writeByteArray(iv.toByteArray())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x4CEE6EF3U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaVideo_layer17(
|
||||
public val thumb: List<Byte>,
|
||||
public val thumb_w: Int,
|
||||
public val thumb_h: Int,
|
||||
public val duration: Int,
|
||||
public val mime_type: String,
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
public val size: Int,
|
||||
public val key: List<Byte>,
|
||||
public val iv: List<Byte>,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeByteArray(thumb.toByteArray())
|
||||
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.toByteArray())
|
||||
stream.writeByteArray(iv.toByteArray())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x524A415DU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaVideo_layer45(
|
||||
public val thumb: List<Byte>,
|
||||
public val thumb_w: Int,
|
||||
public val thumb_h: Int,
|
||||
public val duration: Int,
|
||||
public val mime_type: String,
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
public val size: Int,
|
||||
public val key: List<Byte>,
|
||||
public val iv: List<Byte>,
|
||||
public val caption: String,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeByteArray(thumb.toByteArray())
|
||||
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.toByteArray())
|
||||
stream.writeByteArray(iv.toByteArray())
|
||||
stream.writeString(caption)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x970C8C0EU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaGeoPoint_layer8(
|
||||
public val lat: Double,
|
||||
public val long: Double,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeDouble(lat)
|
||||
stream.writeDouble(long)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x35480A59U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaContact_layer8(
|
||||
public val phone_number: String,
|
||||
public val first_name: String,
|
||||
public val last_name: String,
|
||||
public val user_id: Int,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(phone_number)
|
||||
stream.writeString(first_name)
|
||||
stream.writeString(last_name)
|
||||
stream.writeInt32(user_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x588A0A97U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaDocument_layer8(
|
||||
public val thumb: List<Byte>,
|
||||
public val thumb_w: Int,
|
||||
public val thumb_h: Int,
|
||||
public val file_name: String,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val key: List<Byte>,
|
||||
public val iv: List<Byte>,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeByteArray(thumb.toByteArray())
|
||||
stream.writeInt32(thumb_w)
|
||||
stream.writeInt32(thumb_h)
|
||||
stream.writeString(file_name)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt32(size)
|
||||
stream.writeByteArray(key.toByteArray())
|
||||
stream.writeByteArray(iv.toByteArray())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xB095434BU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaDocument_layer45(
|
||||
public val thumb: List<Byte>,
|
||||
public val thumb_w: Int,
|
||||
public val thumb_h: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val key: List<Byte>,
|
||||
public val iv: List<Byte>,
|
||||
public val attributes: List<TlGen_DocumentAttribute>,
|
||||
public val caption: String,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeByteArray(thumb.toByteArray())
|
||||
stream.writeInt32(thumb_w)
|
||||
stream.writeInt32(thumb_h)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt32(size)
|
||||
stream.writeByteArray(key.toByteArray())
|
||||
stream.writeByteArray(iv.toByteArray())
|
||||
TlGen_Vector.serialize(stream, attributes)
|
||||
stream.writeString(caption)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x7AFE8AE2U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaDocument_layer143(
|
||||
public val thumb: List<Byte>,
|
||||
public val thumb_w: Int,
|
||||
public val thumb_h: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Long,
|
||||
public val key: List<Byte>,
|
||||
public val iv: List<Byte>,
|
||||
public val attributes: List<TlGen_DocumentAttribute>,
|
||||
public val caption: String,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeByteArray(thumb.toByteArray())
|
||||
stream.writeInt32(thumb_w)
|
||||
stream.writeInt32(thumb_h)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt64(size)
|
||||
stream.writeByteArray(key.toByteArray())
|
||||
stream.writeByteArray(iv.toByteArray())
|
||||
TlGen_Vector.serialize(stream, attributes)
|
||||
stream.writeString(caption)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x6ABD9782U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaAudio_layer8(
|
||||
public val duration: Int,
|
||||
public val size: Int,
|
||||
public val key: List<Byte>,
|
||||
public val iv: List<Byte>,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(duration)
|
||||
stream.writeInt32(size)
|
||||
stream.writeByteArray(key.toByteArray())
|
||||
stream.writeByteArray(iv.toByteArray())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x6080758FU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaAudio_layer17(
|
||||
public val duration: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val key: List<Byte>,
|
||||
public val iv: List<Byte>,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(duration)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt32(size)
|
||||
stream.writeByteArray(key.toByteArray())
|
||||
stream.writeByteArray(iv.toByteArray())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x57E0A9CBU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaExternalDocument_layer23(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val date: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val thumb: TlGen_PhotoSize,
|
||||
public val dc_id: Int,
|
||||
public val attributes: List<TlGen_DocumentAttribute>,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt64(access_hash)
|
||||
stream.writeInt32(date)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt32(size)
|
||||
thumb.serializeToStream(stream)
|
||||
stream.writeInt32(dc_id)
|
||||
TlGen_Vector.serialize(stream, attributes)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xFA95B0DDU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaVenue_layer45(
|
||||
public val lat: Double,
|
||||
public val long: Double,
|
||||
public val title: String,
|
||||
public val address: String,
|
||||
public val provider: String,
|
||||
public val venue_id: String,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeDouble(lat)
|
||||
stream.writeDouble(long)
|
||||
stream.writeString(title)
|
||||
stream.writeString(address)
|
||||
stream.writeString(provider)
|
||||
stream.writeString(venue_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x8A0DF56FU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_decryptedMessageMediaWebPage_layer45(
|
||||
public val url: String,
|
||||
) : TlGen_DecryptedMessageMedia() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(url)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE50511D8U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DefaultHistoryTTL : TlGen_Object {
|
||||
public data class TL_defaultHistoryTTL(
|
||||
public val period: Int,
|
||||
) : TlGen_DefaultHistoryTTL() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(period)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x43B46B20U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_Dialog : TlGen_Object {
|
||||
public data class TL_dialogFolder(
|
||||
public val pinned: Boolean,
|
||||
public val folder: TlGen_Folder,
|
||||
public val peer: TlGen_Peer,
|
||||
public val top_message: Int,
|
||||
public val unread_muted_peers_count: Int,
|
||||
public val unread_unmuted_peers_count: Int,
|
||||
public val unread_muted_messages_count: Int,
|
||||
public val unread_unmuted_messages_count: Int,
|
||||
) : TlGen_Dialog() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (pinned) result = result or 4U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
folder.serializeToStream(stream)
|
||||
peer.serializeToStream(stream)
|
||||
stream.writeInt32(top_message)
|
||||
stream.writeInt32(unread_muted_peers_count)
|
||||
stream.writeInt32(unread_unmuted_peers_count)
|
||||
stream.writeInt32(unread_muted_messages_count)
|
||||
stream.writeInt32(unread_unmuted_messages_count)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x71BD134CU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_dialog(
|
||||
public val pinned: Boolean,
|
||||
public val unread_mark: Boolean,
|
||||
public val view_forum_as_messages: Boolean,
|
||||
public val peer: TlGen_Peer,
|
||||
public val top_message: Int,
|
||||
public val read_inbox_max_id: Int,
|
||||
public val read_outbox_max_id: Int,
|
||||
public val unread_count: Int,
|
||||
public val unread_mentions_count: Int,
|
||||
public val unread_reactions_count: Int,
|
||||
public val notify_settings: TlGen_PeerNotifySettings,
|
||||
public val pts: Int?,
|
||||
public val draft: TlGen_DraftMessage?,
|
||||
public val folder_id: Int?,
|
||||
public val ttl_period: Int?,
|
||||
) : TlGen_Dialog() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (pts != null) result = result or 1U
|
||||
if (draft != null) result = result or 2U
|
||||
if (pinned) result = result or 4U
|
||||
if (unread_mark) result = result or 8U
|
||||
if (folder_id != null) result = result or 16U
|
||||
if (ttl_period != null) result = result or 32U
|
||||
if (view_forum_as_messages) result = result or 64U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
peer.serializeToStream(stream)
|
||||
stream.writeInt32(top_message)
|
||||
stream.writeInt32(read_inbox_max_id)
|
||||
stream.writeInt32(read_outbox_max_id)
|
||||
stream.writeInt32(unread_count)
|
||||
stream.writeInt32(unread_mentions_count)
|
||||
stream.writeInt32(unread_reactions_count)
|
||||
notify_settings.serializeToStream(stream)
|
||||
pts?.let { stream.writeInt32(it) }
|
||||
draft?.serializeToStream(stream)
|
||||
folder_id?.let { stream.writeInt32(it) }
|
||||
ttl_period?.let { stream.writeInt32(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xD58A08C6U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DialogFilter : TlGen_Object {
|
||||
public data object TL_dialogFilterDefault : TlGen_DialogFilter() {
|
||||
public const val MAGIC: UInt = 0x363293AEU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_dialogFilter(
|
||||
public val contacts: Boolean,
|
||||
public val non_contacts: Boolean,
|
||||
public val groups: Boolean,
|
||||
public val broadcasts: Boolean,
|
||||
public val bots: Boolean,
|
||||
public val exclude_muted: Boolean,
|
||||
public val exclude_read: Boolean,
|
||||
public val exclude_archived: Boolean,
|
||||
public val title_noanimate: Boolean,
|
||||
public val id: Int,
|
||||
public val title: TlGen_TextWithEntities,
|
||||
public val emoticon: String?,
|
||||
public val color: Int?,
|
||||
public val pinned_peers: List<TlGen_InputPeer>,
|
||||
public val include_peers: List<TlGen_InputPeer>,
|
||||
public val exclude_peers: List<TlGen_InputPeer>,
|
||||
) : TlGen_DialogFilter() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (contacts) result = result or 1U
|
||||
if (non_contacts) result = result or 2U
|
||||
if (groups) result = result or 4U
|
||||
if (broadcasts) result = result or 8U
|
||||
if (bots) result = result or 16U
|
||||
if (exclude_muted) result = result or 2048U
|
||||
if (exclude_read) result = result or 4096U
|
||||
if (exclude_archived) result = result or 8192U
|
||||
if (emoticon != null) result = result or 33554432U
|
||||
if (color != null) result = result or 134217728U
|
||||
if (title_noanimate) result = result or 268435456U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(id)
|
||||
title.serializeToStream(stream)
|
||||
emoticon?.let { stream.writeString(it) }
|
||||
color?.let { stream.writeInt32(it) }
|
||||
TlGen_Vector.serialize(stream, pinned_peers)
|
||||
TlGen_Vector.serialize(stream, include_peers)
|
||||
TlGen_Vector.serialize(stream, exclude_peers)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xAA472651U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_dialogFilterChatlist(
|
||||
public val has_my_invites: Boolean,
|
||||
public val title_noanimate: Boolean,
|
||||
public val id: Int,
|
||||
public val title: TlGen_TextWithEntities,
|
||||
public val emoticon: String?,
|
||||
public val color: Int?,
|
||||
public val pinned_peers: List<TlGen_InputPeer>,
|
||||
public val include_peers: List<TlGen_InputPeer>,
|
||||
) : TlGen_DialogFilter() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (emoticon != null) result = result or 33554432U
|
||||
if (has_my_invites) result = result or 67108864U
|
||||
if (color != null) result = result or 134217728U
|
||||
if (title_noanimate) result = result or 268435456U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(id)
|
||||
title.serializeToStream(stream)
|
||||
emoticon?.let { stream.writeString(it) }
|
||||
color?.let { stream.writeInt32(it) }
|
||||
TlGen_Vector.serialize(stream, pinned_peers)
|
||||
TlGen_Vector.serialize(stream, include_peers)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x96537BD7U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DialogFilterSuggested : TlGen_Object {
|
||||
public data class TL_dialogFilterSuggested(
|
||||
public val filter: TlGen_DialogFilter,
|
||||
public val description: String,
|
||||
) : TlGen_DialogFilterSuggested() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
filter.serializeToStream(stream)
|
||||
stream.writeString(description)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x77744D4AU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DialogPeer : TlGen_Object {
|
||||
public data class TL_dialogPeer(
|
||||
public val peer: TlGen_Peer,
|
||||
) : TlGen_DialogPeer() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
peer.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xE56DBF05U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_dialogPeerFolder(
|
||||
public val folder_id: Int,
|
||||
) : TlGen_DialogPeer() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(folder_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x514519E2U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DisallowedGiftsSettings : TlGen_Object {
|
||||
public data class TL_disallowedGiftsSettings(
|
||||
public val disallow_unlimited_stargifts: Boolean,
|
||||
public val disallow_limited_stargifts: Boolean,
|
||||
public val disallow_unique_stargifts: Boolean,
|
||||
public val disallow_premium_gifts: Boolean,
|
||||
public val disallow_stargifts_from_channels: Boolean,
|
||||
) : TlGen_DisallowedGiftsSettings() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (disallow_unlimited_stargifts) result = result or 1U
|
||||
if (disallow_limited_stargifts) result = result or 2U
|
||||
if (disallow_unique_stargifts) result = result or 4U
|
||||
if (disallow_premium_gifts) result = result or 8U
|
||||
if (disallow_stargifts_from_channels) result = result or 16U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x71F276C4U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,257 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Byte
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_Document : TlGen_Object {
|
||||
public data class TL_documentEmpty(
|
||||
public val id: Long,
|
||||
) : TlGen_Document() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x36F8C871U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_document(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val file_reference: List<Byte>,
|
||||
public val date: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Long,
|
||||
public val thumbs: List<TlGen_PhotoSize>?,
|
||||
public val video_thumbs: List<TlGen_VideoSize>?,
|
||||
public val dc_id: Int,
|
||||
public val attributes: List<TlGen_DocumentAttribute>,
|
||||
) : TlGen_Document() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (thumbs != null) result = result or 1U
|
||||
if (video_thumbs != null) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt64(access_hash)
|
||||
stream.writeByteArray(file_reference.toByteArray())
|
||||
stream.writeInt32(date)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt64(size)
|
||||
thumbs?.let { TlGen_Vector.serialize(stream, it) }
|
||||
video_thumbs?.let { TlGen_Vector.serialize(stream, it) }
|
||||
stream.writeInt32(dc_id)
|
||||
TlGen_Vector.serialize(stream, attributes)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x8FD4C4D8U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_document_layer21(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val user_id: Int,
|
||||
public val date: Int,
|
||||
public val file_name: String,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val thumb: TlGen_PhotoSize,
|
||||
public val dc_id: Int,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt64(access_hash)
|
||||
stream.writeInt32(user_id)
|
||||
stream.writeInt32(date)
|
||||
stream.writeString(file_name)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt32(size)
|
||||
thumb.serializeToStream(stream)
|
||||
stream.writeInt32(dc_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x9EFC6326U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_document_layer53(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val date: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val thumb: TlGen_PhotoSize,
|
||||
public val dc_id: Int,
|
||||
public val attributes: List<TlGen_DocumentAttribute>,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt64(access_hash)
|
||||
stream.writeInt32(date)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt32(size)
|
||||
thumb.serializeToStream(stream)
|
||||
stream.writeInt32(dc_id)
|
||||
TlGen_Vector.serialize(stream, attributes)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xF9A39F4FU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_document_layer85(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val date: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val thumb: TlGen_PhotoSize,
|
||||
public val dc_id: Int,
|
||||
public val version: Int,
|
||||
public val attributes: List<TlGen_DocumentAttribute>,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
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(version)
|
||||
TlGen_Vector.serialize(stream, attributes)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x87232BC7U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_document_layer92(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val file_reference: List<Byte>,
|
||||
public val date: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val thumb: TlGen_PhotoSize,
|
||||
public val dc_id: Int,
|
||||
public val attributes: List<TlGen_DocumentAttribute>,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt64(access_hash)
|
||||
stream.writeByteArray(file_reference.toByteArray())
|
||||
stream.writeInt32(date)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt32(size)
|
||||
thumb.serializeToStream(stream)
|
||||
stream.writeInt32(dc_id)
|
||||
TlGen_Vector.serialize(stream, attributes)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x59534E4CU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_document_layer113(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val file_reference: List<Byte>,
|
||||
public val date: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val thumbs: List<TlGen_PhotoSize>?,
|
||||
public val dc_id: Int,
|
||||
public val attributes: List<TlGen_DocumentAttribute>,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (thumbs != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt64(access_hash)
|
||||
stream.writeByteArray(file_reference.toByteArray())
|
||||
stream.writeInt32(date)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt32(size)
|
||||
thumbs?.let { TlGen_Vector.serialize(stream, it) }
|
||||
stream.writeInt32(dc_id)
|
||||
TlGen_Vector.serialize(stream, attributes)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x9BA29CC1U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_document_layer142(
|
||||
public val id: Long,
|
||||
public val access_hash: Long,
|
||||
public val file_reference: List<Byte>,
|
||||
public val date: Int,
|
||||
public val mime_type: String,
|
||||
public val size: Int,
|
||||
public val thumbs: List<TlGen_PhotoSize>?,
|
||||
public val video_thumbs: List<TlGen_VideoSize>?,
|
||||
public val dc_id: Int,
|
||||
public val attributes: List<TlGen_DocumentAttribute>,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (thumbs != null) result = result or 1U
|
||||
if (video_thumbs != null) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt64(id)
|
||||
stream.writeInt64(access_hash)
|
||||
stream.writeByteArray(file_reference.toByteArray())
|
||||
stream.writeInt32(date)
|
||||
stream.writeString(mime_type)
|
||||
stream.writeInt32(size)
|
||||
thumbs?.let { TlGen_Vector.serialize(stream, it) }
|
||||
video_thumbs?.let { TlGen_Vector.serialize(stream, it) }
|
||||
stream.writeInt32(dc_id)
|
||||
TlGen_Vector.serialize(stream, attributes)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1E87342BU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,361 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Byte
|
||||
import kotlin.Double
|
||||
import kotlin.Int
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DocumentAttribute : TlGen_Object {
|
||||
public data class TL_documentAttributeImageSize(
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
) : TlGen_DocumentAttribute() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(w)
|
||||
stream.writeInt32(h)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x6C37C15CU
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_documentAttributeAnimated : TlGen_DocumentAttribute() {
|
||||
public const val MAGIC: UInt = 0x11B58939U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeFilename(
|
||||
public val file_name: String,
|
||||
) : TlGen_DocumentAttribute() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(file_name)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x15590068U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeAudio(
|
||||
public val voice: Boolean,
|
||||
public val duration: Int,
|
||||
public val title: String?,
|
||||
public val performer: String?,
|
||||
public val waveform: List<Byte>?,
|
||||
) : TlGen_DocumentAttribute() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (title != null) result = result or 1U
|
||||
if (performer != null) result = result or 2U
|
||||
if (waveform != null) result = result or 4U
|
||||
if (voice) result = result or 1024U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(duration)
|
||||
title?.let { stream.writeString(it) }
|
||||
performer?.let { stream.writeString(it) }
|
||||
waveform?.let { stream.writeByteArray(it.toByteArray()) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x9852F9C6U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeSticker(
|
||||
public val mask: Boolean,
|
||||
public val alt: String,
|
||||
public val stickerset: TlGen_InputStickerSet,
|
||||
public val mask_coords: TlGen_MaskCoords?,
|
||||
) : TlGen_DocumentAttribute() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (mask_coords != null) result = result or 1U
|
||||
if (mask) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(alt)
|
||||
stickerset.serializeToStream(stream)
|
||||
mask_coords?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x6319D612U
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_documentAttributeHasStickers : TlGen_DocumentAttribute() {
|
||||
public const val MAGIC: UInt = 0x9801D2F7U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeCustomEmoji(
|
||||
public val free: Boolean,
|
||||
public val text_color: Boolean,
|
||||
public val alt: String,
|
||||
public val stickerset: TlGen_InputStickerSet,
|
||||
) : TlGen_DocumentAttribute() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (free) result = result or 1U
|
||||
if (text_color) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeString(alt)
|
||||
stickerset.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xFD149899U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeVideo(
|
||||
public val round_message: Boolean,
|
||||
public val supports_streaming: Boolean,
|
||||
public val nosound: Boolean,
|
||||
public val duration: Double,
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
public val preload_prefix_size: Int?,
|
||||
public val video_start_ts: Double?,
|
||||
public val video_codec: String?,
|
||||
) : TlGen_DocumentAttribute() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (round_message) result = result or 1U
|
||||
if (supports_streaming) result = result or 2U
|
||||
if (preload_prefix_size != null) result = result or 4U
|
||||
if (nosound) result = result or 8U
|
||||
if (video_start_ts != null) result = result or 16U
|
||||
if (video_codec != null) result = result or 32U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeDouble(duration)
|
||||
stream.writeInt32(w)
|
||||
stream.writeInt32(h)
|
||||
preload_prefix_size?.let { stream.writeInt32(it) }
|
||||
video_start_ts?.let { stream.writeDouble(it) }
|
||||
video_codec?.let { stream.writeString(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x43C57C48U
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_documentAttributeSticker_layer24 : TlGen_Object {
|
||||
public const val MAGIC: UInt = 0xFB0A5727U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeVideo_layer65(
|
||||
public val duration: Int,
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(duration)
|
||||
stream.writeInt32(w)
|
||||
stream.writeInt32(h)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5910CCCBU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeAudio_layer31(
|
||||
public val duration: Int,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(duration)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x051448E5U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeSticker_layer28(
|
||||
public val alt: String,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(alt)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x994C9882U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeSticker_layer55(
|
||||
public val alt: String,
|
||||
public val stickerset: TlGen_InputStickerSet,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(alt)
|
||||
stickerset.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x3A556302U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeAudio_layer45(
|
||||
public val duration: Int,
|
||||
public val title: String,
|
||||
public val performer: String,
|
||||
) : TlGen_Object {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(duration)
|
||||
stream.writeString(title)
|
||||
stream.writeString(performer)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xDED218E0U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeVideo_layer159(
|
||||
public val round_message: Boolean,
|
||||
public val supports_streaming: Boolean,
|
||||
public val duration: Int,
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (round_message) result = result or 1U
|
||||
if (supports_streaming) result = result or 2U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeInt32(duration)
|
||||
stream.writeInt32(w)
|
||||
stream.writeInt32(h)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x0EF02CE6U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeVideo_layer184(
|
||||
public val round_message: Boolean,
|
||||
public val supports_streaming: Boolean,
|
||||
public val nosound: Boolean,
|
||||
public val duration: Double,
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
public val preload_prefix_size: Int?,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (round_message) result = result or 1U
|
||||
if (supports_streaming) result = result or 2U
|
||||
if (preload_prefix_size != null) result = result or 4U
|
||||
if (nosound) result = result or 8U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeDouble(duration)
|
||||
stream.writeInt32(w)
|
||||
stream.writeInt32(h)
|
||||
preload_prefix_size?.let { stream.writeInt32(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xD38FF1C2U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_documentAttributeVideo_layer187(
|
||||
public val round_message: Boolean,
|
||||
public val supports_streaming: Boolean,
|
||||
public val nosound: Boolean,
|
||||
public val duration: Double,
|
||||
public val w: Int,
|
||||
public val h: Int,
|
||||
public val preload_prefix_size: Int?,
|
||||
public val video_start_ts: Double?,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (round_message) result = result or 1U
|
||||
if (supports_streaming) result = result or 2U
|
||||
if (preload_prefix_size != null) result = result or 4U
|
||||
if (nosound) result = result or 8U
|
||||
if (video_start_ts != null) result = result or 16U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
stream.writeDouble(duration)
|
||||
stream.writeInt32(w)
|
||||
stream.writeInt32(h)
|
||||
preload_prefix_size?.let { stream.writeInt32(it) }
|
||||
video_start_ts?.let { stream.writeDouble(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x17399FADU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,178 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Boolean
|
||||
import kotlin.Int
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_DraftMessage : TlGen_Object {
|
||||
public data class TL_draftMessageEmpty(
|
||||
public val date: Int?,
|
||||
) : TlGen_DraftMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (date != null) result = result or 1U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
date?.let { stream.writeInt32(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x1B0C841AU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_draftMessage(
|
||||
public val no_webpage: Boolean,
|
||||
public val invert_media: Boolean,
|
||||
public val reply_to: TlGen_InputReplyTo?,
|
||||
public val message: String,
|
||||
public val entities: List<TlGen_MessageEntity>?,
|
||||
public val media: TlGen_InputMedia?,
|
||||
public val date: Int,
|
||||
public val effect: Long?,
|
||||
public val suggested_post: TlGen_SuggestedPost?,
|
||||
) : TlGen_DraftMessage() {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (no_webpage) result = result or 2U
|
||||
if (entities != null) result = result or 8U
|
||||
if (reply_to != null) result = result or 16U
|
||||
if (media != null) result = result or 32U
|
||||
if (invert_media) result = result or 64U
|
||||
if (effect != null) result = result or 128U
|
||||
if (suggested_post != null) result = result or 256U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
reply_to?.serializeToStream(stream)
|
||||
stream.writeString(message)
|
||||
entities?.let { TlGen_Vector.serialize(stream, it) }
|
||||
media?.serializeToStream(stream)
|
||||
stream.writeInt32(date)
|
||||
effect?.let { stream.writeInt64(it) }
|
||||
suggested_post?.serializeToStream(stream)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x96EAA5EBU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_draftMessage_layer165(
|
||||
public val no_webpage: Boolean,
|
||||
public val reply_to_msg_id: Int?,
|
||||
public val message: String,
|
||||
public val entities: List<TlGen_MessageEntity>?,
|
||||
public val date: Int,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (reply_to_msg_id != null) result = result or 1U
|
||||
if (no_webpage) result = result or 2U
|
||||
if (entities != null) result = result or 8U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
reply_to_msg_id?.let { stream.writeInt32(it) }
|
||||
stream.writeString(message)
|
||||
entities?.let { TlGen_Vector.serialize(stream, it) }
|
||||
stream.writeInt32(date)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xFD8E711FU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_draftMessage_layer181(
|
||||
public val no_webpage: Boolean,
|
||||
public val invert_media: Boolean,
|
||||
public val reply_to: TlGen_InputReplyTo?,
|
||||
public val message: String,
|
||||
public val entities: List<TlGen_MessageEntity>?,
|
||||
public val media: TlGen_InputMedia?,
|
||||
public val date: Int,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (no_webpage) result = result or 2U
|
||||
if (entities != null) result = result or 8U
|
||||
if (reply_to != null) result = result or 16U
|
||||
if (media != null) result = result or 32U
|
||||
if (invert_media) result = result or 64U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
reply_to?.serializeToStream(stream)
|
||||
stream.writeString(message)
|
||||
entities?.let { TlGen_Vector.serialize(stream, it) }
|
||||
media?.serializeToStream(stream)
|
||||
stream.writeInt32(date)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x3FCCF7EFU
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_draftMessage_layer205(
|
||||
public val no_webpage: Boolean,
|
||||
public val invert_media: Boolean,
|
||||
public val reply_to: TlGen_InputReplyTo?,
|
||||
public val message: String,
|
||||
public val entities: List<TlGen_MessageEntity>?,
|
||||
public val media: TlGen_InputMedia?,
|
||||
public val date: Int,
|
||||
public val effect: Long?,
|
||||
) : TlGen_Object {
|
||||
internal val flags: UInt
|
||||
get() {
|
||||
var result = 0U
|
||||
if (no_webpage) result = result or 2U
|
||||
if (entities != null) result = result or 8U
|
||||
if (reply_to != null) result = result or 16U
|
||||
if (media != null) result = result or 32U
|
||||
if (invert_media) result = result or 64U
|
||||
if (effect != null) result = result or 128U
|
||||
return result
|
||||
}
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeInt32(flags.toInt())
|
||||
reply_to?.serializeToStream(stream)
|
||||
stream.writeString(message)
|
||||
entities?.let { TlGen_Vector.serialize(stream, it) }
|
||||
media?.serializeToStream(stream)
|
||||
stream.writeInt32(date)
|
||||
effect?.let { stream.writeInt64(it) }
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x2D65321FU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_EmailVerification : TlGen_Object {
|
||||
public data class TL_emailVerificationCode(
|
||||
public val code: String,
|
||||
) : TlGen_EmailVerification() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(code)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x922E55A9U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_emailVerificationGoogle(
|
||||
public val token: String,
|
||||
) : TlGen_EmailVerification() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(token)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xDB909EC2U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_emailVerificationApple(
|
||||
public val token: String,
|
||||
) : TlGen_EmailVerification() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(token)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x96D074FDU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_EmailVerifyPurpose : TlGen_Object {
|
||||
public data class TL_emailVerifyPurposeLoginSetup(
|
||||
public val phone_number: String,
|
||||
public val phone_code_hash: String,
|
||||
) : TlGen_EmailVerifyPurpose() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(phone_number)
|
||||
stream.writeString(phone_code_hash)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x4345BE73U
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_emailVerifyPurposeLoginChange : TlGen_EmailVerifyPurpose() {
|
||||
public const val MAGIC: UInt = 0x527D22EBU
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
public data object TL_emailVerifyPurposePassport : TlGen_EmailVerifyPurpose() {
|
||||
public const val MAGIC: UInt = 0xBBF51685U
|
||||
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Long
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_EmojiGroup : TlGen_Object {
|
||||
public data class TL_emojiGroup(
|
||||
public val title: String,
|
||||
public val icon_emoji_id: Long,
|
||||
public val emoticons: List<String>,
|
||||
) : TlGen_EmojiGroup() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(title)
|
||||
stream.writeInt64(icon_emoji_id)
|
||||
TlGen_Vector.serializeString(stream, emoticons)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x7A9ABDA9U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_emojiGroupGreeting(
|
||||
public val title: String,
|
||||
public val icon_emoji_id: Long,
|
||||
public val emoticons: List<String>,
|
||||
) : TlGen_EmojiGroup() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(title)
|
||||
stream.writeInt64(icon_emoji_id)
|
||||
TlGen_Vector.serializeString(stream, emoticons)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x80D26CC7U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_emojiGroupPremium(
|
||||
public val title: String,
|
||||
public val icon_emoji_id: Long,
|
||||
) : TlGen_EmojiGroup() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(title)
|
||||
stream.writeInt64(icon_emoji_id)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x093BCF34U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_EmojiKeyword : TlGen_Object {
|
||||
public data class TL_emojiKeyword(
|
||||
public val keyword: String,
|
||||
public val emoticons: List<String>,
|
||||
) : TlGen_EmojiKeyword() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(keyword)
|
||||
TlGen_Vector.serializeString(stream, emoticons)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xD5B3B9F9U
|
||||
}
|
||||
}
|
||||
|
||||
public data class TL_emojiKeywordDeleted(
|
||||
public val keyword: String,
|
||||
public val emoticons: List<String>,
|
||||
) : TlGen_EmojiKeyword() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(keyword)
|
||||
TlGen_Vector.serializeString(stream, emoticons)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x236DF622U
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.Int
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import kotlin.collections.List
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_EmojiKeywordsDifference : TlGen_Object {
|
||||
public data class TL_emojiKeywordsDifference(
|
||||
public val lang_code: String,
|
||||
public val from_version: Int,
|
||||
public val version: Int,
|
||||
public val keywords: List<TlGen_EmojiKeyword>,
|
||||
) : TlGen_EmojiKeywordsDifference() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(lang_code)
|
||||
stream.writeInt32(from_version)
|
||||
stream.writeInt32(version)
|
||||
TlGen_Vector.serialize(stream, keywords)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0x5CC761BDU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package org.telegram.tgnet.model.generated
|
||||
|
||||
import kotlin.String
|
||||
import kotlin.UInt
|
||||
import org.telegram.tgnet.OutputSerializedData
|
||||
import org.telegram.tgnet.model.TlGen_Object
|
||||
import org.telegram.tgnet.model.TlGen_Vector
|
||||
|
||||
public sealed class TlGen_EmojiLanguage : TlGen_Object {
|
||||
public data class TL_emojiLanguage(
|
||||
public val lang_code: String,
|
||||
) : TlGen_EmojiLanguage() {
|
||||
public override fun serializeToStream(stream: OutputSerializedData) {
|
||||
stream.writeInt32(MAGIC.toInt())
|
||||
stream.writeString(lang_code)
|
||||
}
|
||||
|
||||
public companion object {
|
||||
public const val MAGIC: UInt = 0xB3FB5361U
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue