commit 972912c0409f2b24e57a15f43ab84b447a9b346b
Author: jarvis2f <137974272+jarvis2f@users.noreply.github.com>
Date: Sun Dec 15 19:46:49 2024 +0800
🎉 First commit.
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..79551d4
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,150 @@
+### JetBrains template
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
+
+# User-specific stuff
+.idea/**/workspace.xml
+.idea/**/tasks.xml
+.idea/**/usage.statistics.xml
+.idea/**/dictionaries
+.idea/**/shelf
+
+# AWS User-specific
+.idea/**/aws.xml
+
+# Generated files
+.idea/**/contentModel.xml
+
+# Sensitive or high-churn files
+.idea/**/dataSources/
+.idea/**/dataSources.ids
+.idea/**/dataSources.local.xml
+.idea/**/sqlDataSources.xml
+.idea/**/dynamic.xml
+.idea/**/uiDesigner.xml
+.idea/**/dbnavigator.xml
+
+# Gradle
+.idea/**/gradle.xml
+.idea/**/libraries
+
+# Gradle and Maven with auto-import
+# When using Gradle or Maven with auto-import, you should exclude module files,
+# since they will be recreated, and may cause churn. Uncomment if using
+# auto-import.
+# .idea/artifacts
+# .idea/compiler.xml
+# .idea/jarRepositories.xml
+# .idea/modules.xml
+# .idea/*.iml
+# .idea/modules
+# *.iml
+# *.ipr
+
+# CMake
+cmake-build-*/
+
+# Mongo Explorer plugin
+.idea/**/mongoSettings.xml
+
+# File-based project format
+*.iws
+
+# IntelliJ
+out/
+
+# mpeltonen/sbt-idea plugin
+.idea_modules/
+
+# JIRA plugin
+atlassian-ide-plugin.xml
+
+# Cursive Clojure plugin
+.idea/replstate.xml
+
+# SonarLint plugin
+.idea/sonarlint/
+
+# Crashlytics plugin (for Android Studio and IntelliJ)
+com_crashlytics_export_strings.xml
+crashlytics.properties
+crashlytics-build.properties
+fabric.properties
+
+# Editor-based Rest Client
+.idea/httpRequests
+
+# Android studio 3.1+ serialized cache file
+.idea/caches/build_file_checksums.ser
+
+
+### Gradle template
+api/.gradle
+api/build
+!src/**/build/
+
+# Ignore Gradle GUI config
+api/gradle-app.setting
+
+# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
+api/!gradle-wrapper.jar
+
+# Avoid ignore Gradle wrappper properties
+api/!gradle-wrapper.properties
+
+# Cache of project
+api/.gradletasknamecache
+
+# Eclipse Gradle plugin generated files
+# Eclipse Core
+api/.project
+# JDT-specific (Eclipse Java Development Tools)
+api/.classpath
+
+
+### NextJS template
+# dependencies
+web/node_modules
+web/.pnp
+web/.pnp.js
+
+# testing
+web/coverage
+
+# next.js
+web/.next/
+web/out/
+
+# production
+web/build
+
+# misc
+.DS_Store
+*.pem
+
+# debug
+web/npm-debug.log*
+web/yarn-debug.log*
+web/yarn-error.log*
+web/.pnpm-debug.log*
+
+# local env files
+web/.env*.local
+web/.env
+
+# vercel
+web/.vercel
+
+# typescript
+web/*.tsbuildinfo
+web/next-env.d.ts
+
+
+
+**/*.iml
+app/
+
+**/.env.*
+!**/.env.example
+api.log.lck
+http-client.private.env.json
diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..1776b75
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,8 @@
+
+# The root directory of the application
+APP_ENV=dev
+APP_ROOT=
+TDLIB_PATH=
+
+TELEGRAM_API_ID=
+TELEGRAM_API_HASH=
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
new file mode 100644
index 0000000..7cbc15d
--- /dev/null
+++ b/.github/workflows/docker-publish.yml
@@ -0,0 +1,74 @@
+name: Docker
+
+on:
+ push:
+ branches:
+ - "dev"
+ release:
+ types: [published]
+
+env:
+ REGISTRY: ghcr.io
+ IMAGE_NAME: ${{ github.repository }}
+
+jobs:
+ build:
+ runs-on: 'ubuntu-24.04'
+ permissions:
+ contents: read
+ packages: write
+ id-token: write
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Docker Setup QEMU
+ uses: docker/setup-qemu-action@v3.0.0
+
+ # Set up BuildKit Docker container builder to be able to build
+ # multi-platform images and export cache
+ # https://github.com/docker/setup-buildx-action
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3.2.0
+# with:
+# buildkitd-config-inline: |
+# [worker.oci]
+# max-parallelism = 1
+
+ # Login against a Docker registry except on PR
+ # https://github.com/docker/login-action
+ - name: Login to registry ${{ env.REGISTRY }}
+ if: github.event_name != 'pull_request'
+ uses: docker/login-action@v3.1.0
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ # Extract metadata (tags, labels) for Docker
+ # https://github.com/docker/metadata-action
+ - name: Extract Docker metadata
+ id: meta
+ uses: docker/metadata-action@v5.5.1
+ with:
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
+ tags: |
+ type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') }}
+ type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') }}
+ type=ref,event=branch
+
+ # Build and push Docker image with Buildx
+ # https://github.com/docker/build-push-action
+ - name: Build and push Docker image
+ id: build-and-push
+ uses: docker/build-push-action@v6.10.0
+ with:
+ push: true
+ context: .
+ file: Dockerfile
+ platforms: linux/amd64,linux/arm64
+ tags: ${{ steps.meta.outputs.tags }}
+ labels: ${{ steps.meta.outputs.labels }}
+ cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
+ cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0fac399
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,17 @@
+.idea/
+**/*.iml
+*.iws
+
+out/
+*/.gradle
+**/*build*/
+
+app/
+app-test/
+
+**/*.log
+api.log.lck
+**/.env.*
+!**/.env.example
+
+http-client.private.env.json
diff --git a/BUILD_TDLIB.md b/BUILD_TDLIB.md
new file mode 100644
index 0000000..a574b99
--- /dev/null
+++ b/BUILD_TDLIB.md
@@ -0,0 +1,70 @@
+1. **安装命令行工具**:
+ ```bash
+ xcode-select --install
+ ```
+ 安装 macOS 的命令行开发工具(包括 `clang`、`make` 等)。
+
+2. **安装 Homebrew**:
+ ```bash
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+ ```
+ 下载并安装 Homebrew,一个包管理器,用于安装依赖软件。
+
+3. **安装必要的软件包**:
+ ```bash
+ brew install gperf cmake openssl coreutils
+ brew install openjdk
+ ```
+ - `gperf`:生成完美哈希函数的工具。
+ - `cmake`:跨平台的构建工具。
+ - `openssl`:用于安全通信的加密库。
+ - `coreutils`:GNU 核心实用工具,提供了 `greadlink` 等命令。
+ - `openjdk`:Java 开发工具包。
+
+4. **克隆 TDLib 仓库**:
+ ```bash
+ git clone https://github.com/tdlib/td.git
+ cd td
+ ```
+ 下载 TDLib 的源码。
+
+5. **创建和清理构建目录**:
+ ```bash
+ rm -rf build
+ mkdir build
+ cd build
+ ```
+ 确保构建环境干净无误。
+
+6. **配置和构建库**:
+ ```bash
+ cmake -DCMAKE_BUILD_TYPE=Release -DJAVA_HOME=/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home/ -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl/ -DCMAKE_INSTALL_PREFIX:PATH=../example/java/td -DTD_ENABLE_JNI=ON ..
+ cmake --build . --target install
+ ```
+ - `-DCMAKE_BUILD_TYPE=Release`:构建为发布版本。
+ - `-DJAVA_HOME` 和 `-DOPENSSL_ROOT_DIR`:指定 OpenJDK 和 OpenSSL 的路径。
+ - `-DCMAKE_INSTALL_PREFIX`:指定安装路径。
+ - `-DTD_ENABLE_JNI=ON`:启用 Java JNI 接口。
+ - 构建并安装到指定目录。
+
+7. **构建 Java 示例项目**:
+ ```bash
+ cd ..
+ cd example/java
+ rm -rf build
+ mkdir build
+ cd build
+ cmake -DCMAKE_BUILD_TYPE=Release -DJAVA_HOME=/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home/ -DCMAKE_INSTALL_PREFIX:PATH=../../../tdlib -DTd_DIR:PATH=$(greadlink -e ../td/lib/cmake/Td) ..
+ cmake --build . --target install
+ ```
+ 使用 TDLib 构建 Java 示例程序,`-DTd_DIR` 指向 TDLib 的 cmake 文件路径。
+
+8. **验证安装结果**:
+ ```bash
+ cd ../../..
+ cd ..
+ ls -l td/tdlib
+ ```
+ 查看生成的文件是否存在,确认构建和安装是否成功。
+
+完成以上步骤后,`td/tdlib` 目录下应该包含构建好的库文件。
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..7c58a48
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,102 @@
+# 多阶段构建:第一阶段用于构建 API 应用程序
+FROM gradle:8.10-jdk21-alpine AS api-builder
+
+# 设置工作目录
+WORKDIR /app
+
+# 将 API 项目的所有文件拷贝到容器中
+COPY ./api .
+
+# 使用 Gradle 构建项目
+RUN gradle shadowJar --no-daemon
+
+# 提取构建的 jar 文件
+RUN mkdir -p /app/build/libs && \
+ cp /app/build/libs/*.jar /app/api.jar
+
+# 使用 jdeps 分析依赖
+RUN jdeps --print-module-deps --ignore-missing-deps /app/api.jar > /app/dependencies.txt
+
+# 第二阶段:创建定制化的 JRE
+FROM openjdk:21-jdk-slim AS runtime-builder
+
+# 设置工作目录
+WORKDIR /custom-jre
+
+# 通过 jlink 创建最小化的 JRE
+COPY --from=api-builder /app/dependencies.txt /custom-jre/dependencies.txt
+RUN apt-get update && apt-get install binutils -y && \
+ jlink \
+ --add-modules $(cat /custom-jre/dependencies.txt) \
+ --output /custom-jre/jre \
+ --strip-debug \
+ --no-man-pages \
+ --no-header-files \
+ --compress=2
+
+# 第三阶段:构建 Web 前端
+FROM node:21 AS web-builder
+
+ENV NEXT_PUBLIC_API_URL=/api
+ENV NEXT_PUBLIC_WS_URL=/ws
+ENV NEXT_TELEMETRY_DISABLED=1
+ENV SKIP_ENV_VALIDATION=1
+
+# 设置工作目录
+WORKDIR /web
+
+# 安装依赖
+COPY ./web/package.json ./web/package-lock.json ./
+RUN npm install --frozen-lockfile
+
+# 将 Web 项目的所有文件拷贝到容器中
+COPY ./web .
+
+# 构建 Next.js 应用
+RUN npm run build
+
+# 第四阶段:最终运行镜像
+FROM node:21-slim AS final
+
+WORKDIR /app
+
+RUN npm install pm2 -g \
+ && apt-get update && apt-get install -y --no-install-recommends nginx wget unzip \
+ && if [ "$(uname -m)" = "x86_64" ]; then \
+ wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb && \
+ dpkg -i libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb && \
+ rm libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb; \
+ elif [ "$(uname -m)" = "aarch64" ]; then \
+ wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb && \
+ dpkg -i libssl1.1_1.1.1f-1ubuntu2_arm64.deb && \
+ rm libssl1.1_1.1.1f-1ubuntu2_arm64.deb; \
+ else \
+ echo "Unsupported architecture: $(uname -m)"; \
+ exit 1; \
+ fi \
+ && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*;
+
+# 拷贝定制化的 JRE
+COPY --from=runtime-builder /custom-jre/jre /jre
+
+# 设置环境变量
+ENV JAVA_HOME=/jre
+ENV PATH="$JAVA_HOME/bin:$PATH"
+
+# 拷贝 API 应用程序
+COPY --from=api-builder /app/api.jar /app/api.jar
+
+# 拷贝 Web 前端静态文件到 nginx
+COPY --from=web-builder /web/public /app/web/public
+COPY --from=web-builder /web/.next/standalone /app/web/
+COPY --from=web-builder /web/.next/static /app/web/.next/static
+
+COPY ./web/pm2.json /app/web/pm2.json
+COPY ./entrypoint.sh ./entrypoint.sh
+COPY ./nginx.conf /etc/nginx/nginx.conf
+
+# 暴露服务端口
+EXPOSE 80
+
+# 启动服务
+CMD ["/bin/sh", "./entrypoint.sh"]
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..29d36fa
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 jarvis2f
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d284c49
--- /dev/null
+++ b/README.md
@@ -0,0 +1,165 @@
+
+
+
+Telegram Files
+
+ A simple telegram file downloader.
+
+
+
+
+
+
+
+
+
+## 🔗 Table of Contents
+
+- [📍 Overview](#-overview)
+- [🧩 Screenshots](#-screenshots)
+- [🚀 Getting Started](#-getting-started)
+ - [☑️ Prerequisites](#-prerequisites)
+ - [⚙️ Installation](#-installation)
+ - [🤖 Usage](#🤖-usage)
+- [📌 Project Roadmap](#-project-roadmap)
+- [🔰 Contributing](#-contributing)
+- [🎗 License](#-license)
+
+---
+
+## 📍 Overview
+
+* Support for downloading files from telegram channels and groups.
+* Support multiple telegram accounts for downloading files.
+* Support suspending and resuming downloads.
+* Multiple accounts with same files will be downloaded only once.
+
+---
+
+## 🧩 Screenshots
+
+
+
+
+
+## 🚀 Getting Started
+
+### ☑️ Prerequisites
+
+Before getting started with telegram-files, ensure your runtime environment meets the following requirements:
+
+- **Programming Language:** JDK21,TypeScript
+- **Package Manager:** Gradle,Npm
+- **Container Runtime:** Docker
+
+### ⚙️ Installation
+
+Install telegram-files using one of the following methods:
+
+**Build from source:**
+
+1. Clone the telegram-files repository:
+
+```sh
+git clone https://github.com/jarvis2f/telegram-files
+```
+
+2. Navigate to the project directory:
+
+```sh
+cd telegram-files
+```
+
+3. Install the project dependencies:
+
+**Using `npm`**
+ [
](https://www.npmjs.com/)
+
+```sh
+cd web
+npm install
+```
+
+**Using `gradle`**
+ [
](https://gradle.org/)
+
+```sh
+cd api
+gradle build
+```
+
+**Using `docker`**
+ [
](https://www.docker.com/)
+
+```sh
+docker build -t jarvis2f/telegram-files .
+```
+
+### 🤖 Usage
+
+**Using `docker`**
+ [
](https://www.docker.com/)
+
+Copy [docker-compose.yaml](docker-compose.yaml) to your project directory and run the following command:
+
+```sh
+docker-compose up -d
+```
+
+> **Important Note:** You should NOT expose the service to the public internet. Because the service is not secure.
+---
+
+## 📌 Project Roadmap
+
+- [ ] **`Task 1`**: Improve Telegram’s login functionality.
+- [ ] **`Task 2`**: Support auto transfer files to other destinations.
+- [ ] **`Task 3`**: Automatically download files based on set rules.
+- [ ] **`Task 4`**: Download statistics and reports.
+
+---
+
+## 🔰 Contributing
+
+- **💬 [Join the Discussions](https://github.com/jarvis2f/telegram-files/discussions)**: Share your insights, provide
+ feedback, or ask questions.
+- **🐛 [Report Issues](https://github.com/jarvis2f/telegram-files/issues)**: Submit bugs found or log feature requests
+ for the `telegram-files` project.
+- **💡 [Submit Pull Requests](https://github.com/jarvis2f/telegram-files/blob/main/CONTRIBUTING.md)**: Review open PRs,
+ and submit your own PRs.
+
+
+Contributing Guidelines
+
+1. **Fork the Repository**: Start by forking the project repository to your github account.
+2. **Clone Locally**: Clone the forked repository to your local machine using a git client.
+ ```sh
+ git clone https://github.com/jarvis2f/telegram-files
+ ```
+3. **Create a New Branch**: Always work on a new branch, giving it a descriptive name.
+ ```sh
+ git checkout -b new-feature-x
+ ```
+4. **Make Your Changes**: Develop and test your changes locally.
+5. **Commit Your Changes**: Commit with a clear message describing your updates.
+ ```sh
+ git commit -m 'Implemented new feature x.'
+ ```
+6. **Push to github**: Push the changes to your forked repository.
+ ```sh
+ git push origin new-feature-x
+ ```
+7. **Submit a Pull Request**: Create a PR against the original project repository. Clearly describe the changes and
+ their motivations.
+8. **Review**: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your
+ contribution!
+
+
+
+---
+
+## 🎗 License
+
+This project is protected under the MIT License. For more details,
+refer to the [LICENSE](LICENSE) file.
+
+---
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..77d6f4c
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.0.0
diff --git a/api/build.gradle b/api/build.gradle
new file mode 100644
index 0000000..5988050
--- /dev/null
+++ b/api/build.gradle
@@ -0,0 +1,83 @@
+plugins {
+ id 'java'
+ id 'com.gradleup.shadow' version '8.3.5'
+}
+
+group = 'telegram.files'
+version = '0.0.0'
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ implementation 'io.vertx:vertx-core:4.5.11'
+ implementation 'io.vertx:vertx-web:4.5.11'
+ implementation 'io.vertx:vertx-jdbc-client:4.5.11'
+ implementation 'io.vertx:vertx-sql-client-templates:4.5.11'
+ implementation 'io.vertx:vertx-health-check:4.5.11'
+ implementation 'org.xerial:sqlite-jdbc:3.47.1.0'
+ implementation 'io.agroal:agroal-api:1.16'
+ implementation 'io.agroal:agroal-pool:1.16'
+ implementation 'cn.hutool:hutool-core:5.8.34'
+ implementation 'cn.hutool:hutool-log:5.8.34'
+ implementation 'org.jooq:jool:0.9.15'
+ implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.3'
+
+ testImplementation 'io.vertx:vertx-junit5:4.5.11'
+ testImplementation platform('org.junit:junit-bom:5.10.0')
+ testImplementation 'org.junit.jupiter:junit-jupiter'
+}
+
+test {
+ def envFile = file('../.env.test')
+ if (envFile.exists()) {
+ doFirst {
+ envFile.eachLine {
+ if (!it.startsWith("#") && !it.isEmpty()) {
+ def (key, value) = it.tokenize('=')
+ environment key, value
+ }
+ return
+ }
+ }
+ }
+ jvmArgs "-Djava.library.path=${System.getenv('TDLIB_PATH')}"
+ environment "APP_ROOT", "${testClassesDirs.asPath}"
+ useJUnitPlatform()
+}
+
+tasks.build {
+ dependsOn shadowJar
+}
+
+shadowJar {
+ archiveBaseName.set('telegram-files')
+ archiveClassifier.set('')
+ archiveVersion.set('')
+ manifest {
+ attributes(
+ 'Main-Class': 'telegram.files.Start'
+ )
+ }
+}
+
+tasks.named('jar') {
+ manifest {
+ attributes(
+ 'Implementation-Title': project.name,
+ 'Implementation-Version': project.version,
+ 'Built-By': System.getProperty('user.name'),
+ 'Build-Time': new Date().format('yyyy-MM-dd HH:mm:ss'),
+ 'Git-Commit': getGitCommit()
+ )
+ }
+}
+
+static def getGitCommit() {
+ try {
+ return 'git rev-parse --short HEAD'.execute().text.trim()
+ } catch (ignored) {
+ return 'unknown'
+ }
+}
diff --git a/api/gradle/wrapper/gradle-wrapper.jar b/api/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..249e583
Binary files /dev/null and b/api/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/api/gradle/wrapper/gradle-wrapper.properties b/api/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..db09df6
--- /dev/null
+++ b/api/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Tue Nov 26 18:12:21 CST 2024
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/api/gradlew b/api/gradlew
new file mode 100755
index 0000000..1b6c787
--- /dev/null
+++ b/api/gradlew
@@ -0,0 +1,234 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+# Collect all arguments for the java command;
+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+# shell script including quotes and variable substitutions, so put them in
+# double quotes to make sure that they get re-expanded; and
+# * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/api/gradlew.bat b/api/gradlew.bat
new file mode 100644
index 0000000..107acd3
--- /dev/null
+++ b/api/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/api/settings.gradle b/api/settings.gradle
new file mode 100644
index 0000000..198b632
--- /dev/null
+++ b/api/settings.gradle
@@ -0,0 +1,2 @@
+rootProject.name = 'api'
+
diff --git a/api/src/main/java/org/drinkless/tdlib/Client.java b/api/src/main/java/org/drinkless/tdlib/Client.java
new file mode 100644
index 0000000..2156937
--- /dev/null
+++ b/api/src/main/java/org/drinkless/tdlib/Client.java
@@ -0,0 +1,259 @@
+//
+// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2024
+//
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+package org.drinkless.tdlib;
+
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.atomic.AtomicLong;
+
+/**
+ * Main class for interaction with the TDLib.
+ */
+public final class Client {
+ static {
+ try {
+ System.loadLibrary("tdjni");
+ } catch (UnsatisfiedLinkError e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Interface for handler for results of queries to TDLib and incoming updates from TDLib.
+ */
+ public interface ResultHandler {
+ /**
+ * Callback called on result of query to TDLib or incoming update from TDLib.
+ *
+ * @param object Result of query or update of type TdApi.Update about new events.
+ */
+ void onResult(TdApi.Object object);
+ }
+
+ /**
+ * Interface for handler of exceptions thrown while invoking ResultHandler.
+ * By default, all such exceptions are ignored.
+ * All exceptions thrown from ExceptionHandler are ignored.
+ */
+ public interface ExceptionHandler {
+ /**
+ * Callback called on exceptions thrown while invoking ResultHandler.
+ *
+ * @param e Exception thrown by ResultHandler.
+ */
+ void onException(Throwable e);
+ }
+
+ /**
+ * Interface for handler of messages that are added to the internal TDLib log.
+ */
+ public interface LogMessageHandler {
+ /**
+ * Callback called on messages that are added to the internal TDLib log.
+ *
+ * @param verbosityLevel Log verbosity level with which the message was added from -1 up to 1024.
+ * If 0, then TDLib will crash as soon as the callback returns.
+ * None of the TDLib methods can be called from the callback.
+ * @param message The message added to the internal TDLib log.
+ */
+ void onLogMessage(int verbosityLevel, String message);
+ }
+
+ /**
+ * Exception class thrown when TDLib error occurred while performing {@link #execute(TdApi.Function)}.
+ */
+ public static class ExecutionException extends Exception {
+ /**
+ * Original TDLib error occurred when performing one of the synchronous functions.
+ */
+ public final TdApi.Error error;
+
+ /**
+ * @param error TDLib error occurred while performing {@link #execute(TdApi.Function)}.
+ */
+ ExecutionException (TdApi.Error error) {
+ super(error.code + ": " + error.message);
+ this.error = error;
+ }
+ }
+
+ /**
+ * Sends a request to the TDLib.
+ *
+ * @param query Object representing a query to the TDLib.
+ * @param resultHandler Result handler with onResult method which will be called with result
+ * of the query or with TdApi.Error as parameter. If it is null, nothing
+ * will be called.
+ * @param exceptionHandler Exception handler with onException method which will be called on
+ * exception thrown from resultHandler. If it is null, then
+ * defaultExceptionHandler will be called.
+ */
+ public void send(TdApi.Function query, ResultHandler resultHandler, ExceptionHandler exceptionHandler) {
+ long queryId = currentQueryId.incrementAndGet();
+ if (resultHandler != null) {
+ handlers.put(queryId, new Handler(resultHandler, exceptionHandler));
+ }
+ nativeClientSend(nativeClientId, queryId, query);
+ }
+
+ /**
+ * Sends a request to the TDLib with an empty ExceptionHandler.
+ *
+ * @param query Object representing a query to the TDLib.
+ * @param resultHandler Result handler with onResult method which will be called with result
+ * of the query or with TdApi.Error as parameter. If it is null, then
+ * defaultExceptionHandler will be called.
+ */
+ public void send(TdApi.Function query, ResultHandler resultHandler) {
+ send(query, resultHandler, null);
+ }
+
+ /**
+ * Synchronously executes a TDLib request. Only a few marked accordingly requests can be executed synchronously.
+ *
+ * @param query Object representing a query to the TDLib.
+ * @param Automatically deduced return type of the query.
+ * @return request result.
+ * @throws ExecutionException if query execution fails.
+ */
+ @SuppressWarnings("unchecked")
+ public static T execute(TdApi.Function query) throws ExecutionException {
+ TdApi.Object object = nativeClientExecute(query);
+ if (object instanceof TdApi.Error) {
+ throw new ExecutionException((TdApi.Error) object);
+ }
+ return (T) object;
+ }
+
+ /**
+ * Creates new Client.
+ *
+ * @param updateHandler Handler for incoming updates.
+ * @param updateExceptionHandler Handler for exceptions thrown from updateHandler. If it is null, exceptions will be ignored.
+ * @param defaultExceptionHandler Default handler for exceptions thrown from all ResultHandler. If it is null, exceptions will be ignored.
+ * @return created Client
+ */
+ public static Client create(ResultHandler updateHandler, ExceptionHandler updateExceptionHandler, ExceptionHandler defaultExceptionHandler) {
+ Client client = new Client(updateHandler, updateExceptionHandler, defaultExceptionHandler);
+ synchronized (responseReceiver) {
+ if (!responseReceiver.isRun) {
+ responseReceiver.isRun = true;
+
+ Thread receiverThread = new Thread(responseReceiver, "TDLib thread");
+ receiverThread.setDaemon(true);
+ receiverThread.start();
+ }
+ }
+ return client;
+ }
+
+ /**
+ * Sets the handler for messages that are added to the internal TDLib log.
+ * None of the TDLib methods can be called from the callback.
+ *
+ * @param maxVerbosityLevel The maximum verbosity level of messages for which the callback will be called.
+ * @param logMessageHandler Handler for messages that are added to the internal TDLib log. Pass null to remove the handler.
+ */
+ public static void setLogMessageHandler(int maxVerbosityLevel, LogMessageHandler logMessageHandler) {
+ nativeClientSetLogMessageHandler(maxVerbosityLevel, logMessageHandler);
+ }
+
+ private static class ResponseReceiver implements Runnable {
+ public boolean isRun = false;
+
+ @Override
+ public void run() {
+ while (true) {
+ int resultN = nativeClientReceive(clientIds, eventIds, events, 100000.0 /*seconds*/);
+ for (int i = 0; i < resultN; i++) {
+ processResult(clientIds[i], eventIds[i], events[i]);
+ events[i] = null;
+ }
+ }
+ }
+
+ private void processResult(int clientId, long id, TdApi.Object object) {
+ boolean isClosed = false;
+ if (id == 0 && object instanceof TdApi.UpdateAuthorizationState) {
+ TdApi.AuthorizationState authorizationState = ((TdApi.UpdateAuthorizationState) object).authorizationState;
+ if (authorizationState instanceof TdApi.AuthorizationStateClosed) {
+ isClosed = true;
+ }
+ }
+
+ Handler handler = id == 0 ? updateHandlers.get(clientId) : handlers.remove(id);
+ if (handler != null) {
+ try {
+ handler.resultHandler.onResult(object);
+ } catch (Throwable cause) {
+ ExceptionHandler exceptionHandler = handler.exceptionHandler;
+ if (exceptionHandler == null) {
+ exceptionHandler = defaultExceptionHandlers.get(clientId);
+ }
+ if (exceptionHandler != null) {
+ try {
+ exceptionHandler.onException(cause);
+ } catch (Throwable ignored) {
+ }
+ }
+ }
+ }
+
+ if (isClosed) {
+ updateHandlers.remove(clientId); // there will be no more updates
+ defaultExceptionHandlers.remove(clientId); // ignore further exceptions
+ clientCount.decrementAndGet();
+ }
+ }
+
+ private static final int MAX_EVENTS = 1000;
+ private final int[] clientIds = new int[MAX_EVENTS];
+ private final long[] eventIds = new long[MAX_EVENTS];
+ private final TdApi.Object[] events = new TdApi.Object[MAX_EVENTS];
+ }
+
+ private final int nativeClientId;
+
+ private static final ConcurrentHashMap defaultExceptionHandlers = new ConcurrentHashMap();
+ private static final ConcurrentHashMap updateHandlers = new ConcurrentHashMap();
+ private static final ConcurrentHashMap handlers = new ConcurrentHashMap();
+ private static final AtomicLong currentQueryId = new AtomicLong();
+ private static final AtomicLong clientCount = new AtomicLong();
+
+ private static final ResponseReceiver responseReceiver = new ResponseReceiver();
+
+ private static class Handler {
+ final ResultHandler resultHandler;
+ final ExceptionHandler exceptionHandler;
+
+ Handler(ResultHandler resultHandler, ExceptionHandler exceptionHandler) {
+ this.resultHandler = resultHandler;
+ this.exceptionHandler = exceptionHandler;
+ }
+ }
+
+ private Client(ResultHandler updateHandler, ExceptionHandler updateExceptionHandler, ExceptionHandler defaultExceptionHandler) {
+ clientCount.incrementAndGet();
+ nativeClientId = createNativeClient();
+ if (updateHandler != null) {
+ updateHandlers.put(nativeClientId, new Handler(updateHandler, updateExceptionHandler));
+ }
+ if (defaultExceptionHandler != null) {
+ defaultExceptionHandlers.put(nativeClientId, defaultExceptionHandler);
+ }
+ send(new TdApi.GetOption("version"), null, null);
+ }
+
+ private static native int createNativeClient();
+
+ private static native void nativeClientSend(int nativeClientId, long eventId, TdApi.Function function);
+
+ private static native int nativeClientReceive(int[] clientIds, long[] eventIds, TdApi.Object[] events, double timeout);
+
+ private static native TdApi.Object nativeClientExecute(TdApi.Function function);
+
+ private static native void nativeClientSetLogMessageHandler(int maxVerbosityLevel, LogMessageHandler logMessageHandler);
+}
diff --git a/api/src/main/java/org/drinkless/tdlib/TdApi.java b/api/src/main/java/org/drinkless/tdlib/TdApi.java
new file mode 100644
index 0000000..d39e50c
--- /dev/null
+++ b/api/src/main/java/org/drinkless/tdlib/TdApi.java
@@ -0,0 +1,54183 @@
+package org.drinkless.tdlib;
+
+public class TdApi {
+
+ private static final String GIT_COMMIT_HASH = "eb98bbe611e1132f98914e4cd4e2c727079cc84d";
+
+ private TdApi() {
+ }
+
+ public abstract static class Object {
+
+ public Object() {
+ }
+
+ public native String toString();
+
+ public abstract int getConstructor();
+ }
+
+ public abstract static class Function extends Object {
+
+ public Function() {
+ }
+
+ public native String toString();
+ }
+
+ public static class AccentColor extends Object {
+
+ public int id;
+
+ public int builtInAccentColorId;
+
+ public int[] lightThemeColors;
+
+ public int[] darkThemeColors;
+
+ public int minChannelChatBoostLevel;
+
+ public AccentColor() {
+ }
+
+ public AccentColor(int id, int builtInAccentColorId, int[] lightThemeColors, int[] darkThemeColors, int minChannelChatBoostLevel) {
+ this.id = id;
+ this.builtInAccentColorId = builtInAccentColorId;
+ this.lightThemeColors = lightThemeColors;
+ this.darkThemeColors = darkThemeColors;
+ this.minChannelChatBoostLevel = minChannelChatBoostLevel;
+ }
+
+ public static final int CONSTRUCTOR = -496870680;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AccountTtl extends Object {
+
+ public int days;
+
+ public AccountTtl() {
+ }
+
+ public AccountTtl(int days) {
+ this.days = days;
+ }
+
+ public static final int CONSTRUCTOR = 1324495492;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddedReaction extends Object {
+
+ public ReactionType type;
+
+ public MessageSender senderId;
+
+ public boolean isOutgoing;
+
+ public int date;
+
+ public AddedReaction() {
+ }
+
+ public AddedReaction(ReactionType type, MessageSender senderId, boolean isOutgoing, int date) {
+ this.type = type;
+ this.senderId = senderId;
+ this.isOutgoing = isOutgoing;
+ this.date = date;
+ }
+
+ public static final int CONSTRUCTOR = 1258586525;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddedReactions extends Object {
+
+ public int totalCount;
+
+ public AddedReaction[] reactions;
+
+ public String nextOffset;
+
+ public AddedReactions() {
+ }
+
+ public AddedReactions(int totalCount, AddedReaction[] reactions, String nextOffset) {
+ this.totalCount = totalCount;
+ this.reactions = reactions;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 226352304;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Address extends Object {
+
+ public String countryCode;
+
+ public String state;
+
+ public String city;
+
+ public String streetLine1;
+
+ public String streetLine2;
+
+ public String postalCode;
+
+ public Address() {
+ }
+
+ public Address(String countryCode, String state, String city, String streetLine1, String streetLine2, String postalCode) {
+ this.countryCode = countryCode;
+ this.state = state;
+ this.city = city;
+ this.streetLine1 = streetLine1;
+ this.streetLine2 = streetLine2;
+ this.postalCode = postalCode;
+ }
+
+ public static final int CONSTRUCTOR = -2043654342;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AffiliateInfo extends Object {
+
+ public int commissionPerMille;
+
+ public long affiliateChatId;
+
+ public StarAmount starAmount;
+
+ public AffiliateInfo() {
+ }
+
+ public AffiliateInfo(int commissionPerMille, long affiliateChatId, StarAmount starAmount) {
+ this.commissionPerMille = commissionPerMille;
+ this.affiliateChatId = affiliateChatId;
+ this.starAmount = starAmount;
+ }
+
+ public static final int CONSTRUCTOR = -1312695046;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AffiliateProgramInfo extends Object {
+
+ public AffiliateProgramParameters parameters;
+
+ public int endDate;
+
+ public StarAmount dailyRevenuePerUserAmount;
+
+ public AffiliateProgramInfo() {
+ }
+
+ public AffiliateProgramInfo(AffiliateProgramParameters parameters, int endDate, StarAmount dailyRevenuePerUserAmount) {
+ this.parameters = parameters;
+ this.endDate = endDate;
+ this.dailyRevenuePerUserAmount = dailyRevenuePerUserAmount;
+ }
+
+ public static final int CONSTRUCTOR = -1761810251;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AffiliateProgramParameters extends Object {
+
+ public int commissionPerMille;
+
+ public int monthCount;
+
+ public AffiliateProgramParameters() {
+ }
+
+ public AffiliateProgramParameters(int commissionPerMille, int monthCount) {
+ this.commissionPerMille = commissionPerMille;
+ this.monthCount = monthCount;
+ }
+
+ public static final int CONSTRUCTOR = 1642662996;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class AffiliateProgramSortOrder extends Object {
+
+ public AffiliateProgramSortOrder() {
+ }
+ }
+
+ public static class AffiliateProgramSortOrderProfitability extends AffiliateProgramSortOrder {
+ public AffiliateProgramSortOrderProfitability() {
+ }
+
+ public static final int CONSTRUCTOR = -1963282585;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AffiliateProgramSortOrderCreationDate extends AffiliateProgramSortOrder {
+ public AffiliateProgramSortOrderCreationDate() {
+ }
+
+ public static final int CONSTRUCTOR = -1558628083;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AffiliateProgramSortOrderRevenue extends AffiliateProgramSortOrder {
+ public AffiliateProgramSortOrderRevenue() {
+ }
+
+ public static final int CONSTRUCTOR = 1923269304;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AlternativeVideo extends Object {
+
+ public int width;
+
+ public int height;
+
+ public String codec;
+
+ public File hlsFile;
+
+ public File video;
+
+ public AlternativeVideo() {
+ }
+
+ public AlternativeVideo(int width, int height, String codec, File hlsFile, File video) {
+ this.width = width;
+ this.height = height;
+ this.codec = codec;
+ this.hlsFile = hlsFile;
+ this.video = video;
+ }
+
+ public static final int CONSTRUCTOR = -1076216909;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AnimatedChatPhoto extends Object {
+
+ public int length;
+
+ public File file;
+
+ public double mainFrameTimestamp;
+
+ public AnimatedChatPhoto() {
+ }
+
+ public AnimatedChatPhoto(int length, File file, double mainFrameTimestamp) {
+ this.length = length;
+ this.file = file;
+ this.mainFrameTimestamp = mainFrameTimestamp;
+ }
+
+ public static final int CONSTRUCTOR = 191994926;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AnimatedEmoji extends Object {
+
+ public Sticker sticker;
+
+ public int stickerWidth;
+
+ public int stickerHeight;
+
+ public int fitzpatrickType;
+
+ public File sound;
+
+ public AnimatedEmoji() {
+ }
+
+ public AnimatedEmoji(Sticker sticker, int stickerWidth, int stickerHeight, int fitzpatrickType, File sound) {
+ this.sticker = sticker;
+ this.stickerWidth = stickerWidth;
+ this.stickerHeight = stickerHeight;
+ this.fitzpatrickType = fitzpatrickType;
+ this.sound = sound;
+ }
+
+ public static final int CONSTRUCTOR = 1378918079;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Animation extends Object {
+
+ public int duration;
+
+ public int width;
+
+ public int height;
+
+ public String fileName;
+
+ public String mimeType;
+
+ public boolean hasStickers;
+
+ public Minithumbnail minithumbnail;
+
+ public Thumbnail thumbnail;
+
+ public File animation;
+
+ public Animation() {
+ }
+
+ public Animation(int duration, int width, int height, String fileName, String mimeType, boolean hasStickers, Minithumbnail minithumbnail, Thumbnail thumbnail, File animation) {
+ this.duration = duration;
+ this.width = width;
+ this.height = height;
+ this.fileName = fileName;
+ this.mimeType = mimeType;
+ this.hasStickers = hasStickers;
+ this.minithumbnail = minithumbnail;
+ this.thumbnail = thumbnail;
+ this.animation = animation;
+ }
+
+ public static final int CONSTRUCTOR = -872359106;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Animations extends Object {
+
+ public Animation[] animations;
+
+ public Animations() {
+ }
+
+ public Animations(Animation[] animations) {
+ this.animations = animations;
+ }
+
+ public static final int CONSTRUCTOR = 344216945;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ArchiveChatListSettings extends Object {
+
+ public boolean archiveAndMuteNewChatsFromUnknownUsers;
+
+ public boolean keepUnmutedChatsArchived;
+
+ public boolean keepChatsFromFoldersArchived;
+
+ public ArchiveChatListSettings() {
+ }
+
+ public ArchiveChatListSettings(boolean archiveAndMuteNewChatsFromUnknownUsers, boolean keepUnmutedChatsArchived, boolean keepChatsFromFoldersArchived) {
+ this.archiveAndMuteNewChatsFromUnknownUsers = archiveAndMuteNewChatsFromUnknownUsers;
+ this.keepUnmutedChatsArchived = keepUnmutedChatsArchived;
+ this.keepChatsFromFoldersArchived = keepChatsFromFoldersArchived;
+ }
+
+ public static final int CONSTRUCTOR = 1058499236;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AttachmentMenuBot extends Object {
+
+ public long botUserId;
+
+ public boolean supportsSelfChat;
+
+ public boolean supportsUserChats;
+
+ public boolean supportsBotChats;
+
+ public boolean supportsGroupChats;
+
+ public boolean supportsChannelChats;
+
+ public boolean requestWriteAccess;
+
+ public boolean isAdded;
+
+ public boolean showInAttachmentMenu;
+
+ public boolean showInSideMenu;
+
+ public boolean showDisclaimerInSideMenu;
+
+ public String name;
+
+ public AttachmentMenuBotColor nameColor;
+
+ public File defaultIcon;
+
+ public File iosStaticIcon;
+
+ public File iosAnimatedIcon;
+
+ public File iosSideMenuIcon;
+
+ public File androidIcon;
+
+ public File androidSideMenuIcon;
+
+ public File macosIcon;
+
+ public File macosSideMenuIcon;
+
+ public AttachmentMenuBotColor iconColor;
+
+ public File webAppPlaceholder;
+
+ public AttachmentMenuBot() {
+ }
+
+ public AttachmentMenuBot(long botUserId, boolean supportsSelfChat, boolean supportsUserChats, boolean supportsBotChats, boolean supportsGroupChats, boolean supportsChannelChats, boolean requestWriteAccess, boolean isAdded, boolean showInAttachmentMenu, boolean showInSideMenu, boolean showDisclaimerInSideMenu, String name, AttachmentMenuBotColor nameColor, File defaultIcon, File iosStaticIcon, File iosAnimatedIcon, File iosSideMenuIcon, File androidIcon, File androidSideMenuIcon, File macosIcon, File macosSideMenuIcon, AttachmentMenuBotColor iconColor, File webAppPlaceholder) {
+ this.botUserId = botUserId;
+ this.supportsSelfChat = supportsSelfChat;
+ this.supportsUserChats = supportsUserChats;
+ this.supportsBotChats = supportsBotChats;
+ this.supportsGroupChats = supportsGroupChats;
+ this.supportsChannelChats = supportsChannelChats;
+ this.requestWriteAccess = requestWriteAccess;
+ this.isAdded = isAdded;
+ this.showInAttachmentMenu = showInAttachmentMenu;
+ this.showInSideMenu = showInSideMenu;
+ this.showDisclaimerInSideMenu = showDisclaimerInSideMenu;
+ this.name = name;
+ this.nameColor = nameColor;
+ this.defaultIcon = defaultIcon;
+ this.iosStaticIcon = iosStaticIcon;
+ this.iosAnimatedIcon = iosAnimatedIcon;
+ this.iosSideMenuIcon = iosSideMenuIcon;
+ this.androidIcon = androidIcon;
+ this.androidSideMenuIcon = androidSideMenuIcon;
+ this.macosIcon = macosIcon;
+ this.macosSideMenuIcon = macosSideMenuIcon;
+ this.iconColor = iconColor;
+ this.webAppPlaceholder = webAppPlaceholder;
+ }
+
+ public static final int CONSTRUCTOR = -1183966273;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AttachmentMenuBotColor extends Object {
+
+ public int lightColor;
+
+ public int darkColor;
+
+ public AttachmentMenuBotColor() {
+ }
+
+ public AttachmentMenuBotColor(int lightColor, int darkColor) {
+ this.lightColor = lightColor;
+ this.darkColor = darkColor;
+ }
+
+ public static final int CONSTRUCTOR = 1680039612;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Audio extends Object {
+
+ public int duration;
+
+ public String title;
+
+ public String performer;
+
+ public String fileName;
+
+ public String mimeType;
+
+ public Minithumbnail albumCoverMinithumbnail;
+
+ public Thumbnail albumCoverThumbnail;
+
+ public Thumbnail[] externalAlbumCovers;
+
+ public File audio;
+
+ public Audio() {
+ }
+
+ public Audio(int duration, String title, String performer, String fileName, String mimeType, Minithumbnail albumCoverMinithumbnail, Thumbnail albumCoverThumbnail, Thumbnail[] externalAlbumCovers, File audio) {
+ this.duration = duration;
+ this.title = title;
+ this.performer = performer;
+ this.fileName = fileName;
+ this.mimeType = mimeType;
+ this.albumCoverMinithumbnail = albumCoverMinithumbnail;
+ this.albumCoverThumbnail = albumCoverThumbnail;
+ this.externalAlbumCovers = externalAlbumCovers;
+ this.audio = audio;
+ }
+
+ public static final int CONSTRUCTOR = -166398841;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthenticationCodeInfo extends Object {
+
+ public String phoneNumber;
+
+ public AuthenticationCodeType type;
+
+ public AuthenticationCodeType nextType;
+
+ public int timeout;
+
+ public AuthenticationCodeInfo() {
+ }
+
+ public AuthenticationCodeInfo(String phoneNumber, AuthenticationCodeType type, AuthenticationCodeType nextType, int timeout) {
+ this.phoneNumber = phoneNumber;
+ this.type = type;
+ this.nextType = nextType;
+ this.timeout = timeout;
+ }
+
+ public static final int CONSTRUCTOR = -860345416;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class AuthenticationCodeType extends Object {
+
+ public AuthenticationCodeType() {
+ }
+ }
+
+ public static class AuthenticationCodeTypeTelegramMessage extends AuthenticationCodeType {
+
+ public int length;
+
+ public AuthenticationCodeTypeTelegramMessage() {
+ }
+
+ public AuthenticationCodeTypeTelegramMessage(int length) {
+ this.length = length;
+ }
+
+ public static final int CONSTRUCTOR = 2079628074;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthenticationCodeTypeSms extends AuthenticationCodeType {
+
+ public int length;
+
+ public AuthenticationCodeTypeSms() {
+ }
+
+ public AuthenticationCodeTypeSms(int length) {
+ this.length = length;
+ }
+
+ public static final int CONSTRUCTOR = 962650760;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthenticationCodeTypeSmsWord extends AuthenticationCodeType {
+
+ public String firstLetter;
+
+ public AuthenticationCodeTypeSmsWord() {
+ }
+
+ public AuthenticationCodeTypeSmsWord(String firstLetter) {
+ this.firstLetter = firstLetter;
+ }
+
+ public static final int CONSTRUCTOR = -1509540765;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthenticationCodeTypeSmsPhrase extends AuthenticationCodeType {
+
+ public String firstWord;
+
+ public AuthenticationCodeTypeSmsPhrase() {
+ }
+
+ public AuthenticationCodeTypeSmsPhrase(String firstWord) {
+ this.firstWord = firstWord;
+ }
+
+ public static final int CONSTRUCTOR = 784108753;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthenticationCodeTypeCall extends AuthenticationCodeType {
+
+ public int length;
+
+ public AuthenticationCodeTypeCall() {
+ }
+
+ public AuthenticationCodeTypeCall(int length) {
+ this.length = length;
+ }
+
+ public static final int CONSTRUCTOR = 1636265063;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthenticationCodeTypeFlashCall extends AuthenticationCodeType {
+
+ public String pattern;
+
+ public AuthenticationCodeTypeFlashCall() {
+ }
+
+ public AuthenticationCodeTypeFlashCall(String pattern) {
+ this.pattern = pattern;
+ }
+
+ public static final int CONSTRUCTOR = 1395882402;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthenticationCodeTypeMissedCall extends AuthenticationCodeType {
+
+ public String phoneNumberPrefix;
+
+ public int length;
+
+ public AuthenticationCodeTypeMissedCall() {
+ }
+
+ public AuthenticationCodeTypeMissedCall(String phoneNumberPrefix, int length) {
+ this.phoneNumberPrefix = phoneNumberPrefix;
+ this.length = length;
+ }
+
+ public static final int CONSTRUCTOR = 700123783;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthenticationCodeTypeFragment extends AuthenticationCodeType {
+
+ public String url;
+
+ public int length;
+
+ public AuthenticationCodeTypeFragment() {
+ }
+
+ public AuthenticationCodeTypeFragment(String url, int length) {
+ this.url = url;
+ this.length = length;
+ }
+
+ public static final int CONSTRUCTOR = -2129693491;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthenticationCodeTypeFirebaseAndroid extends AuthenticationCodeType {
+
+ public FirebaseDeviceVerificationParameters deviceVerificationParameters;
+
+ public int length;
+
+ public AuthenticationCodeTypeFirebaseAndroid() {
+ }
+
+ public AuthenticationCodeTypeFirebaseAndroid(FirebaseDeviceVerificationParameters deviceVerificationParameters, int length) {
+ this.deviceVerificationParameters = deviceVerificationParameters;
+ this.length = length;
+ }
+
+ public static final int CONSTRUCTOR = 1872475422;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthenticationCodeTypeFirebaseIos extends AuthenticationCodeType {
+
+ public String receipt;
+
+ public int pushTimeout;
+
+ public int length;
+
+ public AuthenticationCodeTypeFirebaseIos() {
+ }
+
+ public AuthenticationCodeTypeFirebaseIos(String receipt, int pushTimeout, int length) {
+ this.receipt = receipt;
+ this.pushTimeout = pushTimeout;
+ this.length = length;
+ }
+
+ public static final int CONSTRUCTOR = -11162989;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class AuthorizationState extends Object {
+
+ public AuthorizationState() {
+ }
+ }
+
+ public static class AuthorizationStateWaitTdlibParameters extends AuthorizationState {
+ public AuthorizationStateWaitTdlibParameters() {
+ }
+
+ public static final int CONSTRUCTOR = 904720988;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateWaitPhoneNumber extends AuthorizationState {
+ public AuthorizationStateWaitPhoneNumber() {
+ }
+
+ public static final int CONSTRUCTOR = 306402531;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateWaitEmailAddress extends AuthorizationState {
+
+ public boolean allowAppleId;
+
+ public boolean allowGoogleId;
+
+ public AuthorizationStateWaitEmailAddress() {
+ }
+
+ public AuthorizationStateWaitEmailAddress(boolean allowAppleId, boolean allowGoogleId) {
+ this.allowAppleId = allowAppleId;
+ this.allowGoogleId = allowGoogleId;
+ }
+
+ public static final int CONSTRUCTOR = 1040478663;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateWaitEmailCode extends AuthorizationState {
+
+ public boolean allowAppleId;
+
+ public boolean allowGoogleId;
+
+ public EmailAddressAuthenticationCodeInfo codeInfo;
+
+ public EmailAddressResetState emailAddressResetState;
+
+ public AuthorizationStateWaitEmailCode() {
+ }
+
+ public AuthorizationStateWaitEmailCode(boolean allowAppleId, boolean allowGoogleId, EmailAddressAuthenticationCodeInfo codeInfo, EmailAddressResetState emailAddressResetState) {
+ this.allowAppleId = allowAppleId;
+ this.allowGoogleId = allowGoogleId;
+ this.codeInfo = codeInfo;
+ this.emailAddressResetState = emailAddressResetState;
+ }
+
+ public static final int CONSTRUCTOR = -1868627365;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateWaitCode extends AuthorizationState {
+
+ public AuthenticationCodeInfo codeInfo;
+
+ public AuthorizationStateWaitCode() {
+ }
+
+ public AuthorizationStateWaitCode(AuthenticationCodeInfo codeInfo) {
+ this.codeInfo = codeInfo;
+ }
+
+ public static final int CONSTRUCTOR = 52643073;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateWaitOtherDeviceConfirmation extends AuthorizationState {
+
+ public String link;
+
+ public AuthorizationStateWaitOtherDeviceConfirmation() {
+ }
+
+ public AuthorizationStateWaitOtherDeviceConfirmation(String link) {
+ this.link = link;
+ }
+
+ public static final int CONSTRUCTOR = 860166378;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateWaitRegistration extends AuthorizationState {
+
+ public TermsOfService termsOfService;
+
+ public AuthorizationStateWaitRegistration() {
+ }
+
+ public AuthorizationStateWaitRegistration(TermsOfService termsOfService) {
+ this.termsOfService = termsOfService;
+ }
+
+ public static final int CONSTRUCTOR = 550350511;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateWaitPassword extends AuthorizationState {
+
+ public String passwordHint;
+
+ public boolean hasRecoveryEmailAddress;
+
+ public boolean hasPassportData;
+
+ public String recoveryEmailAddressPattern;
+
+ public AuthorizationStateWaitPassword() {
+ }
+
+ public AuthorizationStateWaitPassword(String passwordHint, boolean hasRecoveryEmailAddress, boolean hasPassportData, String recoveryEmailAddressPattern) {
+ this.passwordHint = passwordHint;
+ this.hasRecoveryEmailAddress = hasRecoveryEmailAddress;
+ this.hasPassportData = hasPassportData;
+ this.recoveryEmailAddressPattern = recoveryEmailAddressPattern;
+ }
+
+ public static final int CONSTRUCTOR = 112238030;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateReady extends AuthorizationState {
+ public AuthorizationStateReady() {
+ }
+
+ public static final int CONSTRUCTOR = -1834871737;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateLoggingOut extends AuthorizationState {
+ public AuthorizationStateLoggingOut() {
+ }
+
+ public static final int CONSTRUCTOR = 154449270;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateClosing extends AuthorizationState {
+ public AuthorizationStateClosing() {
+ }
+
+ public static final int CONSTRUCTOR = 445855311;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AuthorizationStateClosed extends AuthorizationState {
+ public AuthorizationStateClosed() {
+ }
+
+ public static final int CONSTRUCTOR = 1526047584;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AutoDownloadSettings extends Object {
+
+ public boolean isAutoDownloadEnabled;
+
+ public int maxPhotoFileSize;
+
+ public long maxVideoFileSize;
+
+ public long maxOtherFileSize;
+
+ public int videoUploadBitrate;
+
+ public boolean preloadLargeVideos;
+
+ public boolean preloadNextAudio;
+
+ public boolean preloadStories;
+
+ public boolean useLessDataForCalls;
+
+ public AutoDownloadSettings() {
+ }
+
+ public AutoDownloadSettings(boolean isAutoDownloadEnabled, int maxPhotoFileSize, long maxVideoFileSize, long maxOtherFileSize, int videoUploadBitrate, boolean preloadLargeVideos, boolean preloadNextAudio, boolean preloadStories, boolean useLessDataForCalls) {
+ this.isAutoDownloadEnabled = isAutoDownloadEnabled;
+ this.maxPhotoFileSize = maxPhotoFileSize;
+ this.maxVideoFileSize = maxVideoFileSize;
+ this.maxOtherFileSize = maxOtherFileSize;
+ this.videoUploadBitrate = videoUploadBitrate;
+ this.preloadLargeVideos = preloadLargeVideos;
+ this.preloadNextAudio = preloadNextAudio;
+ this.preloadStories = preloadStories;
+ this.useLessDataForCalls = useLessDataForCalls;
+ }
+
+ public static final int CONSTRUCTOR = 991433696;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AutoDownloadSettingsPresets extends Object {
+
+ public AutoDownloadSettings low;
+
+ public AutoDownloadSettings medium;
+
+ public AutoDownloadSettings high;
+
+ public AutoDownloadSettingsPresets() {
+ }
+
+ public AutoDownloadSettingsPresets(AutoDownloadSettings low, AutoDownloadSettings medium, AutoDownloadSettings high) {
+ this.low = low;
+ this.medium = medium;
+ this.high = high;
+ }
+
+ public static final int CONSTRUCTOR = -782099166;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AutosaveSettings extends Object {
+
+ public ScopeAutosaveSettings privateChatSettings;
+
+ public ScopeAutosaveSettings groupSettings;
+
+ public ScopeAutosaveSettings channelSettings;
+
+ public AutosaveSettingsException[] exceptions;
+
+ public AutosaveSettings() {
+ }
+
+ public AutosaveSettings(ScopeAutosaveSettings privateChatSettings, ScopeAutosaveSettings groupSettings, ScopeAutosaveSettings channelSettings, AutosaveSettingsException[] exceptions) {
+ this.privateChatSettings = privateChatSettings;
+ this.groupSettings = groupSettings;
+ this.channelSettings = channelSettings;
+ this.exceptions = exceptions;
+ }
+
+ public static final int CONSTRUCTOR = 1629412502;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AutosaveSettingsException extends Object {
+
+ public long chatId;
+
+ public ScopeAutosaveSettings settings;
+
+ public AutosaveSettingsException() {
+ }
+
+ public AutosaveSettingsException(long chatId, ScopeAutosaveSettings settings) {
+ this.chatId = chatId;
+ this.settings = settings;
+ }
+
+ public static final int CONSTRUCTOR = 1483470280;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class AutosaveSettingsScope extends Object {
+
+ public AutosaveSettingsScope() {
+ }
+ }
+
+ public static class AutosaveSettingsScopePrivateChats extends AutosaveSettingsScope {
+ public AutosaveSettingsScopePrivateChats() {
+ }
+
+ public static final int CONSTRUCTOR = 1395227007;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AutosaveSettingsScopeGroupChats extends AutosaveSettingsScope {
+ public AutosaveSettingsScopeGroupChats() {
+ }
+
+ public static final int CONSTRUCTOR = 853544526;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AutosaveSettingsScopeChannelChats extends AutosaveSettingsScope {
+ public AutosaveSettingsScopeChannelChats() {
+ }
+
+ public static final int CONSTRUCTOR = -499572783;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AutosaveSettingsScopeChat extends AutosaveSettingsScope {
+
+ public long chatId;
+
+ public AutosaveSettingsScopeChat() {
+ }
+
+ public AutosaveSettingsScopeChat(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = -1632255255;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AvailableReaction extends Object {
+
+ public ReactionType type;
+
+ public boolean needsPremium;
+
+ public AvailableReaction() {
+ }
+
+ public AvailableReaction(ReactionType type, boolean needsPremium) {
+ this.type = type;
+ this.needsPremium = needsPremium;
+ }
+
+ public static final int CONSTRUCTOR = -117292153;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AvailableReactions extends Object {
+
+ public AvailableReaction[] topReactions;
+
+ public AvailableReaction[] recentReactions;
+
+ public AvailableReaction[] popularReactions;
+
+ public boolean allowCustomEmoji;
+
+ public boolean areTags;
+
+ public ReactionUnavailabilityReason unavailabilityReason;
+
+ public AvailableReactions() {
+ }
+
+ public AvailableReactions(AvailableReaction[] topReactions, AvailableReaction[] recentReactions, AvailableReaction[] popularReactions, boolean allowCustomEmoji, boolean areTags, ReactionUnavailabilityReason unavailabilityReason) {
+ this.topReactions = topReactions;
+ this.recentReactions = recentReactions;
+ this.popularReactions = popularReactions;
+ this.allowCustomEmoji = allowCustomEmoji;
+ this.areTags = areTags;
+ this.unavailabilityReason = unavailabilityReason;
+ }
+
+ public static final int CONSTRUCTOR = 912529522;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Background extends Object {
+
+ public long id;
+
+ public boolean isDefault;
+
+ public boolean isDark;
+
+ public String name;
+
+ public Document document;
+
+ public BackgroundType type;
+
+ public Background() {
+ }
+
+ public Background(long id, boolean isDefault, boolean isDark, String name, Document document, BackgroundType type) {
+ this.id = id;
+ this.isDefault = isDefault;
+ this.isDark = isDark;
+ this.name = name;
+ this.document = document;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -429971172;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class BackgroundFill extends Object {
+
+ public BackgroundFill() {
+ }
+ }
+
+ public static class BackgroundFillSolid extends BackgroundFill {
+
+ public int color;
+
+ public BackgroundFillSolid() {
+ }
+
+ public BackgroundFillSolid(int color) {
+ this.color = color;
+ }
+
+ public static final int CONSTRUCTOR = 1010678813;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BackgroundFillGradient extends BackgroundFill {
+
+ public int topColor;
+
+ public int bottomColor;
+
+ public int rotationAngle;
+
+ public BackgroundFillGradient() {
+ }
+
+ public BackgroundFillGradient(int topColor, int bottomColor, int rotationAngle) {
+ this.topColor = topColor;
+ this.bottomColor = bottomColor;
+ this.rotationAngle = rotationAngle;
+ }
+
+ public static final int CONSTRUCTOR = -1839206017;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BackgroundFillFreeformGradient extends BackgroundFill {
+
+ public int[] colors;
+
+ public BackgroundFillFreeformGradient() {
+ }
+
+ public BackgroundFillFreeformGradient(int[] colors) {
+ this.colors = colors;
+ }
+
+ public static final int CONSTRUCTOR = -1145469255;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class BackgroundType extends Object {
+
+ public BackgroundType() {
+ }
+ }
+
+ public static class BackgroundTypeWallpaper extends BackgroundType {
+
+ public boolean isBlurred;
+
+ public boolean isMoving;
+
+ public BackgroundTypeWallpaper() {
+ }
+
+ public BackgroundTypeWallpaper(boolean isBlurred, boolean isMoving) {
+ this.isBlurred = isBlurred;
+ this.isMoving = isMoving;
+ }
+
+ public static final int CONSTRUCTOR = 1972128891;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BackgroundTypePattern extends BackgroundType {
+
+ public BackgroundFill fill;
+
+ public int intensity;
+
+ public boolean isInverted;
+
+ public boolean isMoving;
+
+ public BackgroundTypePattern() {
+ }
+
+ public BackgroundTypePattern(BackgroundFill fill, int intensity, boolean isInverted, boolean isMoving) {
+ this.fill = fill;
+ this.intensity = intensity;
+ this.isInverted = isInverted;
+ this.isMoving = isMoving;
+ }
+
+ public static final int CONSTRUCTOR = 1290213117;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BackgroundTypeFill extends BackgroundType {
+
+ public BackgroundFill fill;
+
+ public BackgroundTypeFill() {
+ }
+
+ public BackgroundTypeFill(BackgroundFill fill) {
+ this.fill = fill;
+ }
+
+ public static final int CONSTRUCTOR = 993008684;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BackgroundTypeChatTheme extends BackgroundType {
+
+ public String themeName;
+
+ public BackgroundTypeChatTheme() {
+ }
+
+ public BackgroundTypeChatTheme(String themeName) {
+ this.themeName = themeName;
+ }
+
+ public static final int CONSTRUCTOR = 1299879762;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Backgrounds extends Object {
+
+ public Background[] backgrounds;
+
+ public Backgrounds() {
+ }
+
+ public Backgrounds(Background[] backgrounds) {
+ this.backgrounds = backgrounds;
+ }
+
+ public static final int CONSTRUCTOR = 724728704;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BankCardActionOpenUrl extends Object {
+
+ public String text;
+
+ public String url;
+
+ public BankCardActionOpenUrl() {
+ }
+
+ public BankCardActionOpenUrl(String text, String url) {
+ this.text = text;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -196454267;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BankCardInfo extends Object {
+
+ public String title;
+
+ public BankCardActionOpenUrl[] actions;
+
+ public BankCardInfo() {
+ }
+
+ public BankCardInfo(String title, BankCardActionOpenUrl[] actions) {
+ this.title = title;
+ this.actions = actions;
+ }
+
+ public static final int CONSTRUCTOR = -2116647730;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BasicGroup extends Object {
+
+ public long id;
+
+ public int memberCount;
+
+ public ChatMemberStatus status;
+
+ public boolean isActive;
+
+ public long upgradedToSupergroupId;
+
+ public BasicGroup() {
+ }
+
+ public BasicGroup(long id, int memberCount, ChatMemberStatus status, boolean isActive, long upgradedToSupergroupId) {
+ this.id = id;
+ this.memberCount = memberCount;
+ this.status = status;
+ this.isActive = isActive;
+ this.upgradedToSupergroupId = upgradedToSupergroupId;
+ }
+
+ public static final int CONSTRUCTOR = -194767217;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BasicGroupFullInfo extends Object {
+
+ public ChatPhoto photo;
+
+ public String description;
+
+ public long creatorUserId;
+
+ public ChatMember[] members;
+
+ public boolean canHideMembers;
+
+ public boolean canToggleAggressiveAntiSpam;
+
+ public ChatInviteLink inviteLink;
+
+ public BotCommands[] botCommands;
+
+ public BasicGroupFullInfo() {
+ }
+
+ public BasicGroupFullInfo(ChatPhoto photo, String description, long creatorUserId, ChatMember[] members, boolean canHideMembers, boolean canToggleAggressiveAntiSpam, ChatInviteLink inviteLink, BotCommands[] botCommands) {
+ this.photo = photo;
+ this.description = description;
+ this.creatorUserId = creatorUserId;
+ this.members = members;
+ this.canHideMembers = canHideMembers;
+ this.canToggleAggressiveAntiSpam = canToggleAggressiveAntiSpam;
+ this.inviteLink = inviteLink;
+ this.botCommands = botCommands;
+ }
+
+ public static final int CONSTRUCTOR = -1879035520;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Birthdate extends Object {
+
+ public int day;
+
+ public int month;
+
+ public int year;
+
+ public Birthdate() {
+ }
+
+ public Birthdate(int day, int month, int year) {
+ this.day = day;
+ this.month = month;
+ this.year = year;
+ }
+
+ public static final int CONSTRUCTOR = 1644064030;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class BlockList extends Object {
+
+ public BlockList() {
+ }
+ }
+
+ public static class BlockListMain extends BlockList {
+ public BlockListMain() {
+ }
+
+ public static final int CONSTRUCTOR = 1352930172;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BlockListStories extends BlockList {
+ public BlockListStories() {
+ }
+
+ public static final int CONSTRUCTOR = 103323228;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotCommand extends Object {
+
+ public String command;
+
+ public String description;
+
+ public BotCommand() {
+ }
+
+ public BotCommand(String command, String description) {
+ this.command = command;
+ this.description = description;
+ }
+
+ public static final int CONSTRUCTOR = -1032140601;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class BotCommandScope extends Object {
+
+ public BotCommandScope() {
+ }
+ }
+
+ public static class BotCommandScopeDefault extends BotCommandScope {
+ public BotCommandScopeDefault() {
+ }
+
+ public static final int CONSTRUCTOR = 795652779;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotCommandScopeAllPrivateChats extends BotCommandScope {
+ public BotCommandScopeAllPrivateChats() {
+ }
+
+ public static final int CONSTRUCTOR = -344889543;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotCommandScopeAllGroupChats extends BotCommandScope {
+ public BotCommandScopeAllGroupChats() {
+ }
+
+ public static final int CONSTRUCTOR = -981088162;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotCommandScopeAllChatAdministrators extends BotCommandScope {
+ public BotCommandScopeAllChatAdministrators() {
+ }
+
+ public static final int CONSTRUCTOR = 1998329169;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotCommandScopeChat extends BotCommandScope {
+
+ public long chatId;
+
+ public BotCommandScopeChat() {
+ }
+
+ public BotCommandScopeChat(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = -430234971;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotCommandScopeChatAdministrators extends BotCommandScope {
+
+ public long chatId;
+
+ public BotCommandScopeChatAdministrators() {
+ }
+
+ public BotCommandScopeChatAdministrators(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = 1119682126;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotCommandScopeChatMember extends BotCommandScope {
+
+ public long chatId;
+
+ public long userId;
+
+ public BotCommandScopeChatMember() {
+ }
+
+ public BotCommandScopeChatMember(long chatId, long userId) {
+ this.chatId = chatId;
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = -211380494;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotCommands extends Object {
+
+ public long botUserId;
+
+ public BotCommand[] commands;
+
+ public BotCommands() {
+ }
+
+ public BotCommands(long botUserId, BotCommand[] commands) {
+ this.botUserId = botUserId;
+ this.commands = commands;
+ }
+
+ public static final int CONSTRUCTOR = 1741364468;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotInfo extends Object {
+
+ public String shortDescription;
+
+ public String description;
+
+ public Photo photo;
+
+ public Animation animation;
+
+ public BotMenuButton menuButton;
+
+ public BotCommand[] commands;
+
+ public String privacyPolicyUrl;
+
+ public ChatAdministratorRights defaultGroupAdministratorRights;
+
+ public ChatAdministratorRights defaultChannelAdministratorRights;
+
+ public AffiliateProgramInfo affiliateProgram;
+
+ public int webAppBackgroundLightColor;
+
+ public int webAppBackgroundDarkColor;
+
+ public int webAppHeaderLightColor;
+
+ public int webAppHeaderDarkColor;
+
+ public boolean canGetRevenueStatistics;
+
+ public boolean canManageEmojiStatus;
+
+ public boolean hasMediaPreviews;
+
+ public InternalLinkType editCommandsLink;
+
+ public InternalLinkType editDescriptionLink;
+
+ public InternalLinkType editDescriptionMediaLink;
+
+ public InternalLinkType editSettingsLink;
+
+ public BotInfo() {
+ }
+
+ public BotInfo(String shortDescription, String description, Photo photo, Animation animation, BotMenuButton menuButton, BotCommand[] commands, String privacyPolicyUrl, ChatAdministratorRights defaultGroupAdministratorRights, ChatAdministratorRights defaultChannelAdministratorRights, AffiliateProgramInfo affiliateProgram, int webAppBackgroundLightColor, int webAppBackgroundDarkColor, int webAppHeaderLightColor, int webAppHeaderDarkColor, boolean canGetRevenueStatistics, boolean canManageEmojiStatus, boolean hasMediaPreviews, InternalLinkType editCommandsLink, InternalLinkType editDescriptionLink, InternalLinkType editDescriptionMediaLink, InternalLinkType editSettingsLink) {
+ this.shortDescription = shortDescription;
+ this.description = description;
+ this.photo = photo;
+ this.animation = animation;
+ this.menuButton = menuButton;
+ this.commands = commands;
+ this.privacyPolicyUrl = privacyPolicyUrl;
+ this.defaultGroupAdministratorRights = defaultGroupAdministratorRights;
+ this.defaultChannelAdministratorRights = defaultChannelAdministratorRights;
+ this.affiliateProgram = affiliateProgram;
+ this.webAppBackgroundLightColor = webAppBackgroundLightColor;
+ this.webAppBackgroundDarkColor = webAppBackgroundDarkColor;
+ this.webAppHeaderLightColor = webAppHeaderLightColor;
+ this.webAppHeaderDarkColor = webAppHeaderDarkColor;
+ this.canGetRevenueStatistics = canGetRevenueStatistics;
+ this.canManageEmojiStatus = canManageEmojiStatus;
+ this.hasMediaPreviews = hasMediaPreviews;
+ this.editCommandsLink = editCommandsLink;
+ this.editDescriptionLink = editDescriptionLink;
+ this.editDescriptionMediaLink = editDescriptionMediaLink;
+ this.editSettingsLink = editSettingsLink;
+ }
+
+ public static final int CONSTRUCTOR = 759416187;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotMediaPreview extends Object {
+
+ public int date;
+
+ public StoryContent content;
+
+ public BotMediaPreview() {
+ }
+
+ public BotMediaPreview(int date, StoryContent content) {
+ this.date = date;
+ this.content = content;
+ }
+
+ public static final int CONSTRUCTOR = -1632264984;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotMediaPreviewInfo extends Object {
+
+ public BotMediaPreview[] previews;
+
+ public String[] languageCodes;
+
+ public BotMediaPreviewInfo() {
+ }
+
+ public BotMediaPreviewInfo(BotMediaPreview[] previews, String[] languageCodes) {
+ this.previews = previews;
+ this.languageCodes = languageCodes;
+ }
+
+ public static final int CONSTRUCTOR = -284783012;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotMediaPreviews extends Object {
+
+ public BotMediaPreview[] previews;
+
+ public BotMediaPreviews() {
+ }
+
+ public BotMediaPreviews(BotMediaPreview[] previews) {
+ this.previews = previews;
+ }
+
+ public static final int CONSTRUCTOR = -1787720586;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotMenuButton extends Object {
+
+ public String text;
+
+ public String url;
+
+ public BotMenuButton() {
+ }
+
+ public BotMenuButton(String text, String url) {
+ this.text = text;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -944407322;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class BotWriteAccessAllowReason extends Object {
+
+ public BotWriteAccessAllowReason() {
+ }
+ }
+
+ public static class BotWriteAccessAllowReasonConnectedWebsite extends BotWriteAccessAllowReason {
+
+ public String domainName;
+
+ public BotWriteAccessAllowReasonConnectedWebsite() {
+ }
+
+ public BotWriteAccessAllowReasonConnectedWebsite(String domainName) {
+ this.domainName = domainName;
+ }
+
+ public static final int CONSTRUCTOR = 2016325603;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotWriteAccessAllowReasonAddedToAttachmentMenu extends BotWriteAccessAllowReason {
+ public BotWriteAccessAllowReasonAddedToAttachmentMenu() {
+ }
+
+ public static final int CONSTRUCTOR = -2104795235;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotWriteAccessAllowReasonLaunchedWebApp extends BotWriteAccessAllowReason {
+
+ public WebApp webApp;
+
+ public BotWriteAccessAllowReasonLaunchedWebApp() {
+ }
+
+ public BotWriteAccessAllowReasonLaunchedWebApp(WebApp webApp) {
+ this.webApp = webApp;
+ }
+
+ public static final int CONSTRUCTOR = -240843561;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BotWriteAccessAllowReasonAcceptedRequest extends BotWriteAccessAllowReason {
+ public BotWriteAccessAllowReasonAcceptedRequest() {
+ }
+
+ public static final int CONSTRUCTOR = -1983497220;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class BusinessAwayMessageSchedule extends Object {
+
+ public BusinessAwayMessageSchedule() {
+ }
+ }
+
+ public static class BusinessAwayMessageScheduleAlways extends BusinessAwayMessageSchedule {
+ public BusinessAwayMessageScheduleAlways() {
+ }
+
+ public static final int CONSTRUCTOR = -910564679;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessAwayMessageScheduleOutsideOfOpeningHours extends BusinessAwayMessageSchedule {
+ public BusinessAwayMessageScheduleOutsideOfOpeningHours() {
+ }
+
+ public static final int CONSTRUCTOR = -968630506;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessAwayMessageScheduleCustom extends BusinessAwayMessageSchedule {
+
+ public int startDate;
+
+ public int endDate;
+
+ public BusinessAwayMessageScheduleCustom() {
+ }
+
+ public BusinessAwayMessageScheduleCustom(int startDate, int endDate) {
+ this.startDate = startDate;
+ this.endDate = endDate;
+ }
+
+ public static final int CONSTRUCTOR = -1967108654;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessAwayMessageSettings extends Object {
+
+ public int shortcutId;
+
+ public BusinessRecipients recipients;
+
+ public BusinessAwayMessageSchedule schedule;
+
+ public boolean offlineOnly;
+
+ public BusinessAwayMessageSettings() {
+ }
+
+ public BusinessAwayMessageSettings(int shortcutId, BusinessRecipients recipients, BusinessAwayMessageSchedule schedule, boolean offlineOnly) {
+ this.shortcutId = shortcutId;
+ this.recipients = recipients;
+ this.schedule = schedule;
+ this.offlineOnly = offlineOnly;
+ }
+
+ public static final int CONSTRUCTOR = 353084137;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessBotManageBar extends Object {
+
+ public long botUserId;
+
+ public String manageUrl;
+
+ public boolean isBotPaused;
+
+ public boolean canBotReply;
+
+ public BusinessBotManageBar() {
+ }
+
+ public BusinessBotManageBar(long botUserId, String manageUrl, boolean isBotPaused, boolean canBotReply) {
+ this.botUserId = botUserId;
+ this.manageUrl = manageUrl;
+ this.isBotPaused = isBotPaused;
+ this.canBotReply = canBotReply;
+ }
+
+ public static final int CONSTRUCTOR = -311399806;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessChatLink extends Object {
+
+ public String link;
+
+ public FormattedText text;
+
+ public String title;
+
+ public int viewCount;
+
+ public BusinessChatLink() {
+ }
+
+ public BusinessChatLink(String link, FormattedText text, String title, int viewCount) {
+ this.link = link;
+ this.text = text;
+ this.title = title;
+ this.viewCount = viewCount;
+ }
+
+ public static final int CONSTRUCTOR = -1902539901;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessChatLinkInfo extends Object {
+
+ public long chatId;
+
+ public FormattedText text;
+
+ public BusinessChatLinkInfo() {
+ }
+
+ public BusinessChatLinkInfo(long chatId, FormattedText text) {
+ this.chatId = chatId;
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = -864865105;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessChatLinks extends Object {
+
+ public BusinessChatLink[] links;
+
+ public BusinessChatLinks() {
+ }
+
+ public BusinessChatLinks(BusinessChatLink[] links) {
+ this.links = links;
+ }
+
+ public static final int CONSTRUCTOR = 79067036;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessConnectedBot extends Object {
+
+ public long botUserId;
+
+ public BusinessRecipients recipients;
+
+ public boolean canReply;
+
+ public BusinessConnectedBot() {
+ }
+
+ public BusinessConnectedBot(long botUserId, BusinessRecipients recipients, boolean canReply) {
+ this.botUserId = botUserId;
+ this.recipients = recipients;
+ this.canReply = canReply;
+ }
+
+ public static final int CONSTRUCTOR = -330241321;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessConnection extends Object {
+
+ public String id;
+
+ public long userId;
+
+ public long userChatId;
+
+ public int date;
+
+ public boolean canReply;
+
+ public boolean isEnabled;
+
+ public BusinessConnection() {
+ }
+
+ public BusinessConnection(String id, long userId, long userChatId, int date, boolean canReply, boolean isEnabled) {
+ this.id = id;
+ this.userId = userId;
+ this.userChatId = userChatId;
+ this.date = date;
+ this.canReply = canReply;
+ this.isEnabled = isEnabled;
+ }
+
+ public static final int CONSTRUCTOR = 1144447540;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class BusinessFeature extends Object {
+
+ public BusinessFeature() {
+ }
+ }
+
+ public static class BusinessFeatureLocation extends BusinessFeature {
+ public BusinessFeatureLocation() {
+ }
+
+ public static final int CONSTRUCTOR = -1064304004;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatureOpeningHours extends BusinessFeature {
+ public BusinessFeatureOpeningHours() {
+ }
+
+ public static final int CONSTRUCTOR = 461054701;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatureQuickReplies extends BusinessFeature {
+ public BusinessFeatureQuickReplies() {
+ }
+
+ public static final int CONSTRUCTOR = -1674048894;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatureGreetingMessage extends BusinessFeature {
+ public BusinessFeatureGreetingMessage() {
+ }
+
+ public static final int CONSTRUCTOR = 1789424756;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatureAwayMessage extends BusinessFeature {
+ public BusinessFeatureAwayMessage() {
+ }
+
+ public static final int CONSTRUCTOR = 1090119901;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatureAccountLinks extends BusinessFeature {
+ public BusinessFeatureAccountLinks() {
+ }
+
+ public static final int CONSTRUCTOR = 1878693646;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatureStartPage extends BusinessFeature {
+ public BusinessFeatureStartPage() {
+ }
+
+ public static final int CONSTRUCTOR = 401471457;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatureBots extends BusinessFeature {
+ public BusinessFeatureBots() {
+ }
+
+ public static final int CONSTRUCTOR = 275084773;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatureEmojiStatus extends BusinessFeature {
+ public BusinessFeatureEmojiStatus() {
+ }
+
+ public static final int CONSTRUCTOR = -846282523;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatureChatFolderTags extends BusinessFeature {
+ public BusinessFeatureChatFolderTags() {
+ }
+
+ public static final int CONSTRUCTOR = -543880918;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatureUpgradedStories extends BusinessFeature {
+ public BusinessFeatureUpgradedStories() {
+ }
+
+ public static final int CONSTRUCTOR = -1812245550;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeaturePromotionAnimation extends Object {
+
+ public BusinessFeature feature;
+
+ public Animation animation;
+
+ public BusinessFeaturePromotionAnimation() {
+ }
+
+ public BusinessFeaturePromotionAnimation(BusinessFeature feature, Animation animation) {
+ this.feature = feature;
+ this.animation = animation;
+ }
+
+ public static final int CONSTRUCTOR = 2047174666;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessFeatures extends Object {
+
+ public BusinessFeature[] features;
+
+ public BusinessFeatures() {
+ }
+
+ public BusinessFeatures(BusinessFeature[] features) {
+ this.features = features;
+ }
+
+ public static final int CONSTRUCTOR = -1532468184;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessGreetingMessageSettings extends Object {
+
+ public int shortcutId;
+
+ public BusinessRecipients recipients;
+
+ public int inactivityDays;
+
+ public BusinessGreetingMessageSettings() {
+ }
+
+ public BusinessGreetingMessageSettings(int shortcutId, BusinessRecipients recipients, int inactivityDays) {
+ this.shortcutId = shortcutId;
+ this.recipients = recipients;
+ this.inactivityDays = inactivityDays;
+ }
+
+ public static final int CONSTRUCTOR = 1689140754;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessInfo extends Object {
+
+ public BusinessLocation location;
+
+ public BusinessOpeningHours openingHours;
+
+ public BusinessOpeningHours localOpeningHours;
+
+ public int nextOpenIn;
+
+ public int nextCloseIn;
+
+ public BusinessGreetingMessageSettings greetingMessageSettings;
+
+ public BusinessAwayMessageSettings awayMessageSettings;
+
+ public BusinessStartPage startPage;
+
+ public BusinessInfo() {
+ }
+
+ public BusinessInfo(BusinessLocation location, BusinessOpeningHours openingHours, BusinessOpeningHours localOpeningHours, int nextOpenIn, int nextCloseIn, BusinessGreetingMessageSettings greetingMessageSettings, BusinessAwayMessageSettings awayMessageSettings, BusinessStartPage startPage) {
+ this.location = location;
+ this.openingHours = openingHours;
+ this.localOpeningHours = localOpeningHours;
+ this.nextOpenIn = nextOpenIn;
+ this.nextCloseIn = nextCloseIn;
+ this.greetingMessageSettings = greetingMessageSettings;
+ this.awayMessageSettings = awayMessageSettings;
+ this.startPage = startPage;
+ }
+
+ public static final int CONSTRUCTOR = 1428179342;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessLocation extends Object {
+
+ public Location location;
+
+ public String address;
+
+ public BusinessLocation() {
+ }
+
+ public BusinessLocation(Location location, String address) {
+ this.location = location;
+ this.address = address;
+ }
+
+ public static final int CONSTRUCTOR = -1084969126;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessMessage extends Object {
+
+ public Message message;
+
+ public Message replyToMessage;
+
+ public BusinessMessage() {
+ }
+
+ public BusinessMessage(Message message, Message replyToMessage) {
+ this.message = message;
+ this.replyToMessage = replyToMessage;
+ }
+
+ public static final int CONSTRUCTOR = -94353850;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessMessages extends Object {
+
+ public BusinessMessage[] messages;
+
+ public BusinessMessages() {
+ }
+
+ public BusinessMessages(BusinessMessage[] messages) {
+ this.messages = messages;
+ }
+
+ public static final int CONSTRUCTOR = -764562473;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessOpeningHours extends Object {
+
+ public String timeZoneId;
+
+ public BusinessOpeningHoursInterval[] openingHours;
+
+ public BusinessOpeningHours() {
+ }
+
+ public BusinessOpeningHours(String timeZoneId, BusinessOpeningHoursInterval[] openingHours) {
+ this.timeZoneId = timeZoneId;
+ this.openingHours = openingHours;
+ }
+
+ public static final int CONSTRUCTOR = 816603700;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessOpeningHoursInterval extends Object {
+
+ public int startMinute;
+
+ public int endMinute;
+
+ public BusinessOpeningHoursInterval() {
+ }
+
+ public BusinessOpeningHoursInterval(int startMinute, int endMinute) {
+ this.startMinute = startMinute;
+ this.endMinute = endMinute;
+ }
+
+ public static final int CONSTRUCTOR = -1108322732;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessRecipients extends Object {
+
+ public long[] chatIds;
+
+ public long[] excludedChatIds;
+
+ public boolean selectExistingChats;
+
+ public boolean selectNewChats;
+
+ public boolean selectContacts;
+
+ public boolean selectNonContacts;
+
+ public boolean excludeSelected;
+
+ public BusinessRecipients() {
+ }
+
+ public BusinessRecipients(long[] chatIds, long[] excludedChatIds, boolean selectExistingChats, boolean selectNewChats, boolean selectContacts, boolean selectNonContacts, boolean excludeSelected) {
+ this.chatIds = chatIds;
+ this.excludedChatIds = excludedChatIds;
+ this.selectExistingChats = selectExistingChats;
+ this.selectNewChats = selectNewChats;
+ this.selectContacts = selectContacts;
+ this.selectNonContacts = selectNonContacts;
+ this.excludeSelected = excludeSelected;
+ }
+
+ public static final int CONSTRUCTOR = 868656909;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BusinessStartPage extends Object {
+
+ public String title;
+
+ public String message;
+
+ public Sticker sticker;
+
+ public BusinessStartPage() {
+ }
+
+ public BusinessStartPage(String title, String message, Sticker sticker) {
+ this.title = title;
+ this.message = message;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -1616709681;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Call extends Object {
+
+ public int id;
+
+ public long userId;
+
+ public boolean isOutgoing;
+
+ public boolean isVideo;
+
+ public CallState state;
+
+ public Call() {
+ }
+
+ public Call(int id, long userId, boolean isOutgoing, boolean isVideo, CallState state) {
+ this.id = id;
+ this.userId = userId;
+ this.isOutgoing = isOutgoing;
+ this.isVideo = isVideo;
+ this.state = state;
+ }
+
+ public static final int CONSTRUCTOR = 920360804;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CallDiscardReason extends Object {
+
+ public CallDiscardReason() {
+ }
+ }
+
+ public static class CallDiscardReasonEmpty extends CallDiscardReason {
+ public CallDiscardReasonEmpty() {
+ }
+
+ public static final int CONSTRUCTOR = -1258917949;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallDiscardReasonMissed extends CallDiscardReason {
+ public CallDiscardReasonMissed() {
+ }
+
+ public static final int CONSTRUCTOR = 1680358012;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallDiscardReasonDeclined extends CallDiscardReason {
+ public CallDiscardReasonDeclined() {
+ }
+
+ public static final int CONSTRUCTOR = -1729926094;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallDiscardReasonDisconnected extends CallDiscardReason {
+ public CallDiscardReasonDisconnected() {
+ }
+
+ public static final int CONSTRUCTOR = -1342872670;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallDiscardReasonHungUp extends CallDiscardReason {
+ public CallDiscardReasonHungUp() {
+ }
+
+ public static final int CONSTRUCTOR = 438216166;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallId extends Object {
+
+ public int id;
+
+ public CallId() {
+ }
+
+ public CallId(int id) {
+ this.id = id;
+ }
+
+ public static final int CONSTRUCTOR = 65717769;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CallProblem extends Object {
+
+ public CallProblem() {
+ }
+ }
+
+ public static class CallProblemEcho extends CallProblem {
+ public CallProblemEcho() {
+ }
+
+ public static final int CONSTRUCTOR = 801116548;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallProblemNoise extends CallProblem {
+ public CallProblemNoise() {
+ }
+
+ public static final int CONSTRUCTOR = 1053065359;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallProblemInterruptions extends CallProblem {
+ public CallProblemInterruptions() {
+ }
+
+ public static final int CONSTRUCTOR = 1119493218;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallProblemDistortedSpeech extends CallProblem {
+ public CallProblemDistortedSpeech() {
+ }
+
+ public static final int CONSTRUCTOR = 379960581;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallProblemSilentLocal extends CallProblem {
+ public CallProblemSilentLocal() {
+ }
+
+ public static final int CONSTRUCTOR = 253652790;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallProblemSilentRemote extends CallProblem {
+ public CallProblemSilentRemote() {
+ }
+
+ public static final int CONSTRUCTOR = 573634714;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallProblemDropped extends CallProblem {
+ public CallProblemDropped() {
+ }
+
+ public static final int CONSTRUCTOR = -1207311487;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallProblemDistortedVideo extends CallProblem {
+ public CallProblemDistortedVideo() {
+ }
+
+ public static final int CONSTRUCTOR = 385245706;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallProblemPixelatedVideo extends CallProblem {
+ public CallProblemPixelatedVideo() {
+ }
+
+ public static final int CONSTRUCTOR = 2115315411;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallProtocol extends Object {
+
+ public boolean udpP2p;
+
+ public boolean udpReflector;
+
+ public int minLayer;
+
+ public int maxLayer;
+
+ public String[] libraryVersions;
+
+ public CallProtocol() {
+ }
+
+ public CallProtocol(boolean udpP2p, boolean udpReflector, int minLayer, int maxLayer, String[] libraryVersions) {
+ this.udpP2p = udpP2p;
+ this.udpReflector = udpReflector;
+ this.minLayer = minLayer;
+ this.maxLayer = maxLayer;
+ this.libraryVersions = libraryVersions;
+ }
+
+ public static final int CONSTRUCTOR = -1075562897;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallServer extends Object {
+
+ public long id;
+
+ public String ipAddress;
+
+ public String ipv6Address;
+
+ public int port;
+
+ public CallServerType type;
+
+ public CallServer() {
+ }
+
+ public CallServer(long id, String ipAddress, String ipv6Address, int port, CallServerType type) {
+ this.id = id;
+ this.ipAddress = ipAddress;
+ this.ipv6Address = ipv6Address;
+ this.port = port;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 1865932695;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CallServerType extends Object {
+
+ public CallServerType() {
+ }
+ }
+
+ public static class CallServerTypeTelegramReflector extends CallServerType {
+
+ public byte[] peerTag;
+
+ public boolean isTcp;
+
+ public CallServerTypeTelegramReflector() {
+ }
+
+ public CallServerTypeTelegramReflector(byte[] peerTag, boolean isTcp) {
+ this.peerTag = peerTag;
+ this.isTcp = isTcp;
+ }
+
+ public static final int CONSTRUCTOR = 850343189;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallServerTypeWebrtc extends CallServerType {
+
+ public String username;
+
+ public String password;
+
+ public boolean supportsTurn;
+
+ public boolean supportsStun;
+
+ public CallServerTypeWebrtc() {
+ }
+
+ public CallServerTypeWebrtc(String username, String password, boolean supportsTurn, boolean supportsStun) {
+ this.username = username;
+ this.password = password;
+ this.supportsTurn = supportsTurn;
+ this.supportsStun = supportsStun;
+ }
+
+ public static final int CONSTRUCTOR = 1250622821;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CallState extends Object {
+
+ public CallState() {
+ }
+ }
+
+ public static class CallStatePending extends CallState {
+
+ public boolean isCreated;
+
+ public boolean isReceived;
+
+ public CallStatePending() {
+ }
+
+ public CallStatePending(boolean isCreated, boolean isReceived) {
+ this.isCreated = isCreated;
+ this.isReceived = isReceived;
+ }
+
+ public static final int CONSTRUCTOR = 1073048620;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallStateExchangingKeys extends CallState {
+ public CallStateExchangingKeys() {
+ }
+
+ public static final int CONSTRUCTOR = -1848149403;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallStateReady extends CallState {
+
+ public CallProtocol protocol;
+
+ public CallServer[] servers;
+
+ public String config;
+
+ public byte[] encryptionKey;
+
+ public String[] emojis;
+
+ public boolean allowP2p;
+
+ public String customParameters;
+
+ public CallStateReady() {
+ }
+
+ public CallStateReady(CallProtocol protocol, CallServer[] servers, String config, byte[] encryptionKey, String[] emojis, boolean allowP2p, String customParameters) {
+ this.protocol = protocol;
+ this.servers = servers;
+ this.config = config;
+ this.encryptionKey = encryptionKey;
+ this.emojis = emojis;
+ this.allowP2p = allowP2p;
+ this.customParameters = customParameters;
+ }
+
+ public static final int CONSTRUCTOR = 731619651;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallStateHangingUp extends CallState {
+ public CallStateHangingUp() {
+ }
+
+ public static final int CONSTRUCTOR = -2133790038;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallStateDiscarded extends CallState {
+
+ public CallDiscardReason reason;
+
+ public boolean needRating;
+
+ public boolean needDebugInformation;
+
+ public boolean needLog;
+
+ public CallStateDiscarded() {
+ }
+
+ public CallStateDiscarded(CallDiscardReason reason, boolean needRating, boolean needDebugInformation, boolean needLog) {
+ this.reason = reason;
+ this.needRating = needRating;
+ this.needDebugInformation = needDebugInformation;
+ this.needLog = needLog;
+ }
+
+ public static final int CONSTRUCTOR = 1394310213;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallStateError extends CallState {
+
+ public Error error;
+
+ public CallStateError() {
+ }
+
+ public CallStateError(Error error) {
+ this.error = error;
+ }
+
+ public static final int CONSTRUCTOR = -975215467;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallbackQueryAnswer extends Object {
+
+ public String text;
+
+ public boolean showAlert;
+
+ public String url;
+
+ public CallbackQueryAnswer() {
+ }
+
+ public CallbackQueryAnswer(String text, boolean showAlert, String url) {
+ this.text = text;
+ this.showAlert = showAlert;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 360867933;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CallbackQueryPayload extends Object {
+
+ public CallbackQueryPayload() {
+ }
+ }
+
+ public static class CallbackQueryPayloadData extends CallbackQueryPayload {
+
+ public byte[] data;
+
+ public CallbackQueryPayloadData() {
+ }
+
+ public CallbackQueryPayloadData(byte[] data) {
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = -1977729946;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallbackQueryPayloadDataWithPassword extends CallbackQueryPayload {
+
+ public String password;
+
+ public byte[] data;
+
+ public CallbackQueryPayloadDataWithPassword() {
+ }
+
+ public CallbackQueryPayloadDataWithPassword(String password, byte[] data) {
+ this.password = password;
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = 1340266738;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CallbackQueryPayloadGame extends CallbackQueryPayload {
+
+ public String gameShortName;
+
+ public CallbackQueryPayloadGame() {
+ }
+
+ public CallbackQueryPayloadGame(String gameShortName) {
+ this.gameShortName = gameShortName;
+ }
+
+ public static final int CONSTRUCTOR = 1303571512;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CanSendMessageToUserResult extends Object {
+
+ public CanSendMessageToUserResult() {
+ }
+ }
+
+ public static class CanSendMessageToUserResultOk extends CanSendMessageToUserResult {
+ public CanSendMessageToUserResultOk() {
+ }
+
+ public static final int CONSTRUCTOR = 1530583042;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanSendMessageToUserResultUserIsDeleted extends CanSendMessageToUserResult {
+ public CanSendMessageToUserResultUserIsDeleted() {
+ }
+
+ public static final int CONSTRUCTOR = -1944639903;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanSendMessageToUserResultUserRestrictsNewChats extends CanSendMessageToUserResult {
+ public CanSendMessageToUserResultUserRestrictsNewChats() {
+ }
+
+ public static final int CONSTRUCTOR = 1929699797;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CanSendStoryResult extends Object {
+
+ public CanSendStoryResult() {
+ }
+ }
+
+ public static class CanSendStoryResultOk extends CanSendStoryResult {
+ public CanSendStoryResultOk() {
+ }
+
+ public static final int CONSTRUCTOR = 1346171133;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanSendStoryResultPremiumNeeded extends CanSendStoryResult {
+ public CanSendStoryResultPremiumNeeded() {
+ }
+
+ public static final int CONSTRUCTOR = 1451220585;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanSendStoryResultBoostNeeded extends CanSendStoryResult {
+ public CanSendStoryResultBoostNeeded() {
+ }
+
+ public static final int CONSTRUCTOR = -1637816017;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanSendStoryResultActiveStoryLimitExceeded extends CanSendStoryResult {
+ public CanSendStoryResultActiveStoryLimitExceeded() {
+ }
+
+ public static final int CONSTRUCTOR = -1344689450;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanSendStoryResultWeeklyLimitExceeded extends CanSendStoryResult {
+
+ public int retryAfter;
+
+ public CanSendStoryResultWeeklyLimitExceeded() {
+ }
+
+ public CanSendStoryResultWeeklyLimitExceeded(int retryAfter) {
+ this.retryAfter = retryAfter;
+ }
+
+ public static final int CONSTRUCTOR = 323068088;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanSendStoryResultMonthlyLimitExceeded extends CanSendStoryResult {
+
+ public int retryAfter;
+
+ public CanSendStoryResultMonthlyLimitExceeded() {
+ }
+
+ public CanSendStoryResultMonthlyLimitExceeded(int retryAfter) {
+ this.retryAfter = retryAfter;
+ }
+
+ public static final int CONSTRUCTOR = -578665771;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CanTransferOwnershipResult extends Object {
+
+ public CanTransferOwnershipResult() {
+ }
+ }
+
+ public static class CanTransferOwnershipResultOk extends CanTransferOwnershipResult {
+ public CanTransferOwnershipResultOk() {
+ }
+
+ public static final int CONSTRUCTOR = -89881021;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanTransferOwnershipResultPasswordNeeded extends CanTransferOwnershipResult {
+ public CanTransferOwnershipResultPasswordNeeded() {
+ }
+
+ public static final int CONSTRUCTOR = 1548372703;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanTransferOwnershipResultPasswordTooFresh extends CanTransferOwnershipResult {
+
+ public int retryAfter;
+
+ public CanTransferOwnershipResultPasswordTooFresh() {
+ }
+
+ public CanTransferOwnershipResultPasswordTooFresh(int retryAfter) {
+ this.retryAfter = retryAfter;
+ }
+
+ public static final int CONSTRUCTOR = 811440913;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanTransferOwnershipResultSessionTooFresh extends CanTransferOwnershipResult {
+
+ public int retryAfter;
+
+ public CanTransferOwnershipResultSessionTooFresh() {
+ }
+
+ public CanTransferOwnershipResultSessionTooFresh(int retryAfter) {
+ this.retryAfter = retryAfter;
+ }
+
+ public static final int CONSTRUCTOR = 984664289;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Chat extends Object {
+
+ public long id;
+
+ public ChatType type;
+
+ public String title;
+
+ public ChatPhotoInfo photo;
+
+ public int accentColorId;
+
+ public long backgroundCustomEmojiId;
+
+ public int profileAccentColorId;
+
+ public long profileBackgroundCustomEmojiId;
+
+ public ChatPermissions permissions;
+
+ public Message lastMessage;
+
+ public ChatPosition[] positions;
+
+ public ChatList[] chatLists;
+
+ public MessageSender messageSenderId;
+
+ public BlockList blockList;
+
+ public boolean hasProtectedContent;
+
+ public boolean isTranslatable;
+
+ public boolean isMarkedAsUnread;
+
+ public boolean viewAsTopics;
+
+ public boolean hasScheduledMessages;
+
+ public boolean canBeDeletedOnlyForSelf;
+
+ public boolean canBeDeletedForAllUsers;
+
+ public boolean canBeReported;
+
+ public boolean defaultDisableNotification;
+
+ public int unreadCount;
+
+ public long lastReadInboxMessageId;
+
+ public long lastReadOutboxMessageId;
+
+ public int unreadMentionCount;
+
+ public int unreadReactionCount;
+
+ public ChatNotificationSettings notificationSettings;
+
+ public ChatAvailableReactions availableReactions;
+
+ public int messageAutoDeleteTime;
+
+ public EmojiStatus emojiStatus;
+
+ public ChatBackground background;
+
+ public String themeName;
+
+ public ChatActionBar actionBar;
+
+ public BusinessBotManageBar businessBotManageBar;
+
+ public VideoChat videoChat;
+
+ public ChatJoinRequestsInfo pendingJoinRequests;
+
+ public long replyMarkupMessageId;
+
+ public DraftMessage draftMessage;
+
+ public String clientData;
+
+ public Chat() {
+ }
+
+ public Chat(long id, ChatType type, String title, ChatPhotoInfo photo, int accentColorId, long backgroundCustomEmojiId, int profileAccentColorId, long profileBackgroundCustomEmojiId, ChatPermissions permissions, Message lastMessage, ChatPosition[] positions, ChatList[] chatLists, MessageSender messageSenderId, BlockList blockList, boolean hasProtectedContent, boolean isTranslatable, boolean isMarkedAsUnread, boolean viewAsTopics, boolean hasScheduledMessages, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeReported, boolean defaultDisableNotification, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, ChatNotificationSettings notificationSettings, ChatAvailableReactions availableReactions, int messageAutoDeleteTime, EmojiStatus emojiStatus, ChatBackground background, String themeName, ChatActionBar actionBar, BusinessBotManageBar businessBotManageBar, VideoChat videoChat, ChatJoinRequestsInfo pendingJoinRequests, long replyMarkupMessageId, DraftMessage draftMessage, String clientData) {
+ this.id = id;
+ this.type = type;
+ this.title = title;
+ this.photo = photo;
+ this.accentColorId = accentColorId;
+ this.backgroundCustomEmojiId = backgroundCustomEmojiId;
+ this.profileAccentColorId = profileAccentColorId;
+ this.profileBackgroundCustomEmojiId = profileBackgroundCustomEmojiId;
+ this.permissions = permissions;
+ this.lastMessage = lastMessage;
+ this.positions = positions;
+ this.chatLists = chatLists;
+ this.messageSenderId = messageSenderId;
+ this.blockList = blockList;
+ this.hasProtectedContent = hasProtectedContent;
+ this.isTranslatable = isTranslatable;
+ this.isMarkedAsUnread = isMarkedAsUnread;
+ this.viewAsTopics = viewAsTopics;
+ this.hasScheduledMessages = hasScheduledMessages;
+ this.canBeDeletedOnlyForSelf = canBeDeletedOnlyForSelf;
+ this.canBeDeletedForAllUsers = canBeDeletedForAllUsers;
+ this.canBeReported = canBeReported;
+ this.defaultDisableNotification = defaultDisableNotification;
+ this.unreadCount = unreadCount;
+ this.lastReadInboxMessageId = lastReadInboxMessageId;
+ this.lastReadOutboxMessageId = lastReadOutboxMessageId;
+ this.unreadMentionCount = unreadMentionCount;
+ this.unreadReactionCount = unreadReactionCount;
+ this.notificationSettings = notificationSettings;
+ this.availableReactions = availableReactions;
+ this.messageAutoDeleteTime = messageAutoDeleteTime;
+ this.emojiStatus = emojiStatus;
+ this.background = background;
+ this.themeName = themeName;
+ this.actionBar = actionBar;
+ this.businessBotManageBar = businessBotManageBar;
+ this.videoChat = videoChat;
+ this.pendingJoinRequests = pendingJoinRequests;
+ this.replyMarkupMessageId = replyMarkupMessageId;
+ this.draftMessage = draftMessage;
+ this.clientData = clientData;
+ }
+
+ public static final int CONSTRUCTOR = 830601369;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatAction extends Object {
+
+ public ChatAction() {
+ }
+ }
+
+ public static class ChatActionTyping extends ChatAction {
+ public ChatActionTyping() {
+ }
+
+ public static final int CONSTRUCTOR = 380122167;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionRecordingVideo extends ChatAction {
+ public ChatActionRecordingVideo() {
+ }
+
+ public static final int CONSTRUCTOR = 216553362;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionUploadingVideo extends ChatAction {
+
+ public int progress;
+
+ public ChatActionUploadingVideo() {
+ }
+
+ public ChatActionUploadingVideo(int progress) {
+ this.progress = progress;
+ }
+
+ public static final int CONSTRUCTOR = 1234185270;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionRecordingVoiceNote extends ChatAction {
+ public ChatActionRecordingVoiceNote() {
+ }
+
+ public static final int CONSTRUCTOR = -808850058;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionUploadingVoiceNote extends ChatAction {
+
+ public int progress;
+
+ public ChatActionUploadingVoiceNote() {
+ }
+
+ public ChatActionUploadingVoiceNote(int progress) {
+ this.progress = progress;
+ }
+
+ public static final int CONSTRUCTOR = -613643666;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionUploadingPhoto extends ChatAction {
+
+ public int progress;
+
+ public ChatActionUploadingPhoto() {
+ }
+
+ public ChatActionUploadingPhoto(int progress) {
+ this.progress = progress;
+ }
+
+ public static final int CONSTRUCTOR = 654240583;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionUploadingDocument extends ChatAction {
+
+ public int progress;
+
+ public ChatActionUploadingDocument() {
+ }
+
+ public ChatActionUploadingDocument(int progress) {
+ this.progress = progress;
+ }
+
+ public static final int CONSTRUCTOR = 167884362;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionChoosingSticker extends ChatAction {
+ public ChatActionChoosingSticker() {
+ }
+
+ public static final int CONSTRUCTOR = 372753697;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionChoosingLocation extends ChatAction {
+ public ChatActionChoosingLocation() {
+ }
+
+ public static final int CONSTRUCTOR = -2017893596;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionChoosingContact extends ChatAction {
+ public ChatActionChoosingContact() {
+ }
+
+ public static final int CONSTRUCTOR = -1222507496;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionStartPlayingGame extends ChatAction {
+ public ChatActionStartPlayingGame() {
+ }
+
+ public static final int CONSTRUCTOR = -865884164;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionRecordingVideoNote extends ChatAction {
+ public ChatActionRecordingVideoNote() {
+ }
+
+ public static final int CONSTRUCTOR = 16523393;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionUploadingVideoNote extends ChatAction {
+
+ public int progress;
+
+ public ChatActionUploadingVideoNote() {
+ }
+
+ public ChatActionUploadingVideoNote(int progress) {
+ this.progress = progress;
+ }
+
+ public static final int CONSTRUCTOR = 1172364918;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionWatchingAnimations extends ChatAction {
+
+ public String emoji;
+
+ public ChatActionWatchingAnimations() {
+ }
+
+ public ChatActionWatchingAnimations(String emoji) {
+ this.emoji = emoji;
+ }
+
+ public static final int CONSTRUCTOR = 2052990641;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionCancel extends ChatAction {
+ public ChatActionCancel() {
+ }
+
+ public static final int CONSTRUCTOR = 1160523958;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatActionBar extends Object {
+
+ public ChatActionBar() {
+ }
+ }
+
+ public static class ChatActionBarReportSpam extends ChatActionBar {
+
+ public boolean canUnarchive;
+
+ public ChatActionBarReportSpam() {
+ }
+
+ public ChatActionBarReportSpam(boolean canUnarchive) {
+ this.canUnarchive = canUnarchive;
+ }
+
+ public static final int CONSTRUCTOR = -1312758246;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionBarInviteMembers extends ChatActionBar {
+ public ChatActionBarInviteMembers() {
+ }
+
+ public static final int CONSTRUCTOR = 1985313904;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionBarReportAddBlock extends ChatActionBar {
+
+ public boolean canUnarchive;
+
+ public ChatActionBarReportAddBlock() {
+ }
+
+ public ChatActionBarReportAddBlock(boolean canUnarchive) {
+ this.canUnarchive = canUnarchive;
+ }
+
+ public static final int CONSTRUCTOR = -1451980246;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionBarAddContact extends ChatActionBar {
+ public ChatActionBarAddContact() {
+ }
+
+ public static final int CONSTRUCTOR = -733325295;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionBarSharePhoneNumber extends ChatActionBar {
+ public ChatActionBarSharePhoneNumber() {
+ }
+
+ public static final int CONSTRUCTOR = 35188697;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActionBarJoinRequest extends ChatActionBar {
+
+ public String title;
+
+ public boolean isChannel;
+
+ public int requestDate;
+
+ public ChatActionBarJoinRequest() {
+ }
+
+ public ChatActionBarJoinRequest(String title, boolean isChannel, int requestDate) {
+ this.title = title;
+ this.isChannel = isChannel;
+ this.requestDate = requestDate;
+ }
+
+ public static final int CONSTRUCTOR = 1037140744;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatActiveStories extends Object {
+
+ public long chatId;
+
+ public StoryList list;
+
+ public long order;
+
+ public int maxReadStoryId;
+
+ public StoryInfo[] stories;
+
+ public ChatActiveStories() {
+ }
+
+ public ChatActiveStories(long chatId, StoryList list, long order, int maxReadStoryId, StoryInfo[] stories) {
+ this.chatId = chatId;
+ this.list = list;
+ this.order = order;
+ this.maxReadStoryId = maxReadStoryId;
+ this.stories = stories;
+ }
+
+ public static final int CONSTRUCTOR = -1398869529;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatAdministrator extends Object {
+
+ public long userId;
+
+ public String customTitle;
+
+ public boolean isOwner;
+
+ public ChatAdministrator() {
+ }
+
+ public ChatAdministrator(long userId, String customTitle, boolean isOwner) {
+ this.userId = userId;
+ this.customTitle = customTitle;
+ this.isOwner = isOwner;
+ }
+
+ public static final int CONSTRUCTOR = 1920449836;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatAdministratorRights extends Object {
+
+ public boolean canManageChat;
+
+ public boolean canChangeInfo;
+
+ public boolean canPostMessages;
+
+ public boolean canEditMessages;
+
+ public boolean canDeleteMessages;
+
+ public boolean canInviteUsers;
+
+ public boolean canRestrictMembers;
+
+ public boolean canPinMessages;
+
+ public boolean canManageTopics;
+
+ public boolean canPromoteMembers;
+
+ public boolean canManageVideoChats;
+
+ public boolean canPostStories;
+
+ public boolean canEditStories;
+
+ public boolean canDeleteStories;
+
+ public boolean isAnonymous;
+
+ public ChatAdministratorRights() {
+ }
+
+ public ChatAdministratorRights(boolean canManageChat, boolean canChangeInfo, boolean canPostMessages, boolean canEditMessages, boolean canDeleteMessages, boolean canInviteUsers, boolean canRestrictMembers, boolean canPinMessages, boolean canManageTopics, boolean canPromoteMembers, boolean canManageVideoChats, boolean canPostStories, boolean canEditStories, boolean canDeleteStories, boolean isAnonymous) {
+ this.canManageChat = canManageChat;
+ this.canChangeInfo = canChangeInfo;
+ this.canPostMessages = canPostMessages;
+ this.canEditMessages = canEditMessages;
+ this.canDeleteMessages = canDeleteMessages;
+ this.canInviteUsers = canInviteUsers;
+ this.canRestrictMembers = canRestrictMembers;
+ this.canPinMessages = canPinMessages;
+ this.canManageTopics = canManageTopics;
+ this.canPromoteMembers = canPromoteMembers;
+ this.canManageVideoChats = canManageVideoChats;
+ this.canPostStories = canPostStories;
+ this.canEditStories = canEditStories;
+ this.canDeleteStories = canDeleteStories;
+ this.isAnonymous = isAnonymous;
+ }
+
+ public static final int CONSTRUCTOR = 1599049796;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatAdministrators extends Object {
+
+ public ChatAdministrator[] administrators;
+
+ public ChatAdministrators() {
+ }
+
+ public ChatAdministrators(ChatAdministrator[] administrators) {
+ this.administrators = administrators;
+ }
+
+ public static final int CONSTRUCTOR = -2126186435;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatAffiliateProgram extends Object {
+
+ public String url;
+
+ public long botUserId;
+
+ public AffiliateProgramParameters parameters;
+
+ public int connectionDate;
+
+ public boolean isDisconnected;
+
+ public long userCount;
+
+ public long revenueStarCount;
+
+ public ChatAffiliateProgram() {
+ }
+
+ public ChatAffiliateProgram(String url, long botUserId, AffiliateProgramParameters parameters, int connectionDate, boolean isDisconnected, long userCount, long revenueStarCount) {
+ this.url = url;
+ this.botUserId = botUserId;
+ this.parameters = parameters;
+ this.connectionDate = connectionDate;
+ this.isDisconnected = isDisconnected;
+ this.userCount = userCount;
+ this.revenueStarCount = revenueStarCount;
+ }
+
+ public static final int CONSTRUCTOR = -1415835338;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatAffiliatePrograms extends Object {
+
+ public int totalCount;
+
+ public ChatAffiliateProgram[] programs;
+
+ public String nextOffset;
+
+ public ChatAffiliatePrograms() {
+ }
+
+ public ChatAffiliatePrograms(int totalCount, ChatAffiliateProgram[] programs, String nextOffset) {
+ this.totalCount = totalCount;
+ this.programs = programs;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 1107955123;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatAvailableReactions extends Object {
+
+ public ChatAvailableReactions() {
+ }
+ }
+
+ public static class ChatAvailableReactionsAll extends ChatAvailableReactions {
+
+ public int maxReactionCount;
+
+ public ChatAvailableReactionsAll() {
+ }
+
+ public ChatAvailableReactionsAll(int maxReactionCount) {
+ this.maxReactionCount = maxReactionCount;
+ }
+
+ public static final int CONSTRUCTOR = 694160279;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatAvailableReactionsSome extends ChatAvailableReactions {
+
+ public ReactionType[] reactions;
+
+ public int maxReactionCount;
+
+ public ChatAvailableReactionsSome() {
+ }
+
+ public ChatAvailableReactionsSome(ReactionType[] reactions, int maxReactionCount) {
+ this.reactions = reactions;
+ this.maxReactionCount = maxReactionCount;
+ }
+
+ public static final int CONSTRUCTOR = 152513153;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBackground extends Object {
+
+ public Background background;
+
+ public int darkThemeDimming;
+
+ public ChatBackground() {
+ }
+
+ public ChatBackground(Background background, int darkThemeDimming) {
+ this.background = background;
+ this.darkThemeDimming = darkThemeDimming;
+ }
+
+ public static final int CONSTRUCTOR = 1653152104;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBoost extends Object {
+
+ public String id;
+
+ public int count;
+
+ public ChatBoostSource source;
+
+ public int startDate;
+
+ public int expirationDate;
+
+ public ChatBoost() {
+ }
+
+ public ChatBoost(String id, int count, ChatBoostSource source, int startDate, int expirationDate) {
+ this.id = id;
+ this.count = count;
+ this.source = source;
+ this.startDate = startDate;
+ this.expirationDate = expirationDate;
+ }
+
+ public static final int CONSTRUCTOR = -1765815118;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBoostFeatures extends Object {
+
+ public ChatBoostLevelFeatures[] features;
+
+ public int minProfileBackgroundCustomEmojiBoostLevel;
+
+ public int minBackgroundCustomEmojiBoostLevel;
+
+ public int minEmojiStatusBoostLevel;
+
+ public int minChatThemeBackgroundBoostLevel;
+
+ public int minCustomBackgroundBoostLevel;
+
+ public int minCustomEmojiStickerSetBoostLevel;
+
+ public int minSpeechRecognitionBoostLevel;
+
+ public int minSponsoredMessageDisableBoostLevel;
+
+ public ChatBoostFeatures() {
+ }
+
+ public ChatBoostFeatures(ChatBoostLevelFeatures[] features, int minProfileBackgroundCustomEmojiBoostLevel, int minBackgroundCustomEmojiBoostLevel, int minEmojiStatusBoostLevel, int minChatThemeBackgroundBoostLevel, int minCustomBackgroundBoostLevel, int minCustomEmojiStickerSetBoostLevel, int minSpeechRecognitionBoostLevel, int minSponsoredMessageDisableBoostLevel) {
+ this.features = features;
+ this.minProfileBackgroundCustomEmojiBoostLevel = minProfileBackgroundCustomEmojiBoostLevel;
+ this.minBackgroundCustomEmojiBoostLevel = minBackgroundCustomEmojiBoostLevel;
+ this.minEmojiStatusBoostLevel = minEmojiStatusBoostLevel;
+ this.minChatThemeBackgroundBoostLevel = minChatThemeBackgroundBoostLevel;
+ this.minCustomBackgroundBoostLevel = minCustomBackgroundBoostLevel;
+ this.minCustomEmojiStickerSetBoostLevel = minCustomEmojiStickerSetBoostLevel;
+ this.minSpeechRecognitionBoostLevel = minSpeechRecognitionBoostLevel;
+ this.minSponsoredMessageDisableBoostLevel = minSponsoredMessageDisableBoostLevel;
+ }
+
+ public static final int CONSTRUCTOR = 866182642;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBoostLevelFeatures extends Object {
+
+ public int level;
+
+ public int storyPerDayCount;
+
+ public int customEmojiReactionCount;
+
+ public int titleColorCount;
+
+ public int profileAccentColorCount;
+
+ public boolean canSetProfileBackgroundCustomEmoji;
+
+ public int accentColorCount;
+
+ public boolean canSetBackgroundCustomEmoji;
+
+ public boolean canSetEmojiStatus;
+
+ public int chatThemeBackgroundCount;
+
+ public boolean canSetCustomBackground;
+
+ public boolean canSetCustomEmojiStickerSet;
+
+ public boolean canRecognizeSpeech;
+
+ public boolean canDisableSponsoredMessages;
+
+ public ChatBoostLevelFeatures() {
+ }
+
+ public ChatBoostLevelFeatures(int level, int storyPerDayCount, int customEmojiReactionCount, int titleColorCount, int profileAccentColorCount, boolean canSetProfileBackgroundCustomEmoji, int accentColorCount, boolean canSetBackgroundCustomEmoji, boolean canSetEmojiStatus, int chatThemeBackgroundCount, boolean canSetCustomBackground, boolean canSetCustomEmojiStickerSet, boolean canRecognizeSpeech, boolean canDisableSponsoredMessages) {
+ this.level = level;
+ this.storyPerDayCount = storyPerDayCount;
+ this.customEmojiReactionCount = customEmojiReactionCount;
+ this.titleColorCount = titleColorCount;
+ this.profileAccentColorCount = profileAccentColorCount;
+ this.canSetProfileBackgroundCustomEmoji = canSetProfileBackgroundCustomEmoji;
+ this.accentColorCount = accentColorCount;
+ this.canSetBackgroundCustomEmoji = canSetBackgroundCustomEmoji;
+ this.canSetEmojiStatus = canSetEmojiStatus;
+ this.chatThemeBackgroundCount = chatThemeBackgroundCount;
+ this.canSetCustomBackground = canSetCustomBackground;
+ this.canSetCustomEmojiStickerSet = canSetCustomEmojiStickerSet;
+ this.canRecognizeSpeech = canRecognizeSpeech;
+ this.canDisableSponsoredMessages = canDisableSponsoredMessages;
+ }
+
+ public static final int CONSTRUCTOR = -189458156;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBoostLink extends Object {
+
+ public String link;
+
+ public boolean isPublic;
+
+ public ChatBoostLink() {
+ }
+
+ public ChatBoostLink(String link, boolean isPublic) {
+ this.link = link;
+ this.isPublic = isPublic;
+ }
+
+ public static final int CONSTRUCTOR = -1253999503;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBoostLinkInfo extends Object {
+
+ public boolean isPublic;
+
+ public long chatId;
+
+ public ChatBoostLinkInfo() {
+ }
+
+ public ChatBoostLinkInfo(boolean isPublic, long chatId) {
+ this.isPublic = isPublic;
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = -602785660;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBoostSlot extends Object {
+
+ public int slotId;
+
+ public long currentlyBoostedChatId;
+
+ public int startDate;
+
+ public int expirationDate;
+
+ public int cooldownUntilDate;
+
+ public ChatBoostSlot() {
+ }
+
+ public ChatBoostSlot(int slotId, long currentlyBoostedChatId, int startDate, int expirationDate, int cooldownUntilDate) {
+ this.slotId = slotId;
+ this.currentlyBoostedChatId = currentlyBoostedChatId;
+ this.startDate = startDate;
+ this.expirationDate = expirationDate;
+ this.cooldownUntilDate = cooldownUntilDate;
+ }
+
+ public static final int CONSTRUCTOR = 123206343;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBoostSlots extends Object {
+
+ public ChatBoostSlot[] slots;
+
+ public ChatBoostSlots() {
+ }
+
+ public ChatBoostSlots(ChatBoostSlot[] slots) {
+ this.slots = slots;
+ }
+
+ public static final int CONSTRUCTOR = 1014966293;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatBoostSource extends Object {
+
+ public ChatBoostSource() {
+ }
+ }
+
+ public static class ChatBoostSourceGiftCode extends ChatBoostSource {
+
+ public long userId;
+
+ public String giftCode;
+
+ public ChatBoostSourceGiftCode() {
+ }
+
+ public ChatBoostSourceGiftCode(long userId, String giftCode) {
+ this.userId = userId;
+ this.giftCode = giftCode;
+ }
+
+ public static final int CONSTRUCTOR = -98299206;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBoostSourceGiveaway extends ChatBoostSource {
+
+ public long userId;
+
+ public String giftCode;
+
+ public long starCount;
+
+ public long giveawayMessageId;
+
+ public boolean isUnclaimed;
+
+ public ChatBoostSourceGiveaway() {
+ }
+
+ public ChatBoostSourceGiveaway(long userId, String giftCode, long starCount, long giveawayMessageId, boolean isUnclaimed) {
+ this.userId = userId;
+ this.giftCode = giftCode;
+ this.starCount = starCount;
+ this.giveawayMessageId = giveawayMessageId;
+ this.isUnclaimed = isUnclaimed;
+ }
+
+ public static final int CONSTRUCTOR = 1918145690;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBoostSourcePremium extends ChatBoostSource {
+
+ public long userId;
+
+ public ChatBoostSourcePremium() {
+ }
+
+ public ChatBoostSourcePremium(long userId) {
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = 972011;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatBoostStatus extends Object {
+
+ public String boostUrl;
+
+ public int[] appliedSlotIds;
+
+ public int level;
+
+ public int giftCodeBoostCount;
+
+ public int boostCount;
+
+ public int currentLevelBoostCount;
+
+ public int nextLevelBoostCount;
+
+ public int premiumMemberCount;
+
+ public double premiumMemberPercentage;
+
+ public PrepaidGiveaway[] prepaidGiveaways;
+
+ public ChatBoostStatus() {
+ }
+
+ public ChatBoostStatus(String boostUrl, int[] appliedSlotIds, int level, int giftCodeBoostCount, int boostCount, int currentLevelBoostCount, int nextLevelBoostCount, int premiumMemberCount, double premiumMemberPercentage, PrepaidGiveaway[] prepaidGiveaways) {
+ this.boostUrl = boostUrl;
+ this.appliedSlotIds = appliedSlotIds;
+ this.level = level;
+ this.giftCodeBoostCount = giftCodeBoostCount;
+ this.boostCount = boostCount;
+ this.currentLevelBoostCount = currentLevelBoostCount;
+ this.nextLevelBoostCount = nextLevelBoostCount;
+ this.premiumMemberCount = premiumMemberCount;
+ this.premiumMemberPercentage = premiumMemberPercentage;
+ this.prepaidGiveaways = prepaidGiveaways;
+ }
+
+ public static final int CONSTRUCTOR = -1050332618;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEvent extends Object {
+
+ public long id;
+
+ public int date;
+
+ public MessageSender memberId;
+
+ public ChatEventAction action;
+
+ public ChatEvent() {
+ }
+
+ public ChatEvent(long id, int date, MessageSender memberId, ChatEventAction action) {
+ this.id = id;
+ this.date = date;
+ this.memberId = memberId;
+ this.action = action;
+ }
+
+ public static final int CONSTRUCTOR = -652102704;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatEventAction extends Object {
+
+ public ChatEventAction() {
+ }
+ }
+
+ public static class ChatEventMessageEdited extends ChatEventAction {
+
+ public Message oldMessage;
+
+ public Message newMessage;
+
+ public ChatEventMessageEdited() {
+ }
+
+ public ChatEventMessageEdited(Message oldMessage, Message newMessage) {
+ this.oldMessage = oldMessage;
+ this.newMessage = newMessage;
+ }
+
+ public static final int CONSTRUCTOR = -430967304;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMessageDeleted extends ChatEventAction {
+
+ public Message message;
+
+ public boolean canReportAntiSpamFalsePositive;
+
+ public ChatEventMessageDeleted() {
+ }
+
+ public ChatEventMessageDeleted(Message message, boolean canReportAntiSpamFalsePositive) {
+ this.message = message;
+ this.canReportAntiSpamFalsePositive = canReportAntiSpamFalsePositive;
+ }
+
+ public static final int CONSTRUCTOR = 935316851;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMessagePinned extends ChatEventAction {
+
+ public Message message;
+
+ public ChatEventMessagePinned() {
+ }
+
+ public ChatEventMessagePinned(Message message) {
+ this.message = message;
+ }
+
+ public static final int CONSTRUCTOR = 438742298;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMessageUnpinned extends ChatEventAction {
+
+ public Message message;
+
+ public ChatEventMessageUnpinned() {
+ }
+
+ public ChatEventMessageUnpinned(Message message) {
+ this.message = message;
+ }
+
+ public static final int CONSTRUCTOR = -376161513;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventPollStopped extends ChatEventAction {
+
+ public Message message;
+
+ public ChatEventPollStopped() {
+ }
+
+ public ChatEventPollStopped(Message message) {
+ this.message = message;
+ }
+
+ public static final int CONSTRUCTOR = 2009893861;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMemberJoined extends ChatEventAction {
+ public ChatEventMemberJoined() {
+ }
+
+ public static final int CONSTRUCTOR = -235468508;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMemberJoinedByInviteLink extends ChatEventAction {
+
+ public ChatInviteLink inviteLink;
+
+ public boolean viaChatFolderInviteLink;
+
+ public ChatEventMemberJoinedByInviteLink() {
+ }
+
+ public ChatEventMemberJoinedByInviteLink(ChatInviteLink inviteLink, boolean viaChatFolderInviteLink) {
+ this.inviteLink = inviteLink;
+ this.viaChatFolderInviteLink = viaChatFolderInviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -1445536390;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMemberJoinedByRequest extends ChatEventAction {
+
+ public long approverUserId;
+
+ public ChatInviteLink inviteLink;
+
+ public ChatEventMemberJoinedByRequest() {
+ }
+
+ public ChatEventMemberJoinedByRequest(long approverUserId, ChatInviteLink inviteLink) {
+ this.approverUserId = approverUserId;
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -1647804865;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMemberInvited extends ChatEventAction {
+
+ public long userId;
+
+ public ChatMemberStatus status;
+
+ public ChatEventMemberInvited() {
+ }
+
+ public ChatEventMemberInvited(long userId, ChatMemberStatus status) {
+ this.userId = userId;
+ this.status = status;
+ }
+
+ public static final int CONSTRUCTOR = 953663433;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMemberLeft extends ChatEventAction {
+ public ChatEventMemberLeft() {
+ }
+
+ public static final int CONSTRUCTOR = -948420593;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMemberPromoted extends ChatEventAction {
+
+ public long userId;
+
+ public ChatMemberStatus oldStatus;
+
+ public ChatMemberStatus newStatus;
+
+ public ChatEventMemberPromoted() {
+ }
+
+ public ChatEventMemberPromoted(long userId, ChatMemberStatus oldStatus, ChatMemberStatus newStatus) {
+ this.userId = userId;
+ this.oldStatus = oldStatus;
+ this.newStatus = newStatus;
+ }
+
+ public static final int CONSTRUCTOR = 525297761;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMemberRestricted extends ChatEventAction {
+
+ public MessageSender memberId;
+
+ public ChatMemberStatus oldStatus;
+
+ public ChatMemberStatus newStatus;
+
+ public ChatEventMemberRestricted() {
+ }
+
+ public ChatEventMemberRestricted(MessageSender memberId, ChatMemberStatus oldStatus, ChatMemberStatus newStatus) {
+ this.memberId = memberId;
+ this.oldStatus = oldStatus;
+ this.newStatus = newStatus;
+ }
+
+ public static final int CONSTRUCTOR = 1603608069;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMemberSubscriptionExtended extends ChatEventAction {
+
+ public long userId;
+
+ public ChatMemberStatus oldStatus;
+
+ public ChatMemberStatus newStatus;
+
+ public ChatEventMemberSubscriptionExtended() {
+ }
+
+ public ChatEventMemberSubscriptionExtended(long userId, ChatMemberStatus oldStatus, ChatMemberStatus newStatus) {
+ this.userId = userId;
+ this.oldStatus = oldStatus;
+ this.newStatus = newStatus;
+ }
+
+ public static final int CONSTRUCTOR = -1141198846;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventAvailableReactionsChanged extends ChatEventAction {
+
+ public ChatAvailableReactions oldAvailableReactions;
+
+ public ChatAvailableReactions newAvailableReactions;
+
+ public ChatEventAvailableReactionsChanged() {
+ }
+
+ public ChatEventAvailableReactionsChanged(ChatAvailableReactions oldAvailableReactions, ChatAvailableReactions newAvailableReactions) {
+ this.oldAvailableReactions = oldAvailableReactions;
+ this.newAvailableReactions = newAvailableReactions;
+ }
+
+ public static final int CONSTRUCTOR = -1749491521;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventBackgroundChanged extends ChatEventAction {
+
+ public ChatBackground oldBackground;
+
+ public ChatBackground newBackground;
+
+ public ChatEventBackgroundChanged() {
+ }
+
+ public ChatEventBackgroundChanged(ChatBackground oldBackground, ChatBackground newBackground) {
+ this.oldBackground = oldBackground;
+ this.newBackground = newBackground;
+ }
+
+ public static final int CONSTRUCTOR = -1225953992;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventDescriptionChanged extends ChatEventAction {
+
+ public String oldDescription;
+
+ public String newDescription;
+
+ public ChatEventDescriptionChanged() {
+ }
+
+ public ChatEventDescriptionChanged(String oldDescription, String newDescription) {
+ this.oldDescription = oldDescription;
+ this.newDescription = newDescription;
+ }
+
+ public static final int CONSTRUCTOR = 39112478;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventEmojiStatusChanged extends ChatEventAction {
+
+ public EmojiStatus oldEmojiStatus;
+
+ public EmojiStatus newEmojiStatus;
+
+ public ChatEventEmojiStatusChanged() {
+ }
+
+ public ChatEventEmojiStatusChanged(EmojiStatus oldEmojiStatus, EmojiStatus newEmojiStatus) {
+ this.oldEmojiStatus = oldEmojiStatus;
+ this.newEmojiStatus = newEmojiStatus;
+ }
+
+ public static final int CONSTRUCTOR = -2081850594;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventLinkedChatChanged extends ChatEventAction {
+
+ public long oldLinkedChatId;
+
+ public long newLinkedChatId;
+
+ public ChatEventLinkedChatChanged() {
+ }
+
+ public ChatEventLinkedChatChanged(long oldLinkedChatId, long newLinkedChatId) {
+ this.oldLinkedChatId = oldLinkedChatId;
+ this.newLinkedChatId = newLinkedChatId;
+ }
+
+ public static final int CONSTRUCTOR = 1797419439;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventLocationChanged extends ChatEventAction {
+
+ public ChatLocation oldLocation;
+
+ public ChatLocation newLocation;
+
+ public ChatEventLocationChanged() {
+ }
+
+ public ChatEventLocationChanged(ChatLocation oldLocation, ChatLocation newLocation) {
+ this.oldLocation = oldLocation;
+ this.newLocation = newLocation;
+ }
+
+ public static final int CONSTRUCTOR = -405930674;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventMessageAutoDeleteTimeChanged extends ChatEventAction {
+
+ public int oldMessageAutoDeleteTime;
+
+ public int newMessageAutoDeleteTime;
+
+ public ChatEventMessageAutoDeleteTimeChanged() {
+ }
+
+ public ChatEventMessageAutoDeleteTimeChanged(int oldMessageAutoDeleteTime, int newMessageAutoDeleteTime) {
+ this.oldMessageAutoDeleteTime = oldMessageAutoDeleteTime;
+ this.newMessageAutoDeleteTime = newMessageAutoDeleteTime;
+ }
+
+ public static final int CONSTRUCTOR = 17317668;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventPermissionsChanged extends ChatEventAction {
+
+ public ChatPermissions oldPermissions;
+
+ public ChatPermissions newPermissions;
+
+ public ChatEventPermissionsChanged() {
+ }
+
+ public ChatEventPermissionsChanged(ChatPermissions oldPermissions, ChatPermissions newPermissions) {
+ this.oldPermissions = oldPermissions;
+ this.newPermissions = newPermissions;
+ }
+
+ public static final int CONSTRUCTOR = -1311557720;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventPhotoChanged extends ChatEventAction {
+
+ public ChatPhoto oldPhoto;
+
+ public ChatPhoto newPhoto;
+
+ public ChatEventPhotoChanged() {
+ }
+
+ public ChatEventPhotoChanged(ChatPhoto oldPhoto, ChatPhoto newPhoto) {
+ this.oldPhoto = oldPhoto;
+ this.newPhoto = newPhoto;
+ }
+
+ public static final int CONSTRUCTOR = -811572541;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventSlowModeDelayChanged extends ChatEventAction {
+
+ public int oldSlowModeDelay;
+
+ public int newSlowModeDelay;
+
+ public ChatEventSlowModeDelayChanged() {
+ }
+
+ public ChatEventSlowModeDelayChanged(int oldSlowModeDelay, int newSlowModeDelay) {
+ this.oldSlowModeDelay = oldSlowModeDelay;
+ this.newSlowModeDelay = newSlowModeDelay;
+ }
+
+ public static final int CONSTRUCTOR = -1653195765;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventStickerSetChanged extends ChatEventAction {
+
+ public long oldStickerSetId;
+
+ public long newStickerSetId;
+
+ public ChatEventStickerSetChanged() {
+ }
+
+ public ChatEventStickerSetChanged(long oldStickerSetId, long newStickerSetId) {
+ this.oldStickerSetId = oldStickerSetId;
+ this.newStickerSetId = newStickerSetId;
+ }
+
+ public static final int CONSTRUCTOR = -1243130481;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventCustomEmojiStickerSetChanged extends ChatEventAction {
+
+ public long oldStickerSetId;
+
+ public long newStickerSetId;
+
+ public ChatEventCustomEmojiStickerSetChanged() {
+ }
+
+ public ChatEventCustomEmojiStickerSetChanged(long oldStickerSetId, long newStickerSetId) {
+ this.oldStickerSetId = oldStickerSetId;
+ this.newStickerSetId = newStickerSetId;
+ }
+
+ public static final int CONSTRUCTOR = 118244123;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventTitleChanged extends ChatEventAction {
+
+ public String oldTitle;
+
+ public String newTitle;
+
+ public ChatEventTitleChanged() {
+ }
+
+ public ChatEventTitleChanged(String oldTitle, String newTitle) {
+ this.oldTitle = oldTitle;
+ this.newTitle = newTitle;
+ }
+
+ public static final int CONSTRUCTOR = 1134103250;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventUsernameChanged extends ChatEventAction {
+
+ public String oldUsername;
+
+ public String newUsername;
+
+ public ChatEventUsernameChanged() {
+ }
+
+ public ChatEventUsernameChanged(String oldUsername, String newUsername) {
+ this.oldUsername = oldUsername;
+ this.newUsername = newUsername;
+ }
+
+ public static final int CONSTRUCTOR = 1728558443;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventActiveUsernamesChanged extends ChatEventAction {
+
+ public String[] oldUsernames;
+
+ public String[] newUsernames;
+
+ public ChatEventActiveUsernamesChanged() {
+ }
+
+ public ChatEventActiveUsernamesChanged(String[] oldUsernames, String[] newUsernames) {
+ this.oldUsernames = oldUsernames;
+ this.newUsernames = newUsernames;
+ }
+
+ public static final int CONSTRUCTOR = -1508790810;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventAccentColorChanged extends ChatEventAction {
+
+ public int oldAccentColorId;
+
+ public long oldBackgroundCustomEmojiId;
+
+ public int newAccentColorId;
+
+ public long newBackgroundCustomEmojiId;
+
+ public ChatEventAccentColorChanged() {
+ }
+
+ public ChatEventAccentColorChanged(int oldAccentColorId, long oldBackgroundCustomEmojiId, int newAccentColorId, long newBackgroundCustomEmojiId) {
+ this.oldAccentColorId = oldAccentColorId;
+ this.oldBackgroundCustomEmojiId = oldBackgroundCustomEmojiId;
+ this.newAccentColorId = newAccentColorId;
+ this.newBackgroundCustomEmojiId = newBackgroundCustomEmojiId;
+ }
+
+ public static final int CONSTRUCTOR = -427591885;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventProfileAccentColorChanged extends ChatEventAction {
+
+ public int oldProfileAccentColorId;
+
+ public long oldProfileBackgroundCustomEmojiId;
+
+ public int newProfileAccentColorId;
+
+ public long newProfileBackgroundCustomEmojiId;
+
+ public ChatEventProfileAccentColorChanged() {
+ }
+
+ public ChatEventProfileAccentColorChanged(int oldProfileAccentColorId, long oldProfileBackgroundCustomEmojiId, int newProfileAccentColorId, long newProfileBackgroundCustomEmojiId) {
+ this.oldProfileAccentColorId = oldProfileAccentColorId;
+ this.oldProfileBackgroundCustomEmojiId = oldProfileBackgroundCustomEmojiId;
+ this.newProfileAccentColorId = newProfileAccentColorId;
+ this.newProfileBackgroundCustomEmojiId = newProfileBackgroundCustomEmojiId;
+ }
+
+ public static final int CONSTRUCTOR = -1514612124;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventHasProtectedContentToggled extends ChatEventAction {
+
+ public boolean hasProtectedContent;
+
+ public ChatEventHasProtectedContentToggled() {
+ }
+
+ public ChatEventHasProtectedContentToggled(boolean hasProtectedContent) {
+ this.hasProtectedContent = hasProtectedContent;
+ }
+
+ public static final int CONSTRUCTOR = -184270335;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventInvitesToggled extends ChatEventAction {
+
+ public boolean canInviteUsers;
+
+ public ChatEventInvitesToggled() {
+ }
+
+ public ChatEventInvitesToggled(boolean canInviteUsers) {
+ this.canInviteUsers = canInviteUsers;
+ }
+
+ public static final int CONSTRUCTOR = -62548373;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventIsAllHistoryAvailableToggled extends ChatEventAction {
+
+ public boolean isAllHistoryAvailable;
+
+ public ChatEventIsAllHistoryAvailableToggled() {
+ }
+
+ public ChatEventIsAllHistoryAvailableToggled(boolean isAllHistoryAvailable) {
+ this.isAllHistoryAvailable = isAllHistoryAvailable;
+ }
+
+ public static final int CONSTRUCTOR = -1599063019;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventHasAggressiveAntiSpamEnabledToggled extends ChatEventAction {
+
+ public boolean hasAggressiveAntiSpamEnabled;
+
+ public ChatEventHasAggressiveAntiSpamEnabledToggled() {
+ }
+
+ public ChatEventHasAggressiveAntiSpamEnabledToggled(boolean hasAggressiveAntiSpamEnabled) {
+ this.hasAggressiveAntiSpamEnabled = hasAggressiveAntiSpamEnabled;
+ }
+
+ public static final int CONSTRUCTOR = -125348094;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventSignMessagesToggled extends ChatEventAction {
+
+ public boolean signMessages;
+
+ public ChatEventSignMessagesToggled() {
+ }
+
+ public ChatEventSignMessagesToggled(boolean signMessages) {
+ this.signMessages = signMessages;
+ }
+
+ public static final int CONSTRUCTOR = -1313265634;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventShowMessageSenderToggled extends ChatEventAction {
+
+ public boolean showMessageSender;
+
+ public ChatEventShowMessageSenderToggled() {
+ }
+
+ public ChatEventShowMessageSenderToggled(boolean showMessageSender) {
+ this.showMessageSender = showMessageSender;
+ }
+
+ public static final int CONSTRUCTOR = -794343453;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventInviteLinkEdited extends ChatEventAction {
+
+ public ChatInviteLink oldInviteLink;
+
+ public ChatInviteLink newInviteLink;
+
+ public ChatEventInviteLinkEdited() {
+ }
+
+ public ChatEventInviteLinkEdited(ChatInviteLink oldInviteLink, ChatInviteLink newInviteLink) {
+ this.oldInviteLink = oldInviteLink;
+ this.newInviteLink = newInviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -460190366;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventInviteLinkRevoked extends ChatEventAction {
+
+ public ChatInviteLink inviteLink;
+
+ public ChatEventInviteLinkRevoked() {
+ }
+
+ public ChatEventInviteLinkRevoked(ChatInviteLink inviteLink) {
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -1579417629;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventInviteLinkDeleted extends ChatEventAction {
+
+ public ChatInviteLink inviteLink;
+
+ public ChatEventInviteLinkDeleted() {
+ }
+
+ public ChatEventInviteLinkDeleted(ChatInviteLink inviteLink) {
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -1394974361;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventVideoChatCreated extends ChatEventAction {
+
+ public int groupCallId;
+
+ public ChatEventVideoChatCreated() {
+ }
+
+ public ChatEventVideoChatCreated(int groupCallId) {
+ this.groupCallId = groupCallId;
+ }
+
+ public static final int CONSTRUCTOR = 1822853755;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventVideoChatEnded extends ChatEventAction {
+
+ public int groupCallId;
+
+ public ChatEventVideoChatEnded() {
+ }
+
+ public ChatEventVideoChatEnded(int groupCallId) {
+ this.groupCallId = groupCallId;
+ }
+
+ public static final int CONSTRUCTOR = 1630039112;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventVideoChatMuteNewParticipantsToggled extends ChatEventAction {
+
+ public boolean muteNewParticipants;
+
+ public ChatEventVideoChatMuteNewParticipantsToggled() {
+ }
+
+ public ChatEventVideoChatMuteNewParticipantsToggled(boolean muteNewParticipants) {
+ this.muteNewParticipants = muteNewParticipants;
+ }
+
+ public static final int CONSTRUCTOR = -126547970;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventVideoChatParticipantIsMutedToggled extends ChatEventAction {
+
+ public MessageSender participantId;
+
+ public boolean isMuted;
+
+ public ChatEventVideoChatParticipantIsMutedToggled() {
+ }
+
+ public ChatEventVideoChatParticipantIsMutedToggled(MessageSender participantId, boolean isMuted) {
+ this.participantId = participantId;
+ this.isMuted = isMuted;
+ }
+
+ public static final int CONSTRUCTOR = 521165047;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventVideoChatParticipantVolumeLevelChanged extends ChatEventAction {
+
+ public MessageSender participantId;
+
+ public int volumeLevel;
+
+ public ChatEventVideoChatParticipantVolumeLevelChanged() {
+ }
+
+ public ChatEventVideoChatParticipantVolumeLevelChanged(MessageSender participantId, int volumeLevel) {
+ this.participantId = participantId;
+ this.volumeLevel = volumeLevel;
+ }
+
+ public static final int CONSTRUCTOR = 1131385534;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventIsForumToggled extends ChatEventAction {
+
+ public boolean isForum;
+
+ public ChatEventIsForumToggled() {
+ }
+
+ public ChatEventIsForumToggled(boolean isForum) {
+ this.isForum = isForum;
+ }
+
+ public static final int CONSTRUCTOR = 1516491033;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventForumTopicCreated extends ChatEventAction {
+
+ public ForumTopicInfo topicInfo;
+
+ public ChatEventForumTopicCreated() {
+ }
+
+ public ChatEventForumTopicCreated(ForumTopicInfo topicInfo) {
+ this.topicInfo = topicInfo;
+ }
+
+ public static final int CONSTRUCTOR = 2005269314;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventForumTopicEdited extends ChatEventAction {
+
+ public ForumTopicInfo oldTopicInfo;
+
+ public ForumTopicInfo newTopicInfo;
+
+ public ChatEventForumTopicEdited() {
+ }
+
+ public ChatEventForumTopicEdited(ForumTopicInfo oldTopicInfo, ForumTopicInfo newTopicInfo) {
+ this.oldTopicInfo = oldTopicInfo;
+ this.newTopicInfo = newTopicInfo;
+ }
+
+ public static final int CONSTRUCTOR = 1624910860;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventForumTopicToggleIsClosed extends ChatEventAction {
+
+ public ForumTopicInfo topicInfo;
+
+ public ChatEventForumTopicToggleIsClosed() {
+ }
+
+ public ChatEventForumTopicToggleIsClosed(ForumTopicInfo topicInfo) {
+ this.topicInfo = topicInfo;
+ }
+
+ public static final int CONSTRUCTOR = -962704070;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventForumTopicToggleIsHidden extends ChatEventAction {
+
+ public ForumTopicInfo topicInfo;
+
+ public ChatEventForumTopicToggleIsHidden() {
+ }
+
+ public ChatEventForumTopicToggleIsHidden(ForumTopicInfo topicInfo) {
+ this.topicInfo = topicInfo;
+ }
+
+ public static final int CONSTRUCTOR = -1609175250;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventForumTopicDeleted extends ChatEventAction {
+
+ public ForumTopicInfo topicInfo;
+
+ public ChatEventForumTopicDeleted() {
+ }
+
+ public ChatEventForumTopicDeleted(ForumTopicInfo topicInfo) {
+ this.topicInfo = topicInfo;
+ }
+
+ public static final int CONSTRUCTOR = -1332795123;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventForumTopicPinned extends ChatEventAction {
+
+ public ForumTopicInfo oldTopicInfo;
+
+ public ForumTopicInfo newTopicInfo;
+
+ public ChatEventForumTopicPinned() {
+ }
+
+ public ChatEventForumTopicPinned(ForumTopicInfo oldTopicInfo, ForumTopicInfo newTopicInfo) {
+ this.oldTopicInfo = oldTopicInfo;
+ this.newTopicInfo = newTopicInfo;
+ }
+
+ public static final int CONSTRUCTOR = 2143626222;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEventLogFilters extends Object {
+
+ public boolean messageEdits;
+
+ public boolean messageDeletions;
+
+ public boolean messagePins;
+
+ public boolean memberJoins;
+
+ public boolean memberLeaves;
+
+ public boolean memberInvites;
+
+ public boolean memberPromotions;
+
+ public boolean memberRestrictions;
+
+ public boolean infoChanges;
+
+ public boolean settingChanges;
+
+ public boolean inviteLinkChanges;
+
+ public boolean videoChatChanges;
+
+ public boolean forumChanges;
+
+ public boolean subscriptionExtensions;
+
+ public ChatEventLogFilters() {
+ }
+
+ public ChatEventLogFilters(boolean messageEdits, boolean messageDeletions, boolean messagePins, boolean memberJoins, boolean memberLeaves, boolean memberInvites, boolean memberPromotions, boolean memberRestrictions, boolean infoChanges, boolean settingChanges, boolean inviteLinkChanges, boolean videoChatChanges, boolean forumChanges, boolean subscriptionExtensions) {
+ this.messageEdits = messageEdits;
+ this.messageDeletions = messageDeletions;
+ this.messagePins = messagePins;
+ this.memberJoins = memberJoins;
+ this.memberLeaves = memberLeaves;
+ this.memberInvites = memberInvites;
+ this.memberPromotions = memberPromotions;
+ this.memberRestrictions = memberRestrictions;
+ this.infoChanges = infoChanges;
+ this.settingChanges = settingChanges;
+ this.inviteLinkChanges = inviteLinkChanges;
+ this.videoChatChanges = videoChatChanges;
+ this.forumChanges = forumChanges;
+ this.subscriptionExtensions = subscriptionExtensions;
+ }
+
+ public static final int CONSTRUCTOR = -1032965711;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatEvents extends Object {
+
+ public ChatEvent[] events;
+
+ public ChatEvents() {
+ }
+
+ public ChatEvents(ChatEvent[] events) {
+ this.events = events;
+ }
+
+ public static final int CONSTRUCTOR = -585329664;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatFolder extends Object {
+
+ public String title;
+
+ public ChatFolderIcon icon;
+
+ public int colorId;
+
+ public boolean isShareable;
+
+ public long[] pinnedChatIds;
+
+ public long[] includedChatIds;
+
+ public long[] excludedChatIds;
+
+ public boolean excludeMuted;
+
+ public boolean excludeRead;
+
+ public boolean excludeArchived;
+
+ public boolean includeContacts;
+
+ public boolean includeNonContacts;
+
+ public boolean includeBots;
+
+ public boolean includeGroups;
+
+ public boolean includeChannels;
+
+ public ChatFolder() {
+ }
+
+ public ChatFolder(String title, ChatFolderIcon icon, int colorId, boolean isShareable, long[] pinnedChatIds, long[] includedChatIds, long[] excludedChatIds, boolean excludeMuted, boolean excludeRead, boolean excludeArchived, boolean includeContacts, boolean includeNonContacts, boolean includeBots, boolean includeGroups, boolean includeChannels) {
+ this.title = title;
+ this.icon = icon;
+ this.colorId = colorId;
+ this.isShareable = isShareable;
+ this.pinnedChatIds = pinnedChatIds;
+ this.includedChatIds = includedChatIds;
+ this.excludedChatIds = excludedChatIds;
+ this.excludeMuted = excludeMuted;
+ this.excludeRead = excludeRead;
+ this.excludeArchived = excludeArchived;
+ this.includeContacts = includeContacts;
+ this.includeNonContacts = includeNonContacts;
+ this.includeBots = includeBots;
+ this.includeGroups = includeGroups;
+ this.includeChannels = includeChannels;
+ }
+
+ public static final int CONSTRUCTOR = -474905057;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatFolderIcon extends Object {
+
+ public String name;
+
+ public ChatFolderIcon() {
+ }
+
+ public ChatFolderIcon(String name) {
+ this.name = name;
+ }
+
+ public static final int CONSTRUCTOR = -146104090;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatFolderInfo extends Object {
+
+ public int id;
+
+ public String title;
+
+ public ChatFolderIcon icon;
+
+ public int colorId;
+
+ public boolean isShareable;
+
+ public boolean hasMyInviteLinks;
+
+ public ChatFolderInfo() {
+ }
+
+ public ChatFolderInfo(int id, String title, ChatFolderIcon icon, int colorId, boolean isShareable, boolean hasMyInviteLinks) {
+ this.id = id;
+ this.title = title;
+ this.icon = icon;
+ this.colorId = colorId;
+ this.isShareable = isShareable;
+ this.hasMyInviteLinks = hasMyInviteLinks;
+ }
+
+ public static final int CONSTRUCTOR = 190948485;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatFolderInviteLink extends Object {
+
+ public String inviteLink;
+
+ public String name;
+
+ public long[] chatIds;
+
+ public ChatFolderInviteLink() {
+ }
+
+ public ChatFolderInviteLink(String inviteLink, String name, long[] chatIds) {
+ this.inviteLink = inviteLink;
+ this.name = name;
+ this.chatIds = chatIds;
+ }
+
+ public static final int CONSTRUCTOR = 493969661;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatFolderInviteLinkInfo extends Object {
+
+ public ChatFolderInfo chatFolderInfo;
+
+ public long[] missingChatIds;
+
+ public long[] addedChatIds;
+
+ public ChatFolderInviteLinkInfo() {
+ }
+
+ public ChatFolderInviteLinkInfo(ChatFolderInfo chatFolderInfo, long[] missingChatIds, long[] addedChatIds) {
+ this.chatFolderInfo = chatFolderInfo;
+ this.missingChatIds = missingChatIds;
+ this.addedChatIds = addedChatIds;
+ }
+
+ public static final int CONSTRUCTOR = 1119450395;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatFolderInviteLinks extends Object {
+
+ public ChatFolderInviteLink[] inviteLinks;
+
+ public ChatFolderInviteLinks() {
+ }
+
+ public ChatFolderInviteLinks(ChatFolderInviteLink[] inviteLinks) {
+ this.inviteLinks = inviteLinks;
+ }
+
+ public static final int CONSTRUCTOR = 1853351525;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatInviteLink extends Object {
+
+ public String inviteLink;
+
+ public String name;
+
+ public long creatorUserId;
+
+ public int date;
+
+ public int editDate;
+
+ public int expirationDate;
+
+ public StarSubscriptionPricing subscriptionPricing;
+
+ public int memberLimit;
+
+ public int memberCount;
+
+ public int expiredMemberCount;
+
+ public int pendingJoinRequestCount;
+
+ public boolean createsJoinRequest;
+
+ public boolean isPrimary;
+
+ public boolean isRevoked;
+
+ public ChatInviteLink() {
+ }
+
+ public ChatInviteLink(String inviteLink, String name, long creatorUserId, int date, int editDate, int expirationDate, StarSubscriptionPricing subscriptionPricing, int memberLimit, int memberCount, int expiredMemberCount, int pendingJoinRequestCount, boolean createsJoinRequest, boolean isPrimary, boolean isRevoked) {
+ this.inviteLink = inviteLink;
+ this.name = name;
+ this.creatorUserId = creatorUserId;
+ this.date = date;
+ this.editDate = editDate;
+ this.expirationDate = expirationDate;
+ this.subscriptionPricing = subscriptionPricing;
+ this.memberLimit = memberLimit;
+ this.memberCount = memberCount;
+ this.expiredMemberCount = expiredMemberCount;
+ this.pendingJoinRequestCount = pendingJoinRequestCount;
+ this.createsJoinRequest = createsJoinRequest;
+ this.isPrimary = isPrimary;
+ this.isRevoked = isRevoked;
+ }
+
+ public static final int CONSTRUCTOR = -957651664;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatInviteLinkCount extends Object {
+
+ public long userId;
+
+ public int inviteLinkCount;
+
+ public int revokedInviteLinkCount;
+
+ public ChatInviteLinkCount() {
+ }
+
+ public ChatInviteLinkCount(long userId, int inviteLinkCount, int revokedInviteLinkCount) {
+ this.userId = userId;
+ this.inviteLinkCount = inviteLinkCount;
+ this.revokedInviteLinkCount = revokedInviteLinkCount;
+ }
+
+ public static final int CONSTRUCTOR = -1021999210;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatInviteLinkCounts extends Object {
+
+ public ChatInviteLinkCount[] inviteLinkCounts;
+
+ public ChatInviteLinkCounts() {
+ }
+
+ public ChatInviteLinkCounts(ChatInviteLinkCount[] inviteLinkCounts) {
+ this.inviteLinkCounts = inviteLinkCounts;
+ }
+
+ public static final int CONSTRUCTOR = 920326637;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatInviteLinkInfo extends Object {
+
+ public long chatId;
+
+ public int accessibleFor;
+
+ public InviteLinkChatType type;
+
+ public String title;
+
+ public ChatPhotoInfo photo;
+
+ public int accentColorId;
+
+ public String description;
+
+ public int memberCount;
+
+ public long[] memberUserIds;
+
+ public ChatInviteLinkSubscriptionInfo subscriptionInfo;
+
+ public boolean createsJoinRequest;
+
+ public boolean isPublic;
+
+ public boolean isVerified;
+
+ public boolean isScam;
+
+ public boolean isFake;
+
+ public ChatInviteLinkInfo() {
+ }
+
+ public ChatInviteLinkInfo(long chatId, int accessibleFor, InviteLinkChatType type, String title, ChatPhotoInfo photo, int accentColorId, String description, int memberCount, long[] memberUserIds, ChatInviteLinkSubscriptionInfo subscriptionInfo, boolean createsJoinRequest, boolean isPublic, boolean isVerified, boolean isScam, boolean isFake) {
+ this.chatId = chatId;
+ this.accessibleFor = accessibleFor;
+ this.type = type;
+ this.title = title;
+ this.photo = photo;
+ this.accentColorId = accentColorId;
+ this.description = description;
+ this.memberCount = memberCount;
+ this.memberUserIds = memberUserIds;
+ this.subscriptionInfo = subscriptionInfo;
+ this.createsJoinRequest = createsJoinRequest;
+ this.isPublic = isPublic;
+ this.isVerified = isVerified;
+ this.isScam = isScam;
+ this.isFake = isFake;
+ }
+
+ public static final int CONSTRUCTOR = 2052328938;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatInviteLinkMember extends Object {
+
+ public long userId;
+
+ public int joinedChatDate;
+
+ public boolean viaChatFolderInviteLink;
+
+ public long approverUserId;
+
+ public ChatInviteLinkMember() {
+ }
+
+ public ChatInviteLinkMember(long userId, int joinedChatDate, boolean viaChatFolderInviteLink, long approverUserId) {
+ this.userId = userId;
+ this.joinedChatDate = joinedChatDate;
+ this.viaChatFolderInviteLink = viaChatFolderInviteLink;
+ this.approverUserId = approverUserId;
+ }
+
+ public static final int CONSTRUCTOR = 29156795;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatInviteLinkMembers extends Object {
+
+ public int totalCount;
+
+ public ChatInviteLinkMember[] members;
+
+ public ChatInviteLinkMembers() {
+ }
+
+ public ChatInviteLinkMembers(int totalCount, ChatInviteLinkMember[] members) {
+ this.totalCount = totalCount;
+ this.members = members;
+ }
+
+ public static final int CONSTRUCTOR = 315635051;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatInviteLinkSubscriptionInfo extends Object {
+
+ public StarSubscriptionPricing pricing;
+
+ public boolean canReuse;
+
+ public long formId;
+
+ public ChatInviteLinkSubscriptionInfo() {
+ }
+
+ public ChatInviteLinkSubscriptionInfo(StarSubscriptionPricing pricing, boolean canReuse, long formId) {
+ this.pricing = pricing;
+ this.canReuse = canReuse;
+ this.formId = formId;
+ }
+
+ public static final int CONSTRUCTOR = 953119592;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatInviteLinks extends Object {
+
+ public int totalCount;
+
+ public ChatInviteLink[] inviteLinks;
+
+ public ChatInviteLinks() {
+ }
+
+ public ChatInviteLinks(int totalCount, ChatInviteLink[] inviteLinks) {
+ this.totalCount = totalCount;
+ this.inviteLinks = inviteLinks;
+ }
+
+ public static final int CONSTRUCTOR = 112891427;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatJoinRequest extends Object {
+
+ public long userId;
+
+ public int date;
+
+ public String bio;
+
+ public ChatJoinRequest() {
+ }
+
+ public ChatJoinRequest(long userId, int date, String bio) {
+ this.userId = userId;
+ this.date = date;
+ this.bio = bio;
+ }
+
+ public static final int CONSTRUCTOR = 59341416;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatJoinRequests extends Object {
+
+ public int totalCount;
+
+ public ChatJoinRequest[] requests;
+
+ public ChatJoinRequests() {
+ }
+
+ public ChatJoinRequests(int totalCount, ChatJoinRequest[] requests) {
+ this.totalCount = totalCount;
+ this.requests = requests;
+ }
+
+ public static final int CONSTRUCTOR = 1291680519;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatJoinRequestsInfo extends Object {
+
+ public int totalCount;
+
+ public long[] userIds;
+
+ public ChatJoinRequestsInfo() {
+ }
+
+ public ChatJoinRequestsInfo(int totalCount, long[] userIds) {
+ this.totalCount = totalCount;
+ this.userIds = userIds;
+ }
+
+ public static final int CONSTRUCTOR = 888534463;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatList extends Object {
+
+ public ChatList() {
+ }
+ }
+
+ public static class ChatListMain extends ChatList {
+ public ChatListMain() {
+ }
+
+ public static final int CONSTRUCTOR = -400991316;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatListArchive extends ChatList {
+ public ChatListArchive() {
+ }
+
+ public static final int CONSTRUCTOR = 362770115;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatListFolder extends ChatList {
+
+ public int chatFolderId;
+
+ public ChatListFolder() {
+ }
+
+ public ChatListFolder(int chatFolderId) {
+ this.chatFolderId = chatFolderId;
+ }
+
+ public static final int CONSTRUCTOR = 385760856;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatLists extends Object {
+
+ public ChatList[] chatLists;
+
+ public ChatLists() {
+ }
+
+ public ChatLists(ChatList[] chatLists) {
+ this.chatLists = chatLists;
+ }
+
+ public static final int CONSTRUCTOR = -258292771;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatLocation extends Object {
+
+ public Location location;
+
+ public String address;
+
+ public ChatLocation() {
+ }
+
+ public ChatLocation(Location location, String address) {
+ this.location = location;
+ this.address = address;
+ }
+
+ public static final int CONSTRUCTOR = -1566863583;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMember extends Object {
+
+ public MessageSender memberId;
+
+ public long inviterUserId;
+
+ public int joinedChatDate;
+
+ public ChatMemberStatus status;
+
+ public ChatMember() {
+ }
+
+ public ChatMember(MessageSender memberId, long inviterUserId, int joinedChatDate, ChatMemberStatus status) {
+ this.memberId = memberId;
+ this.inviterUserId = inviterUserId;
+ this.joinedChatDate = joinedChatDate;
+ this.status = status;
+ }
+
+ public static final int CONSTRUCTOR = 1829953909;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatMemberStatus extends Object {
+
+ public ChatMemberStatus() {
+ }
+ }
+
+ public static class ChatMemberStatusCreator extends ChatMemberStatus {
+
+ public String customTitle;
+
+ public boolean isAnonymous;
+
+ public boolean isMember;
+
+ public ChatMemberStatusCreator() {
+ }
+
+ public ChatMemberStatusCreator(String customTitle, boolean isAnonymous, boolean isMember) {
+ this.customTitle = customTitle;
+ this.isAnonymous = isAnonymous;
+ this.isMember = isMember;
+ }
+
+ public static final int CONSTRUCTOR = -160019714;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMemberStatusAdministrator extends ChatMemberStatus {
+
+ public String customTitle;
+
+ public boolean canBeEdited;
+
+ public ChatAdministratorRights rights;
+
+ public ChatMemberStatusAdministrator() {
+ }
+
+ public ChatMemberStatusAdministrator(String customTitle, boolean canBeEdited, ChatAdministratorRights rights) {
+ this.customTitle = customTitle;
+ this.canBeEdited = canBeEdited;
+ this.rights = rights;
+ }
+
+ public static final int CONSTRUCTOR = -70024163;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMemberStatusMember extends ChatMemberStatus {
+
+ public int memberUntilDate;
+
+ public ChatMemberStatusMember() {
+ }
+
+ public ChatMemberStatusMember(int memberUntilDate) {
+ this.memberUntilDate = memberUntilDate;
+ }
+
+ public static final int CONSTRUCTOR = -32707562;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMemberStatusRestricted extends ChatMemberStatus {
+
+ public boolean isMember;
+
+ public int restrictedUntilDate;
+
+ public ChatPermissions permissions;
+
+ public ChatMemberStatusRestricted() {
+ }
+
+ public ChatMemberStatusRestricted(boolean isMember, int restrictedUntilDate, ChatPermissions permissions) {
+ this.isMember = isMember;
+ this.restrictedUntilDate = restrictedUntilDate;
+ this.permissions = permissions;
+ }
+
+ public static final int CONSTRUCTOR = 1661432998;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMemberStatusLeft extends ChatMemberStatus {
+ public ChatMemberStatusLeft() {
+ }
+
+ public static final int CONSTRUCTOR = -5815259;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMemberStatusBanned extends ChatMemberStatus {
+
+ public int bannedUntilDate;
+
+ public ChatMemberStatusBanned() {
+ }
+
+ public ChatMemberStatusBanned(int bannedUntilDate) {
+ this.bannedUntilDate = bannedUntilDate;
+ }
+
+ public static final int CONSTRUCTOR = -1653518666;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMembers extends Object {
+
+ public int totalCount;
+
+ public ChatMember[] members;
+
+ public ChatMembers() {
+ }
+
+ public ChatMembers(int totalCount, ChatMember[] members) {
+ this.totalCount = totalCount;
+ this.members = members;
+ }
+
+ public static final int CONSTRUCTOR = -497558622;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatMembersFilter extends Object {
+
+ public ChatMembersFilter() {
+ }
+ }
+
+ public static class ChatMembersFilterContacts extends ChatMembersFilter {
+ public ChatMembersFilterContacts() {
+ }
+
+ public static final int CONSTRUCTOR = 1774485671;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMembersFilterAdministrators extends ChatMembersFilter {
+ public ChatMembersFilterAdministrators() {
+ }
+
+ public static final int CONSTRUCTOR = -1266893796;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMembersFilterMembers extends ChatMembersFilter {
+ public ChatMembersFilterMembers() {
+ }
+
+ public static final int CONSTRUCTOR = 670504342;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMembersFilterMention extends ChatMembersFilter {
+
+ public long messageThreadId;
+
+ public ChatMembersFilterMention() {
+ }
+
+ public ChatMembersFilterMention(long messageThreadId) {
+ this.messageThreadId = messageThreadId;
+ }
+
+ public static final int CONSTRUCTOR = 856419831;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMembersFilterRestricted extends ChatMembersFilter {
+ public ChatMembersFilterRestricted() {
+ }
+
+ public static final int CONSTRUCTOR = 1256282813;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMembersFilterBanned extends ChatMembersFilter {
+ public ChatMembersFilterBanned() {
+ }
+
+ public static final int CONSTRUCTOR = -1863102648;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMembersFilterBots extends ChatMembersFilter {
+ public ChatMembersFilterBots() {
+ }
+
+ public static final int CONSTRUCTOR = -1422567288;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMessageSender extends Object {
+
+ public MessageSender sender;
+
+ public boolean needsPremium;
+
+ public ChatMessageSender() {
+ }
+
+ public ChatMessageSender(MessageSender sender, boolean needsPremium) {
+ this.sender = sender;
+ this.needsPremium = needsPremium;
+ }
+
+ public static final int CONSTRUCTOR = 760590010;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatMessageSenders extends Object {
+
+ public ChatMessageSender[] senders;
+
+ public ChatMessageSenders() {
+ }
+
+ public ChatMessageSenders(ChatMessageSender[] senders) {
+ this.senders = senders;
+ }
+
+ public static final int CONSTRUCTOR = -1866230970;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatNotificationSettings extends Object {
+
+ public boolean useDefaultMuteFor;
+
+ public int muteFor;
+
+ public boolean useDefaultSound;
+
+ public long soundId;
+
+ public boolean useDefaultShowPreview;
+
+ public boolean showPreview;
+
+ public boolean useDefaultMuteStories;
+
+ public boolean muteStories;
+
+ public boolean useDefaultStorySound;
+
+ public long storySoundId;
+
+ public boolean useDefaultShowStorySender;
+
+ public boolean showStorySender;
+
+ public boolean useDefaultDisablePinnedMessageNotifications;
+
+ public boolean disablePinnedMessageNotifications;
+
+ public boolean useDefaultDisableMentionNotifications;
+
+ public boolean disableMentionNotifications;
+
+ public ChatNotificationSettings() {
+ }
+
+ public ChatNotificationSettings(boolean useDefaultMuteFor, int muteFor, boolean useDefaultSound, long soundId, boolean useDefaultShowPreview, boolean showPreview, boolean useDefaultMuteStories, boolean muteStories, boolean useDefaultStorySound, long storySoundId, boolean useDefaultShowStorySender, boolean showStorySender, boolean useDefaultDisablePinnedMessageNotifications, boolean disablePinnedMessageNotifications, boolean useDefaultDisableMentionNotifications, boolean disableMentionNotifications) {
+ this.useDefaultMuteFor = useDefaultMuteFor;
+ this.muteFor = muteFor;
+ this.useDefaultSound = useDefaultSound;
+ this.soundId = soundId;
+ this.useDefaultShowPreview = useDefaultShowPreview;
+ this.showPreview = showPreview;
+ this.useDefaultMuteStories = useDefaultMuteStories;
+ this.muteStories = muteStories;
+ this.useDefaultStorySound = useDefaultStorySound;
+ this.storySoundId = storySoundId;
+ this.useDefaultShowStorySender = useDefaultShowStorySender;
+ this.showStorySender = showStorySender;
+ this.useDefaultDisablePinnedMessageNotifications = useDefaultDisablePinnedMessageNotifications;
+ this.disablePinnedMessageNotifications = disablePinnedMessageNotifications;
+ this.useDefaultDisableMentionNotifications = useDefaultDisableMentionNotifications;
+ this.disableMentionNotifications = disableMentionNotifications;
+ }
+
+ public static final int CONSTRUCTOR = -572779825;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatPermissions extends Object {
+
+ public boolean canSendBasicMessages;
+
+ public boolean canSendAudios;
+
+ public boolean canSendDocuments;
+
+ public boolean canSendPhotos;
+
+ public boolean canSendVideos;
+
+ public boolean canSendVideoNotes;
+
+ public boolean canSendVoiceNotes;
+
+ public boolean canSendPolls;
+
+ public boolean canSendOtherMessages;
+
+ public boolean canAddLinkPreviews;
+
+ public boolean canChangeInfo;
+
+ public boolean canInviteUsers;
+
+ public boolean canPinMessages;
+
+ public boolean canCreateTopics;
+
+ public ChatPermissions() {
+ }
+
+ public ChatPermissions(boolean canSendBasicMessages, boolean canSendAudios, boolean canSendDocuments, boolean canSendPhotos, boolean canSendVideos, boolean canSendVideoNotes, boolean canSendVoiceNotes, boolean canSendPolls, boolean canSendOtherMessages, boolean canAddLinkPreviews, boolean canChangeInfo, boolean canInviteUsers, boolean canPinMessages, boolean canCreateTopics) {
+ this.canSendBasicMessages = canSendBasicMessages;
+ this.canSendAudios = canSendAudios;
+ this.canSendDocuments = canSendDocuments;
+ this.canSendPhotos = canSendPhotos;
+ this.canSendVideos = canSendVideos;
+ this.canSendVideoNotes = canSendVideoNotes;
+ this.canSendVoiceNotes = canSendVoiceNotes;
+ this.canSendPolls = canSendPolls;
+ this.canSendOtherMessages = canSendOtherMessages;
+ this.canAddLinkPreviews = canAddLinkPreviews;
+ this.canChangeInfo = canChangeInfo;
+ this.canInviteUsers = canInviteUsers;
+ this.canPinMessages = canPinMessages;
+ this.canCreateTopics = canCreateTopics;
+ }
+
+ public static final int CONSTRUCTOR = -118334855;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatPhoto extends Object {
+
+ public long id;
+
+ public int addedDate;
+
+ public Minithumbnail minithumbnail;
+
+ public PhotoSize[] sizes;
+
+ public AnimatedChatPhoto animation;
+
+ public AnimatedChatPhoto smallAnimation;
+
+ public ChatPhotoSticker sticker;
+
+ public ChatPhoto() {
+ }
+
+ public ChatPhoto(long id, int addedDate, Minithumbnail minithumbnail, PhotoSize[] sizes, AnimatedChatPhoto animation, AnimatedChatPhoto smallAnimation, ChatPhotoSticker sticker) {
+ this.id = id;
+ this.addedDate = addedDate;
+ this.minithumbnail = minithumbnail;
+ this.sizes = sizes;
+ this.animation = animation;
+ this.smallAnimation = smallAnimation;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -1430870201;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatPhotoInfo extends Object {
+
+ public File small;
+
+ public File big;
+
+ public Minithumbnail minithumbnail;
+
+ public boolean hasAnimation;
+
+ public boolean isPersonal;
+
+ public ChatPhotoInfo() {
+ }
+
+ public ChatPhotoInfo(File small, File big, Minithumbnail minithumbnail, boolean hasAnimation, boolean isPersonal) {
+ this.small = small;
+ this.big = big;
+ this.minithumbnail = minithumbnail;
+ this.hasAnimation = hasAnimation;
+ this.isPersonal = isPersonal;
+ }
+
+ public static final int CONSTRUCTOR = 281195686;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatPhotoSticker extends Object {
+
+ public ChatPhotoStickerType type;
+
+ public BackgroundFill backgroundFill;
+
+ public ChatPhotoSticker() {
+ }
+
+ public ChatPhotoSticker(ChatPhotoStickerType type, BackgroundFill backgroundFill) {
+ this.type = type;
+ this.backgroundFill = backgroundFill;
+ }
+
+ public static final int CONSTRUCTOR = -1459387485;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatPhotoStickerType extends Object {
+
+ public ChatPhotoStickerType() {
+ }
+ }
+
+ public static class ChatPhotoStickerTypeRegularOrMask extends ChatPhotoStickerType {
+
+ public long stickerSetId;
+
+ public long stickerId;
+
+ public ChatPhotoStickerTypeRegularOrMask() {
+ }
+
+ public ChatPhotoStickerTypeRegularOrMask(long stickerSetId, long stickerId) {
+ this.stickerSetId = stickerSetId;
+ this.stickerId = stickerId;
+ }
+
+ public static final int CONSTRUCTOR = -415147620;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatPhotoStickerTypeCustomEmoji extends ChatPhotoStickerType {
+
+ public long customEmojiId;
+
+ public ChatPhotoStickerTypeCustomEmoji() {
+ }
+
+ public ChatPhotoStickerTypeCustomEmoji(long customEmojiId) {
+ this.customEmojiId = customEmojiId;
+ }
+
+ public static final int CONSTRUCTOR = -266224943;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatPhotos extends Object {
+
+ public int totalCount;
+
+ public ChatPhoto[] photos;
+
+ public ChatPhotos() {
+ }
+
+ public ChatPhotos(int totalCount, ChatPhoto[] photos) {
+ this.totalCount = totalCount;
+ this.photos = photos;
+ }
+
+ public static final int CONSTRUCTOR = -1510699180;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatPosition extends Object {
+
+ public ChatList list;
+
+ public long order;
+
+ public boolean isPinned;
+
+ public ChatSource source;
+
+ public ChatPosition() {
+ }
+
+ public ChatPosition(ChatList list, long order, boolean isPinned, ChatSource source) {
+ this.list = list;
+ this.order = order;
+ this.isPinned = isPinned;
+ this.source = source;
+ }
+
+ public static final int CONSTRUCTOR = -622557355;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatRevenueAmount extends Object {
+
+ public String cryptocurrency;
+
+ public long totalAmount;
+
+ public long balanceAmount;
+
+ public long availableAmount;
+
+ public boolean withdrawalEnabled;
+
+ public ChatRevenueAmount() {
+ }
+
+ public ChatRevenueAmount(String cryptocurrency, long totalAmount, long balanceAmount, long availableAmount, boolean withdrawalEnabled) {
+ this.cryptocurrency = cryptocurrency;
+ this.totalAmount = totalAmount;
+ this.balanceAmount = balanceAmount;
+ this.availableAmount = availableAmount;
+ this.withdrawalEnabled = withdrawalEnabled;
+ }
+
+ public static final int CONSTRUCTOR = -1505178024;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatRevenueStatistics extends Object {
+
+ public StatisticalGraph revenueByHourGraph;
+
+ public StatisticalGraph revenueGraph;
+
+ public ChatRevenueAmount revenueAmount;
+
+ public double usdRate;
+
+ public ChatRevenueStatistics() {
+ }
+
+ public ChatRevenueStatistics(StatisticalGraph revenueByHourGraph, StatisticalGraph revenueGraph, ChatRevenueAmount revenueAmount, double usdRate) {
+ this.revenueByHourGraph = revenueByHourGraph;
+ this.revenueGraph = revenueGraph;
+ this.revenueAmount = revenueAmount;
+ this.usdRate = usdRate;
+ }
+
+ public static final int CONSTRUCTOR = 1667438779;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatRevenueTransaction extends Object {
+
+ public String cryptocurrency;
+
+ public long cryptocurrencyAmount;
+
+ public ChatRevenueTransactionType type;
+
+ public ChatRevenueTransaction() {
+ }
+
+ public ChatRevenueTransaction(String cryptocurrency, long cryptocurrencyAmount, ChatRevenueTransactionType type) {
+ this.cryptocurrency = cryptocurrency;
+ this.cryptocurrencyAmount = cryptocurrencyAmount;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 80192767;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatRevenueTransactionType extends Object {
+
+ public ChatRevenueTransactionType() {
+ }
+ }
+
+ public static class ChatRevenueTransactionTypeEarnings extends ChatRevenueTransactionType {
+
+ public int startDate;
+
+ public int endDate;
+
+ public ChatRevenueTransactionTypeEarnings() {
+ }
+
+ public ChatRevenueTransactionTypeEarnings(int startDate, int endDate) {
+ this.startDate = startDate;
+ this.endDate = endDate;
+ }
+
+ public static final int CONSTRUCTOR = -400776056;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatRevenueTransactionTypeWithdrawal extends ChatRevenueTransactionType {
+
+ public int withdrawalDate;
+
+ public String provider;
+
+ public RevenueWithdrawalState state;
+
+ public ChatRevenueTransactionTypeWithdrawal() {
+ }
+
+ public ChatRevenueTransactionTypeWithdrawal(int withdrawalDate, String provider, RevenueWithdrawalState state) {
+ this.withdrawalDate = withdrawalDate;
+ this.provider = provider;
+ this.state = state;
+ }
+
+ public static final int CONSTRUCTOR = 252939755;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatRevenueTransactionTypeRefund extends ChatRevenueTransactionType {
+
+ public int refundDate;
+
+ public String provider;
+
+ public ChatRevenueTransactionTypeRefund() {
+ }
+
+ public ChatRevenueTransactionTypeRefund(int refundDate, String provider) {
+ this.refundDate = refundDate;
+ this.provider = provider;
+ }
+
+ public static final int CONSTRUCTOR = 302430279;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatRevenueTransactions extends Object {
+
+ public int totalCount;
+
+ public ChatRevenueTransaction[] transactions;
+
+ public ChatRevenueTransactions() {
+ }
+
+ public ChatRevenueTransactions(int totalCount, ChatRevenueTransaction[] transactions) {
+ this.totalCount = totalCount;
+ this.transactions = transactions;
+ }
+
+ public static final int CONSTRUCTOR = -553258171;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatSource extends Object {
+
+ public ChatSource() {
+ }
+ }
+
+ public static class ChatSourceMtprotoProxy extends ChatSource {
+ public ChatSourceMtprotoProxy() {
+ }
+
+ public static final int CONSTRUCTOR = 394074115;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatSourcePublicServiceAnnouncement extends ChatSource {
+
+ public String type;
+
+ public String text;
+
+ public ChatSourcePublicServiceAnnouncement() {
+ }
+
+ public ChatSourcePublicServiceAnnouncement(String type, String text) {
+ this.type = type;
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = -328571244;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatStatistics extends Object {
+
+ public ChatStatistics() {
+ }
+ }
+
+ public static class ChatStatisticsSupergroup extends ChatStatistics {
+
+ public DateRange period;
+
+ public StatisticalValue memberCount;
+
+ public StatisticalValue messageCount;
+
+ public StatisticalValue viewerCount;
+
+ public StatisticalValue senderCount;
+
+ public StatisticalGraph memberCountGraph;
+
+ public StatisticalGraph joinGraph;
+
+ public StatisticalGraph joinBySourceGraph;
+
+ public StatisticalGraph languageGraph;
+
+ public StatisticalGraph messageContentGraph;
+
+ public StatisticalGraph actionGraph;
+
+ public StatisticalGraph dayGraph;
+
+ public StatisticalGraph weekGraph;
+
+ public ChatStatisticsMessageSenderInfo[] topSenders;
+
+ public ChatStatisticsAdministratorActionsInfo[] topAdministrators;
+
+ public ChatStatisticsInviterInfo[] topInviters;
+
+ public ChatStatisticsSupergroup() {
+ }
+
+ public ChatStatisticsSupergroup(DateRange period, StatisticalValue memberCount, StatisticalValue messageCount, StatisticalValue viewerCount, StatisticalValue senderCount, StatisticalGraph memberCountGraph, StatisticalGraph joinGraph, StatisticalGraph joinBySourceGraph, StatisticalGraph languageGraph, StatisticalGraph messageContentGraph, StatisticalGraph actionGraph, StatisticalGraph dayGraph, StatisticalGraph weekGraph, ChatStatisticsMessageSenderInfo[] topSenders, ChatStatisticsAdministratorActionsInfo[] topAdministrators, ChatStatisticsInviterInfo[] topInviters) {
+ this.period = period;
+ this.memberCount = memberCount;
+ this.messageCount = messageCount;
+ this.viewerCount = viewerCount;
+ this.senderCount = senderCount;
+ this.memberCountGraph = memberCountGraph;
+ this.joinGraph = joinGraph;
+ this.joinBySourceGraph = joinBySourceGraph;
+ this.languageGraph = languageGraph;
+ this.messageContentGraph = messageContentGraph;
+ this.actionGraph = actionGraph;
+ this.dayGraph = dayGraph;
+ this.weekGraph = weekGraph;
+ this.topSenders = topSenders;
+ this.topAdministrators = topAdministrators;
+ this.topInviters = topInviters;
+ }
+
+ public static final int CONSTRUCTOR = -17244633;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatStatisticsChannel extends ChatStatistics {
+
+ public DateRange period;
+
+ public StatisticalValue memberCount;
+
+ public StatisticalValue meanMessageViewCount;
+
+ public StatisticalValue meanMessageShareCount;
+
+ public StatisticalValue meanMessageReactionCount;
+
+ public StatisticalValue meanStoryViewCount;
+
+ public StatisticalValue meanStoryShareCount;
+
+ public StatisticalValue meanStoryReactionCount;
+
+ public double enabledNotificationsPercentage;
+
+ public StatisticalGraph memberCountGraph;
+
+ public StatisticalGraph joinGraph;
+
+ public StatisticalGraph muteGraph;
+
+ public StatisticalGraph viewCountByHourGraph;
+
+ public StatisticalGraph viewCountBySourceGraph;
+
+ public StatisticalGraph joinBySourceGraph;
+
+ public StatisticalGraph languageGraph;
+
+ public StatisticalGraph messageInteractionGraph;
+
+ public StatisticalGraph messageReactionGraph;
+
+ public StatisticalGraph storyInteractionGraph;
+
+ public StatisticalGraph storyReactionGraph;
+
+ public StatisticalGraph instantViewInteractionGraph;
+
+ public ChatStatisticsInteractionInfo[] recentInteractions;
+
+ public ChatStatisticsChannel() {
+ }
+
+ public ChatStatisticsChannel(DateRange period, StatisticalValue memberCount, StatisticalValue meanMessageViewCount, StatisticalValue meanMessageShareCount, StatisticalValue meanMessageReactionCount, StatisticalValue meanStoryViewCount, StatisticalValue meanStoryShareCount, StatisticalValue meanStoryReactionCount, double enabledNotificationsPercentage, StatisticalGraph memberCountGraph, StatisticalGraph joinGraph, StatisticalGraph muteGraph, StatisticalGraph viewCountByHourGraph, StatisticalGraph viewCountBySourceGraph, StatisticalGraph joinBySourceGraph, StatisticalGraph languageGraph, StatisticalGraph messageInteractionGraph, StatisticalGraph messageReactionGraph, StatisticalGraph storyInteractionGraph, StatisticalGraph storyReactionGraph, StatisticalGraph instantViewInteractionGraph, ChatStatisticsInteractionInfo[] recentInteractions) {
+ this.period = period;
+ this.memberCount = memberCount;
+ this.meanMessageViewCount = meanMessageViewCount;
+ this.meanMessageShareCount = meanMessageShareCount;
+ this.meanMessageReactionCount = meanMessageReactionCount;
+ this.meanStoryViewCount = meanStoryViewCount;
+ this.meanStoryShareCount = meanStoryShareCount;
+ this.meanStoryReactionCount = meanStoryReactionCount;
+ this.enabledNotificationsPercentage = enabledNotificationsPercentage;
+ this.memberCountGraph = memberCountGraph;
+ this.joinGraph = joinGraph;
+ this.muteGraph = muteGraph;
+ this.viewCountByHourGraph = viewCountByHourGraph;
+ this.viewCountBySourceGraph = viewCountBySourceGraph;
+ this.joinBySourceGraph = joinBySourceGraph;
+ this.languageGraph = languageGraph;
+ this.messageInteractionGraph = messageInteractionGraph;
+ this.messageReactionGraph = messageReactionGraph;
+ this.storyInteractionGraph = storyInteractionGraph;
+ this.storyReactionGraph = storyReactionGraph;
+ this.instantViewInteractionGraph = instantViewInteractionGraph;
+ this.recentInteractions = recentInteractions;
+ }
+
+ public static final int CONSTRUCTOR = -1375151660;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatStatisticsAdministratorActionsInfo extends Object {
+
+ public long userId;
+
+ public int deletedMessageCount;
+
+ public int bannedUserCount;
+
+ public int restrictedUserCount;
+
+ public ChatStatisticsAdministratorActionsInfo() {
+ }
+
+ public ChatStatisticsAdministratorActionsInfo(long userId, int deletedMessageCount, int bannedUserCount, int restrictedUserCount) {
+ this.userId = userId;
+ this.deletedMessageCount = deletedMessageCount;
+ this.bannedUserCount = bannedUserCount;
+ this.restrictedUserCount = restrictedUserCount;
+ }
+
+ public static final int CONSTRUCTOR = -406467202;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatStatisticsInteractionInfo extends Object {
+
+ public ChatStatisticsObjectType objectType;
+
+ public int viewCount;
+
+ public int forwardCount;
+
+ public int reactionCount;
+
+ public ChatStatisticsInteractionInfo() {
+ }
+
+ public ChatStatisticsInteractionInfo(ChatStatisticsObjectType objectType, int viewCount, int forwardCount, int reactionCount) {
+ this.objectType = objectType;
+ this.viewCount = viewCount;
+ this.forwardCount = forwardCount;
+ this.reactionCount = reactionCount;
+ }
+
+ public static final int CONSTRUCTOR = 1766496909;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatStatisticsInviterInfo extends Object {
+
+ public long userId;
+
+ public int addedMemberCount;
+
+ public ChatStatisticsInviterInfo() {
+ }
+
+ public ChatStatisticsInviterInfo(long userId, int addedMemberCount) {
+ this.userId = userId;
+ this.addedMemberCount = addedMemberCount;
+ }
+
+ public static final int CONSTRUCTOR = 629396619;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatStatisticsMessageSenderInfo extends Object {
+
+ public long userId;
+
+ public int sentMessageCount;
+
+ public int averageCharacterCount;
+
+ public ChatStatisticsMessageSenderInfo() {
+ }
+
+ public ChatStatisticsMessageSenderInfo(long userId, int sentMessageCount, int averageCharacterCount) {
+ this.userId = userId;
+ this.sentMessageCount = sentMessageCount;
+ this.averageCharacterCount = averageCharacterCount;
+ }
+
+ public static final int CONSTRUCTOR = 1762295371;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatStatisticsObjectType extends Object {
+
+ public ChatStatisticsObjectType() {
+ }
+ }
+
+ public static class ChatStatisticsObjectTypeMessage extends ChatStatisticsObjectType {
+
+ public long messageId;
+
+ public ChatStatisticsObjectTypeMessage() {
+ }
+
+ public ChatStatisticsObjectTypeMessage(long messageId) {
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = 1872700662;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatStatisticsObjectTypeStory extends ChatStatisticsObjectType {
+
+ public int storyId;
+
+ public ChatStatisticsObjectTypeStory() {
+ }
+
+ public ChatStatisticsObjectTypeStory(int storyId) {
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = 364575152;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatTheme extends Object {
+
+ public String name;
+
+ public ThemeSettings lightSettings;
+
+ public ThemeSettings darkSettings;
+
+ public ChatTheme() {
+ }
+
+ public ChatTheme(String name, ThemeSettings lightSettings, ThemeSettings darkSettings) {
+ this.name = name;
+ this.lightSettings = lightSettings;
+ this.darkSettings = darkSettings;
+ }
+
+ public static final int CONSTRUCTOR = -113218503;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ChatType extends Object {
+
+ public ChatType() {
+ }
+ }
+
+ public static class ChatTypePrivate extends ChatType {
+
+ public long userId;
+
+ public ChatTypePrivate() {
+ }
+
+ public ChatTypePrivate(long userId) {
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = 1579049844;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatTypeBasicGroup extends ChatType {
+
+ public long basicGroupId;
+
+ public ChatTypeBasicGroup() {
+ }
+
+ public ChatTypeBasicGroup(long basicGroupId) {
+ this.basicGroupId = basicGroupId;
+ }
+
+ public static final int CONSTRUCTOR = 973884508;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatTypeSupergroup extends ChatType {
+
+ public long supergroupId;
+
+ public boolean isChannel;
+
+ public ChatTypeSupergroup() {
+ }
+
+ public ChatTypeSupergroup(long supergroupId, boolean isChannel) {
+ this.supergroupId = supergroupId;
+ this.isChannel = isChannel;
+ }
+
+ public static final int CONSTRUCTOR = -1472570774;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChatTypeSecret extends ChatType {
+
+ public int secretChatId;
+
+ public long userId;
+
+ public ChatTypeSecret() {
+ }
+
+ public ChatTypeSecret(int secretChatId, long userId) {
+ this.secretChatId = secretChatId;
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = 862366513;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Chats extends Object {
+
+ public int totalCount;
+
+ public long[] chatIds;
+
+ public Chats() {
+ }
+
+ public Chats(int totalCount, long[] chatIds) {
+ this.totalCount = totalCount;
+ this.chatIds = chatIds;
+ }
+
+ public static final int CONSTRUCTOR = 1809654812;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CheckChatUsernameResult extends Object {
+
+ public CheckChatUsernameResult() {
+ }
+ }
+
+ public static class CheckChatUsernameResultOk extends CheckChatUsernameResult {
+ public CheckChatUsernameResultOk() {
+ }
+
+ public static final int CONSTRUCTOR = -1498956964;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckChatUsernameResultUsernameInvalid extends CheckChatUsernameResult {
+ public CheckChatUsernameResultUsernameInvalid() {
+ }
+
+ public static final int CONSTRUCTOR = -636979370;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckChatUsernameResultUsernameOccupied extends CheckChatUsernameResult {
+ public CheckChatUsernameResultUsernameOccupied() {
+ }
+
+ public static final int CONSTRUCTOR = 1320892201;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckChatUsernameResultUsernamePurchasable extends CheckChatUsernameResult {
+ public CheckChatUsernameResultUsernamePurchasable() {
+ }
+
+ public static final int CONSTRUCTOR = 5885529;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckChatUsernameResultPublicChatsTooMany extends CheckChatUsernameResult {
+ public CheckChatUsernameResultPublicChatsTooMany() {
+ }
+
+ public static final int CONSTRUCTOR = -659264388;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckChatUsernameResultPublicGroupsUnavailable extends CheckChatUsernameResult {
+ public CheckChatUsernameResultPublicGroupsUnavailable() {
+ }
+
+ public static final int CONSTRUCTOR = -51833641;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CheckStickerSetNameResult extends Object {
+
+ public CheckStickerSetNameResult() {
+ }
+ }
+
+ public static class CheckStickerSetNameResultOk extends CheckStickerSetNameResult {
+ public CheckStickerSetNameResultOk() {
+ }
+
+ public static final int CONSTRUCTOR = -1404308904;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckStickerSetNameResultNameInvalid extends CheckStickerSetNameResult {
+ public CheckStickerSetNameResultNameInvalid() {
+ }
+
+ public static final int CONSTRUCTOR = 177992244;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckStickerSetNameResultNameOccupied extends CheckStickerSetNameResult {
+ public CheckStickerSetNameResultNameOccupied() {
+ }
+
+ public static final int CONSTRUCTOR = 1012980872;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CloseBirthdayUser extends Object {
+
+ public long userId;
+
+ public Birthdate birthdate;
+
+ public CloseBirthdayUser() {
+ }
+
+ public CloseBirthdayUser(long userId, Birthdate birthdate) {
+ this.userId = userId;
+ this.birthdate = birthdate;
+ }
+
+ public static final int CONSTRUCTOR = -2147067410;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClosedVectorPath extends Object {
+
+ public VectorPathCommand[] commands;
+
+ public ClosedVectorPath() {
+ }
+
+ public ClosedVectorPath(VectorPathCommand[] commands) {
+ this.commands = commands;
+ }
+
+ public static final int CONSTRUCTOR = 589951657;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CollectibleItemInfo extends Object {
+
+ public int purchaseDate;
+
+ public String currency;
+
+ public long amount;
+
+ public String cryptocurrency;
+
+ public long cryptocurrencyAmount;
+
+ public String url;
+
+ public CollectibleItemInfo() {
+ }
+
+ public CollectibleItemInfo(int purchaseDate, String currency, long amount, String cryptocurrency, long cryptocurrencyAmount, String url) {
+ this.purchaseDate = purchaseDate;
+ this.currency = currency;
+ this.amount = amount;
+ this.cryptocurrency = cryptocurrency;
+ this.cryptocurrencyAmount = cryptocurrencyAmount;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 1460640717;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class CollectibleItemType extends Object {
+
+ public CollectibleItemType() {
+ }
+ }
+
+ public static class CollectibleItemTypeUsername extends CollectibleItemType {
+
+ public String username;
+
+ public CollectibleItemTypeUsername() {
+ }
+
+ public CollectibleItemTypeUsername(String username) {
+ this.username = username;
+ }
+
+ public static final int CONSTRUCTOR = 458680273;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CollectibleItemTypePhoneNumber extends CollectibleItemType {
+
+ public String phoneNumber;
+
+ public CollectibleItemTypePhoneNumber() {
+ }
+
+ public CollectibleItemTypePhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ }
+
+ public static final int CONSTRUCTOR = 1256251714;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ConnectedWebsite extends Object {
+
+ public long id;
+
+ public String domainName;
+
+ public long botUserId;
+
+ public String browser;
+
+ public String platform;
+
+ public int logInDate;
+
+ public int lastActiveDate;
+
+ public String ipAddress;
+
+ public String location;
+
+ public ConnectedWebsite() {
+ }
+
+ public ConnectedWebsite(long id, String domainName, long botUserId, String browser, String platform, int logInDate, int lastActiveDate, String ipAddress, String location) {
+ this.id = id;
+ this.domainName = domainName;
+ this.botUserId = botUserId;
+ this.browser = browser;
+ this.platform = platform;
+ this.logInDate = logInDate;
+ this.lastActiveDate = lastActiveDate;
+ this.ipAddress = ipAddress;
+ this.location = location;
+ }
+
+ public static final int CONSTRUCTOR = 1978115978;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ConnectedWebsites extends Object {
+
+ public ConnectedWebsite[] websites;
+
+ public ConnectedWebsites() {
+ }
+
+ public ConnectedWebsites(ConnectedWebsite[] websites) {
+ this.websites = websites;
+ }
+
+ public static final int CONSTRUCTOR = -1727949694;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ConnectionState extends Object {
+
+ public ConnectionState() {
+ }
+ }
+
+ public static class ConnectionStateWaitingForNetwork extends ConnectionState {
+ public ConnectionStateWaitingForNetwork() {
+ }
+
+ public static final int CONSTRUCTOR = 1695405912;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ConnectionStateConnectingToProxy extends ConnectionState {
+ public ConnectionStateConnectingToProxy() {
+ }
+
+ public static final int CONSTRUCTOR = -93187239;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ConnectionStateConnecting extends ConnectionState {
+ public ConnectionStateConnecting() {
+ }
+
+ public static final int CONSTRUCTOR = -1298400670;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ConnectionStateUpdating extends ConnectionState {
+ public ConnectionStateUpdating() {
+ }
+
+ public static final int CONSTRUCTOR = -188104009;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ConnectionStateReady extends ConnectionState {
+ public ConnectionStateReady() {
+ }
+
+ public static final int CONSTRUCTOR = 48608492;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Contact extends Object {
+
+ public String phoneNumber;
+
+ public String firstName;
+
+ public String lastName;
+
+ public String vcard;
+
+ public long userId;
+
+ public Contact() {
+ }
+
+ public Contact(String phoneNumber, String firstName, String lastName, String vcard, long userId) {
+ this.phoneNumber = phoneNumber;
+ this.firstName = firstName;
+ this.lastName = lastName;
+ this.vcard = vcard;
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = -1993844876;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Count extends Object {
+
+ public int count;
+
+ public Count() {
+ }
+
+ public Count(int count) {
+ this.count = count;
+ }
+
+ public static final int CONSTRUCTOR = 1295577348;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Countries extends Object {
+
+ public CountryInfo[] countries;
+
+ public Countries() {
+ }
+
+ public Countries(CountryInfo[] countries) {
+ this.countries = countries;
+ }
+
+ public static final int CONSTRUCTOR = 1854211813;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CountryInfo extends Object {
+
+ public String countryCode;
+
+ public String name;
+
+ public String englishName;
+
+ public boolean isHidden;
+
+ public String[] callingCodes;
+
+ public CountryInfo() {
+ }
+
+ public CountryInfo(String countryCode, String name, String englishName, boolean isHidden, String[] callingCodes) {
+ this.countryCode = countryCode;
+ this.name = name;
+ this.englishName = englishName;
+ this.isHidden = isHidden;
+ this.callingCodes = callingCodes;
+ }
+
+ public static final int CONSTRUCTOR = 1617195722;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreatedBasicGroupChat extends Object {
+
+ public long chatId;
+
+ public FailedToAddMembers failedToAddMembers;
+
+ public CreatedBasicGroupChat() {
+ }
+
+ public CreatedBasicGroupChat(long chatId, FailedToAddMembers failedToAddMembers) {
+ this.chatId = chatId;
+ this.failedToAddMembers = failedToAddMembers;
+ }
+
+ public static final int CONSTRUCTOR = -20417068;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CurrentWeather extends Object {
+
+ public double temperature;
+
+ public String emoji;
+
+ public CurrentWeather() {
+ }
+
+ public CurrentWeather(double temperature, String emoji) {
+ this.temperature = temperature;
+ this.emoji = emoji;
+ }
+
+ public static final int CONSTRUCTOR = -355555136;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CustomRequestResult extends Object {
+
+ public String result;
+
+ public CustomRequestResult() {
+ }
+
+ public CustomRequestResult(String result) {
+ this.result = result;
+ }
+
+ public static final int CONSTRUCTOR = -2009960452;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DatabaseStatistics extends Object {
+
+ public String statistics;
+
+ public DatabaseStatistics() {
+ }
+
+ public DatabaseStatistics(String statistics) {
+ this.statistics = statistics;
+ }
+
+ public static final int CONSTRUCTOR = -1123912880;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Date extends Object {
+
+ public int day;
+
+ public int month;
+
+ public int year;
+
+ public Date() {
+ }
+
+ public Date(int day, int month, int year) {
+ this.day = day;
+ this.month = month;
+ this.year = year;
+ }
+
+ public static final int CONSTRUCTOR = -277956960;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DateRange extends Object {
+
+ public int startDate;
+
+ public int endDate;
+
+ public DateRange() {
+ }
+
+ public DateRange(int startDate, int endDate) {
+ this.startDate = startDate;
+ this.endDate = endDate;
+ }
+
+ public static final int CONSTRUCTOR = 1360333926;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DatedFile extends Object {
+
+ public File file;
+
+ public int date;
+
+ public DatedFile() {
+ }
+
+ public DatedFile(File file, int date) {
+ this.file = file;
+ this.date = date;
+ }
+
+ public static final int CONSTRUCTOR = -1840795491;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeepLinkInfo extends Object {
+
+ public FormattedText text;
+
+ public boolean needUpdateApplication;
+
+ public DeepLinkInfo() {
+ }
+
+ public DeepLinkInfo(FormattedText text, boolean needUpdateApplication) {
+ this.text = text;
+ this.needUpdateApplication = needUpdateApplication;
+ }
+
+ public static final int CONSTRUCTOR = 1864081662;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class DeviceToken extends Object {
+
+ public DeviceToken() {
+ }
+ }
+
+ public static class DeviceTokenFirebaseCloudMessaging extends DeviceToken {
+
+ public String token;
+
+ public boolean encrypt;
+
+ public DeviceTokenFirebaseCloudMessaging() {
+ }
+
+ public DeviceTokenFirebaseCloudMessaging(String token, boolean encrypt) {
+ this.token = token;
+ this.encrypt = encrypt;
+ }
+
+ public static final int CONSTRUCTOR = -797881849;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenApplePush extends DeviceToken {
+
+ public String deviceToken;
+
+ public boolean isAppSandbox;
+
+ public DeviceTokenApplePush() {
+ }
+
+ public DeviceTokenApplePush(String deviceToken, boolean isAppSandbox) {
+ this.deviceToken = deviceToken;
+ this.isAppSandbox = isAppSandbox;
+ }
+
+ public static final int CONSTRUCTOR = 387541955;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenApplePushVoIP extends DeviceToken {
+
+ public String deviceToken;
+
+ public boolean isAppSandbox;
+
+ public boolean encrypt;
+
+ public DeviceTokenApplePushVoIP() {
+ }
+
+ public DeviceTokenApplePushVoIP(String deviceToken, boolean isAppSandbox, boolean encrypt) {
+ this.deviceToken = deviceToken;
+ this.isAppSandbox = isAppSandbox;
+ this.encrypt = encrypt;
+ }
+
+ public static final int CONSTRUCTOR = 804275689;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenWindowsPush extends DeviceToken {
+
+ public String accessToken;
+
+ public DeviceTokenWindowsPush() {
+ }
+
+ public DeviceTokenWindowsPush(String accessToken) {
+ this.accessToken = accessToken;
+ }
+
+ public static final int CONSTRUCTOR = -1410514289;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenMicrosoftPush extends DeviceToken {
+
+ public String channelUri;
+
+ public DeviceTokenMicrosoftPush() {
+ }
+
+ public DeviceTokenMicrosoftPush(String channelUri) {
+ this.channelUri = channelUri;
+ }
+
+ public static final int CONSTRUCTOR = 1224269900;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenMicrosoftPushVoIP extends DeviceToken {
+
+ public String channelUri;
+
+ public DeviceTokenMicrosoftPushVoIP() {
+ }
+
+ public DeviceTokenMicrosoftPushVoIP(String channelUri) {
+ this.channelUri = channelUri;
+ }
+
+ public static final int CONSTRUCTOR = -785603759;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenWebPush extends DeviceToken {
+
+ public String endpoint;
+
+ public String p256dhBase64url;
+
+ public String authBase64url;
+
+ public DeviceTokenWebPush() {
+ }
+
+ public DeviceTokenWebPush(String endpoint, String p256dhBase64url, String authBase64url) {
+ this.endpoint = endpoint;
+ this.p256dhBase64url = p256dhBase64url;
+ this.authBase64url = authBase64url;
+ }
+
+ public static final int CONSTRUCTOR = -1694507273;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenSimplePush extends DeviceToken {
+
+ public String endpoint;
+
+ public DeviceTokenSimplePush() {
+ }
+
+ public DeviceTokenSimplePush(String endpoint) {
+ this.endpoint = endpoint;
+ }
+
+ public static final int CONSTRUCTOR = 49584736;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenUbuntuPush extends DeviceToken {
+
+ public String token;
+
+ public DeviceTokenUbuntuPush() {
+ }
+
+ public DeviceTokenUbuntuPush(String token) {
+ this.token = token;
+ }
+
+ public static final int CONSTRUCTOR = 1782320422;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenBlackBerryPush extends DeviceToken {
+
+ public String token;
+
+ public DeviceTokenBlackBerryPush() {
+ }
+
+ public DeviceTokenBlackBerryPush(String token) {
+ this.token = token;
+ }
+
+ public static final int CONSTRUCTOR = 1559167234;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenTizenPush extends DeviceToken {
+
+ public String regId;
+
+ public DeviceTokenTizenPush() {
+ }
+
+ public DeviceTokenTizenPush(String regId) {
+ this.regId = regId;
+ }
+
+ public static final int CONSTRUCTOR = -1359947213;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeviceTokenHuaweiPush extends DeviceToken {
+
+ public String token;
+
+ public boolean encrypt;
+
+ public DeviceTokenHuaweiPush() {
+ }
+
+ public DeviceTokenHuaweiPush(String token, boolean encrypt) {
+ this.token = token;
+ this.encrypt = encrypt;
+ }
+
+ public static final int CONSTRUCTOR = 1989103142;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class DiceStickers extends Object {
+
+ public DiceStickers() {
+ }
+ }
+
+ public static class DiceStickersRegular extends DiceStickers {
+
+ public Sticker sticker;
+
+ public DiceStickersRegular() {
+ }
+
+ public DiceStickersRegular(Sticker sticker) {
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -740299570;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DiceStickersSlotMachine extends DiceStickers {
+
+ public Sticker background;
+
+ public Sticker lever;
+
+ public Sticker leftReel;
+
+ public Sticker centerReel;
+
+ public Sticker rightReel;
+
+ public DiceStickersSlotMachine() {
+ }
+
+ public DiceStickersSlotMachine(Sticker background, Sticker lever, Sticker leftReel, Sticker centerReel, Sticker rightReel) {
+ this.background = background;
+ this.lever = lever;
+ this.leftReel = leftReel;
+ this.centerReel = centerReel;
+ this.rightReel = rightReel;
+ }
+
+ public static final int CONSTRUCTOR = -375223124;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Document extends Object {
+
+ public String fileName;
+
+ public String mimeType;
+
+ public Minithumbnail minithumbnail;
+
+ public Thumbnail thumbnail;
+
+ public File document;
+
+ public Document() {
+ }
+
+ public Document(String fileName, String mimeType, Minithumbnail minithumbnail, Thumbnail thumbnail, File document) {
+ this.fileName = fileName;
+ this.mimeType = mimeType;
+ this.minithumbnail = minithumbnail;
+ this.thumbnail = thumbnail;
+ this.document = document;
+ }
+
+ public static final int CONSTRUCTOR = -1357271080;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DownloadedFileCounts extends Object {
+
+ public int activeCount;
+
+ public int pausedCount;
+
+ public int completedCount;
+
+ public DownloadedFileCounts() {
+ }
+
+ public DownloadedFileCounts(int activeCount, int pausedCount, int completedCount) {
+ this.activeCount = activeCount;
+ this.pausedCount = pausedCount;
+ this.completedCount = completedCount;
+ }
+
+ public static final int CONSTRUCTOR = -1973999550;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DraftMessage extends Object {
+
+ public InputMessageReplyTo replyTo;
+
+ public int date;
+
+ public InputMessageContent inputMessageText;
+
+ public long effectId;
+
+ public DraftMessage() {
+ }
+
+ public DraftMessage(InputMessageReplyTo replyTo, int date, InputMessageContent inputMessageText, long effectId) {
+ this.replyTo = replyTo;
+ this.date = date;
+ this.inputMessageText = inputMessageText;
+ this.effectId = effectId;
+ }
+
+ public static final int CONSTRUCTOR = 1125328749;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class EmailAddressAuthentication extends Object {
+
+ public EmailAddressAuthentication() {
+ }
+ }
+
+ public static class EmailAddressAuthenticationCode extends EmailAddressAuthentication {
+
+ public String code;
+
+ public EmailAddressAuthenticationCode() {
+ }
+
+ public EmailAddressAuthenticationCode(String code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -993257022;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmailAddressAuthenticationAppleId extends EmailAddressAuthentication {
+
+ public String token;
+
+ public EmailAddressAuthenticationAppleId() {
+ }
+
+ public EmailAddressAuthenticationAppleId(String token) {
+ this.token = token;
+ }
+
+ public static final int CONSTRUCTOR = 633948265;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmailAddressAuthenticationGoogleId extends EmailAddressAuthentication {
+
+ public String token;
+
+ public EmailAddressAuthenticationGoogleId() {
+ }
+
+ public EmailAddressAuthenticationGoogleId(String token) {
+ this.token = token;
+ }
+
+ public static final int CONSTRUCTOR = -19142846;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmailAddressAuthenticationCodeInfo extends Object {
+
+ public String emailAddressPattern;
+
+ public int length;
+
+ public EmailAddressAuthenticationCodeInfo() {
+ }
+
+ public EmailAddressAuthenticationCodeInfo(String emailAddressPattern, int length) {
+ this.emailAddressPattern = emailAddressPattern;
+ this.length = length;
+ }
+
+ public static final int CONSTRUCTOR = 1151066659;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class EmailAddressResetState extends Object {
+
+ public EmailAddressResetState() {
+ }
+ }
+
+ public static class EmailAddressResetStateAvailable extends EmailAddressResetState {
+
+ public int waitPeriod;
+
+ public EmailAddressResetStateAvailable() {
+ }
+
+ public EmailAddressResetStateAvailable(int waitPeriod) {
+ this.waitPeriod = waitPeriod;
+ }
+
+ public static final int CONSTRUCTOR = -1917177600;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmailAddressResetStatePending extends EmailAddressResetState {
+
+ public int resetIn;
+
+ public EmailAddressResetStatePending() {
+ }
+
+ public EmailAddressResetStatePending(int resetIn) {
+ this.resetIn = resetIn;
+ }
+
+ public static final int CONSTRUCTOR = -1885966805;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiCategories extends Object {
+
+ public EmojiCategory[] categories;
+
+ public EmojiCategories() {
+ }
+
+ public EmojiCategories(EmojiCategory[] categories) {
+ this.categories = categories;
+ }
+
+ public static final int CONSTRUCTOR = -1455387824;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiCategory extends Object {
+
+ public String name;
+
+ public Sticker icon;
+
+ public EmojiCategorySource source;
+
+ public boolean isGreeting;
+
+ public EmojiCategory() {
+ }
+
+ public EmojiCategory(String name, Sticker icon, EmojiCategorySource source, boolean isGreeting) {
+ this.name = name;
+ this.icon = icon;
+ this.source = source;
+ this.isGreeting = isGreeting;
+ }
+
+ public static final int CONSTRUCTOR = 571335919;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class EmojiCategorySource extends Object {
+
+ public EmojiCategorySource() {
+ }
+ }
+
+ public static class EmojiCategorySourceSearch extends EmojiCategorySource {
+
+ public String[] emojis;
+
+ public EmojiCategorySourceSearch() {
+ }
+
+ public EmojiCategorySourceSearch(String[] emojis) {
+ this.emojis = emojis;
+ }
+
+ public static final int CONSTRUCTOR = -453260262;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiCategorySourcePremium extends EmojiCategorySource {
+ public EmojiCategorySourcePremium() {
+ }
+
+ public static final int CONSTRUCTOR = -1932358388;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class EmojiCategoryType extends Object {
+
+ public EmojiCategoryType() {
+ }
+ }
+
+ public static class EmojiCategoryTypeDefault extends EmojiCategoryType {
+ public EmojiCategoryTypeDefault() {
+ }
+
+ public static final int CONSTRUCTOR = 1188782699;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiCategoryTypeRegularStickers extends EmojiCategoryType {
+ public EmojiCategoryTypeRegularStickers() {
+ }
+
+ public static final int CONSTRUCTOR = -1337484846;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiCategoryTypeEmojiStatus extends EmojiCategoryType {
+ public EmojiCategoryTypeEmojiStatus() {
+ }
+
+ public static final int CONSTRUCTOR = 1381282631;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiCategoryTypeChatPhoto extends EmojiCategoryType {
+ public EmojiCategoryTypeChatPhoto() {
+ }
+
+ public static final int CONSTRUCTOR = 1059063081;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiKeyword extends Object {
+
+ public String emoji;
+
+ public String keyword;
+
+ public EmojiKeyword() {
+ }
+
+ public EmojiKeyword(String emoji, String keyword) {
+ this.emoji = emoji;
+ this.keyword = keyword;
+ }
+
+ public static final int CONSTRUCTOR = -2112285985;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiKeywords extends Object {
+
+ public EmojiKeyword[] emojiKeywords;
+
+ public EmojiKeywords() {
+ }
+
+ public EmojiKeywords(EmojiKeyword[] emojiKeywords) {
+ this.emojiKeywords = emojiKeywords;
+ }
+
+ public static final int CONSTRUCTOR = 689723339;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiReaction extends Object {
+
+ public String emoji;
+
+ public String title;
+
+ public boolean isActive;
+
+ public Sticker staticIcon;
+
+ public Sticker appearAnimation;
+
+ public Sticker selectAnimation;
+
+ public Sticker activateAnimation;
+
+ public Sticker effectAnimation;
+
+ public Sticker aroundAnimation;
+
+ public Sticker centerAnimation;
+
+ public EmojiReaction() {
+ }
+
+ public EmojiReaction(String emoji, String title, boolean isActive, Sticker staticIcon, Sticker appearAnimation, Sticker selectAnimation, Sticker activateAnimation, Sticker effectAnimation, Sticker aroundAnimation, Sticker centerAnimation) {
+ this.emoji = emoji;
+ this.title = title;
+ this.isActive = isActive;
+ this.staticIcon = staticIcon;
+ this.appearAnimation = appearAnimation;
+ this.selectAnimation = selectAnimation;
+ this.activateAnimation = activateAnimation;
+ this.effectAnimation = effectAnimation;
+ this.aroundAnimation = aroundAnimation;
+ this.centerAnimation = centerAnimation;
+ }
+
+ public static final int CONSTRUCTOR = 1616063583;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiStatus extends Object {
+
+ public long customEmojiId;
+
+ public int expirationDate;
+
+ public EmojiStatus() {
+ }
+
+ public EmojiStatus(long customEmojiId, int expirationDate) {
+ this.customEmojiId = customEmojiId;
+ this.expirationDate = expirationDate;
+ }
+
+ public static final int CONSTRUCTOR = -606529994;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EmojiStatuses extends Object {
+
+ public long[] customEmojiIds;
+
+ public EmojiStatuses() {
+ }
+
+ public EmojiStatuses(long[] customEmojiIds) {
+ this.customEmojiIds = customEmojiIds;
+ }
+
+ public static final int CONSTRUCTOR = -377859594;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Emojis extends Object {
+
+ public String[] emojis;
+
+ public Emojis() {
+ }
+
+ public Emojis(String[] emojis) {
+ this.emojis = emojis;
+ }
+
+ public static final int CONSTRUCTOR = 950339552;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EncryptedCredentials extends Object {
+
+ public byte[] data;
+
+ public byte[] hash;
+
+ public byte[] secret;
+
+ public EncryptedCredentials() {
+ }
+
+ public EncryptedCredentials(byte[] data, byte[] hash, byte[] secret) {
+ this.data = data;
+ this.hash = hash;
+ this.secret = secret;
+ }
+
+ public static final int CONSTRUCTOR = 1331106766;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EncryptedPassportElement extends Object {
+
+ public PassportElementType type;
+
+ public byte[] data;
+
+ public DatedFile frontSide;
+
+ public DatedFile reverseSide;
+
+ public DatedFile selfie;
+
+ public DatedFile[] translation;
+
+ public DatedFile[] files;
+
+ public String value;
+
+ public String hash;
+
+ public EncryptedPassportElement() {
+ }
+
+ public EncryptedPassportElement(PassportElementType type, byte[] data, DatedFile frontSide, DatedFile reverseSide, DatedFile selfie, DatedFile[] translation, DatedFile[] files, String value, String hash) {
+ this.type = type;
+ this.data = data;
+ this.frontSide = frontSide;
+ this.reverseSide = reverseSide;
+ this.selfie = selfie;
+ this.translation = translation;
+ this.files = files;
+ this.value = value;
+ this.hash = hash;
+ }
+
+ public static final int CONSTRUCTOR = 2002386193;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Error extends Object {
+
+ public int code;
+
+ public String message;
+
+ public Error() {
+ }
+
+ public Error(int code, String message) {
+ this.code = code;
+ this.message = message;
+ }
+
+ public static final int CONSTRUCTOR = -1679978726;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FactCheck extends Object {
+
+ public FormattedText text;
+
+ public String countryCode;
+
+ public FactCheck() {
+ }
+
+ public FactCheck(FormattedText text, String countryCode) {
+ this.text = text;
+ this.countryCode = countryCode;
+ }
+
+ public static final int CONSTRUCTOR = -1048184552;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FailedToAddMember extends Object {
+
+ public long userId;
+
+ public boolean premiumWouldAllowInvite;
+
+ public boolean premiumRequiredToSendMessages;
+
+ public FailedToAddMember() {
+ }
+
+ public FailedToAddMember(long userId, boolean premiumWouldAllowInvite, boolean premiumRequiredToSendMessages) {
+ this.userId = userId;
+ this.premiumWouldAllowInvite = premiumWouldAllowInvite;
+ this.premiumRequiredToSendMessages = premiumRequiredToSendMessages;
+ }
+
+ public static final int CONSTRUCTOR = -282891070;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FailedToAddMembers extends Object {
+
+ public FailedToAddMember[] failedToAddMembers;
+
+ public FailedToAddMembers() {
+ }
+
+ public FailedToAddMembers(FailedToAddMember[] failedToAddMembers) {
+ this.failedToAddMembers = failedToAddMembers;
+ }
+
+ public static final int CONSTRUCTOR = -272587152;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class File extends Object {
+
+ public int id;
+
+ public long size;
+
+ public long expectedSize;
+
+ public LocalFile local;
+
+ public RemoteFile remote;
+
+ public File() {
+ }
+
+ public File(int id, long size, long expectedSize, LocalFile local, RemoteFile remote) {
+ this.id = id;
+ this.size = size;
+ this.expectedSize = expectedSize;
+ this.local = local;
+ this.remote = remote;
+ }
+
+ public static final int CONSTRUCTOR = 1263291956;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileDownload extends Object {
+
+ public int fileId;
+
+ public Message message;
+
+ public int addDate;
+
+ public int completeDate;
+
+ public boolean isPaused;
+
+ public FileDownload() {
+ }
+
+ public FileDownload(int fileId, Message message, int addDate, int completeDate, boolean isPaused) {
+ this.fileId = fileId;
+ this.message = message;
+ this.addDate = addDate;
+ this.completeDate = completeDate;
+ this.isPaused = isPaused;
+ }
+
+ public static final int CONSTRUCTOR = -2092100780;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileDownloadedPrefixSize extends Object {
+
+ public long size;
+
+ public FileDownloadedPrefixSize() {
+ }
+
+ public FileDownloadedPrefixSize(long size) {
+ this.size = size;
+ }
+
+ public static final int CONSTRUCTOR = -2015205381;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FilePart extends Object {
+
+ public byte[] data;
+
+ public FilePart() {
+ }
+
+ public FilePart(byte[] data) {
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = 911821878;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class FileType extends Object {
+
+ public FileType() {
+ }
+ }
+
+ public static class FileTypeNone extends FileType {
+ public FileTypeNone() {
+ }
+
+ public static final int CONSTRUCTOR = 2003009189;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeAnimation extends FileType {
+ public FileTypeAnimation() {
+ }
+
+ public static final int CONSTRUCTOR = -290816582;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeAudio extends FileType {
+ public FileTypeAudio() {
+ }
+
+ public static final int CONSTRUCTOR = -709112160;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeDocument extends FileType {
+ public FileTypeDocument() {
+ }
+
+ public static final int CONSTRUCTOR = -564722929;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeNotificationSound extends FileType {
+ public FileTypeNotificationSound() {
+ }
+
+ public static final int CONSTRUCTOR = -1020289271;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypePhoto extends FileType {
+ public FileTypePhoto() {
+ }
+
+ public static final int CONSTRUCTOR = -1718914651;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypePhotoStory extends FileType {
+ public FileTypePhotoStory() {
+ }
+
+ public static final int CONSTRUCTOR = 2018995956;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeProfilePhoto extends FileType {
+ public FileTypeProfilePhoto() {
+ }
+
+ public static final int CONSTRUCTOR = 1795089315;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeSecret extends FileType {
+ public FileTypeSecret() {
+ }
+
+ public static final int CONSTRUCTOR = -1871899401;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeSecretThumbnail extends FileType {
+ public FileTypeSecretThumbnail() {
+ }
+
+ public static final int CONSTRUCTOR = -1401326026;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeSecure extends FileType {
+ public FileTypeSecure() {
+ }
+
+ public static final int CONSTRUCTOR = -1419133146;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeSelfDestructingPhoto extends FileType {
+ public FileTypeSelfDestructingPhoto() {
+ }
+
+ public static final int CONSTRUCTOR = 2077176475;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeSelfDestructingVideo extends FileType {
+ public FileTypeSelfDestructingVideo() {
+ }
+
+ public static final int CONSTRUCTOR = -1223900123;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeSelfDestructingVideoNote extends FileType {
+ public FileTypeSelfDestructingVideoNote() {
+ }
+
+ public static final int CONSTRUCTOR = 1495274177;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeSelfDestructingVoiceNote extends FileType {
+ public FileTypeSelfDestructingVoiceNote() {
+ }
+
+ public static final int CONSTRUCTOR = 1691409181;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeSticker extends FileType {
+ public FileTypeSticker() {
+ }
+
+ public static final int CONSTRUCTOR = 475233385;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeThumbnail extends FileType {
+ public FileTypeThumbnail() {
+ }
+
+ public static final int CONSTRUCTOR = -12443298;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeUnknown extends FileType {
+ public FileTypeUnknown() {
+ }
+
+ public static final int CONSTRUCTOR = -2011566768;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeVideo extends FileType {
+ public FileTypeVideo() {
+ }
+
+ public static final int CONSTRUCTOR = 1430816539;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeVideoNote extends FileType {
+ public FileTypeVideoNote() {
+ }
+
+ public static final int CONSTRUCTOR = -518412385;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeVideoStory extends FileType {
+ public FileTypeVideoStory() {
+ }
+
+ public static final int CONSTRUCTOR = -2146754143;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeVoiceNote extends FileType {
+ public FileTypeVoiceNote() {
+ }
+
+ public static final int CONSTRUCTOR = -588681661;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FileTypeWallpaper extends FileType {
+ public FileTypeWallpaper() {
+ }
+
+ public static final int CONSTRUCTOR = 1854930076;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class FirebaseAuthenticationSettings extends Object {
+
+ public FirebaseAuthenticationSettings() {
+ }
+ }
+
+ public static class FirebaseAuthenticationSettingsAndroid extends FirebaseAuthenticationSettings {
+ public FirebaseAuthenticationSettingsAndroid() {
+ }
+
+ public static final int CONSTRUCTOR = -1771112932;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FirebaseAuthenticationSettingsIos extends FirebaseAuthenticationSettings {
+
+ public String deviceToken;
+
+ public boolean isAppSandbox;
+
+ public FirebaseAuthenticationSettingsIos() {
+ }
+
+ public FirebaseAuthenticationSettingsIos(String deviceToken, boolean isAppSandbox) {
+ this.deviceToken = deviceToken;
+ this.isAppSandbox = isAppSandbox;
+ }
+
+ public static final int CONSTRUCTOR = 222930116;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class FirebaseDeviceVerificationParameters extends Object {
+
+ public FirebaseDeviceVerificationParameters() {
+ }
+ }
+
+ public static class FirebaseDeviceVerificationParametersSafetyNet extends FirebaseDeviceVerificationParameters {
+
+ public byte[] nonce;
+
+ public FirebaseDeviceVerificationParametersSafetyNet() {
+ }
+
+ public FirebaseDeviceVerificationParametersSafetyNet(byte[] nonce) {
+ this.nonce = nonce;
+ }
+
+ public static final int CONSTRUCTOR = 731296497;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FirebaseDeviceVerificationParametersPlayIntegrity extends FirebaseDeviceVerificationParameters {
+
+ public String nonce;
+
+ public long cloudProjectNumber;
+
+ public FirebaseDeviceVerificationParametersPlayIntegrity() {
+ }
+
+ public FirebaseDeviceVerificationParametersPlayIntegrity(String nonce, long cloudProjectNumber) {
+ this.nonce = nonce;
+ this.cloudProjectNumber = cloudProjectNumber;
+ }
+
+ public static final int CONSTRUCTOR = -889936502;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FormattedText extends Object {
+
+ public String text;
+
+ public TextEntity[] entities;
+
+ public FormattedText() {
+ }
+
+ public FormattedText(String text, TextEntity[] entities) {
+ this.text = text;
+ this.entities = entities;
+ }
+
+ public static final int CONSTRUCTOR = -252624564;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ForumTopic extends Object {
+
+ public ForumTopicInfo info;
+
+ public Message lastMessage;
+
+ public boolean isPinned;
+
+ public int unreadCount;
+
+ public long lastReadInboxMessageId;
+
+ public long lastReadOutboxMessageId;
+
+ public int unreadMentionCount;
+
+ public int unreadReactionCount;
+
+ public ChatNotificationSettings notificationSettings;
+
+ public DraftMessage draftMessage;
+
+ public ForumTopic() {
+ }
+
+ public ForumTopic(ForumTopicInfo info, Message lastMessage, boolean isPinned, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, ChatNotificationSettings notificationSettings, DraftMessage draftMessage) {
+ this.info = info;
+ this.lastMessage = lastMessage;
+ this.isPinned = isPinned;
+ this.unreadCount = unreadCount;
+ this.lastReadInboxMessageId = lastReadInboxMessageId;
+ this.lastReadOutboxMessageId = lastReadOutboxMessageId;
+ this.unreadMentionCount = unreadMentionCount;
+ this.unreadReactionCount = unreadReactionCount;
+ this.notificationSettings = notificationSettings;
+ this.draftMessage = draftMessage;
+ }
+
+ public static final int CONSTRUCTOR = 303279334;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ForumTopicIcon extends Object {
+
+ public int color;
+
+ public long customEmojiId;
+
+ public ForumTopicIcon() {
+ }
+
+ public ForumTopicIcon(int color, long customEmojiId) {
+ this.color = color;
+ this.customEmojiId = customEmojiId;
+ }
+
+ public static final int CONSTRUCTOR = -818765421;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ForumTopicInfo extends Object {
+
+ public long messageThreadId;
+
+ public String name;
+
+ public ForumTopicIcon icon;
+
+ public int creationDate;
+
+ public MessageSender creatorId;
+
+ public boolean isGeneral;
+
+ public boolean isOutgoing;
+
+ public boolean isClosed;
+
+ public boolean isHidden;
+
+ public ForumTopicInfo() {
+ }
+
+ public ForumTopicInfo(long messageThreadId, String name, ForumTopicIcon icon, int creationDate, MessageSender creatorId, boolean isGeneral, boolean isOutgoing, boolean isClosed, boolean isHidden) {
+ this.messageThreadId = messageThreadId;
+ this.name = name;
+ this.icon = icon;
+ this.creationDate = creationDate;
+ this.creatorId = creatorId;
+ this.isGeneral = isGeneral;
+ this.isOutgoing = isOutgoing;
+ this.isClosed = isClosed;
+ this.isHidden = isHidden;
+ }
+
+ public static final int CONSTRUCTOR = -1879842914;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ForumTopics extends Object {
+
+ public int totalCount;
+
+ public ForumTopic[] topics;
+
+ public int nextOffsetDate;
+
+ public long nextOffsetMessageId;
+
+ public long nextOffsetMessageThreadId;
+
+ public ForumTopics() {
+ }
+
+ public ForumTopics(int totalCount, ForumTopic[] topics, int nextOffsetDate, long nextOffsetMessageId, long nextOffsetMessageThreadId) {
+ this.totalCount = totalCount;
+ this.topics = topics;
+ this.nextOffsetDate = nextOffsetDate;
+ this.nextOffsetMessageId = nextOffsetMessageId;
+ this.nextOffsetMessageThreadId = nextOffsetMessageThreadId;
+ }
+
+ public static final int CONSTRUCTOR = 732819537;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ForwardSource extends Object {
+
+ public long chatId;
+
+ public long messageId;
+
+ public MessageSender senderId;
+
+ public String senderName;
+
+ public int date;
+
+ public boolean isOutgoing;
+
+ public ForwardSource() {
+ }
+
+ public ForwardSource(long chatId, long messageId, MessageSender senderId, String senderName, int date, boolean isOutgoing) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.senderId = senderId;
+ this.senderName = senderName;
+ this.date = date;
+ this.isOutgoing = isOutgoing;
+ }
+
+ public static final int CONSTRUCTOR = 1795337929;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundAffiliateProgram extends Object {
+
+ public long botUserId;
+
+ public AffiliateProgramInfo parameters;
+
+ public FoundAffiliateProgram() {
+ }
+
+ public FoundAffiliateProgram(long botUserId, AffiliateProgramInfo parameters) {
+ this.botUserId = botUserId;
+ this.parameters = parameters;
+ }
+
+ public static final int CONSTRUCTOR = -2134937582;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundAffiliatePrograms extends Object {
+
+ public int totalCount;
+
+ public FoundAffiliateProgram[] programs;
+
+ public String nextOffset;
+
+ public FoundAffiliatePrograms() {
+ }
+
+ public FoundAffiliatePrograms(int totalCount, FoundAffiliateProgram[] programs, String nextOffset) {
+ this.totalCount = totalCount;
+ this.programs = programs;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 186317057;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundChatBoosts extends Object {
+
+ public int totalCount;
+
+ public ChatBoost[] boosts;
+
+ public String nextOffset;
+
+ public FoundChatBoosts() {
+ }
+
+ public FoundChatBoosts(int totalCount, ChatBoost[] boosts, String nextOffset) {
+ this.totalCount = totalCount;
+ this.boosts = boosts;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 51457680;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundChatMessages extends Object {
+
+ public int totalCount;
+
+ public Message[] messages;
+
+ public long nextFromMessageId;
+
+ public FoundChatMessages() {
+ }
+
+ public FoundChatMessages(int totalCount, Message[] messages, long nextFromMessageId) {
+ this.totalCount = totalCount;
+ this.messages = messages;
+ this.nextFromMessageId = nextFromMessageId;
+ }
+
+ public static final int CONSTRUCTOR = 427484196;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundFileDownloads extends Object {
+
+ public DownloadedFileCounts totalCounts;
+
+ public FileDownload[] files;
+
+ public String nextOffset;
+
+ public FoundFileDownloads() {
+ }
+
+ public FoundFileDownloads(DownloadedFileCounts totalCounts, FileDownload[] files, String nextOffset) {
+ this.totalCounts = totalCounts;
+ this.files = files;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 1395890392;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundMessages extends Object {
+
+ public int totalCount;
+
+ public Message[] messages;
+
+ public String nextOffset;
+
+ public FoundMessages() {
+ }
+
+ public FoundMessages(int totalCount, Message[] messages, String nextOffset) {
+ this.totalCount = totalCount;
+ this.messages = messages;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = -529809608;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundPosition extends Object {
+
+ public int position;
+
+ public FoundPosition() {
+ }
+
+ public FoundPosition(int position) {
+ this.position = position;
+ }
+
+ public static final int CONSTRUCTOR = -1886724216;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundPositions extends Object {
+
+ public int totalCount;
+
+ public int[] positions;
+
+ public FoundPositions() {
+ }
+
+ public FoundPositions(int totalCount, int[] positions) {
+ this.totalCount = totalCount;
+ this.positions = positions;
+ }
+
+ public static final int CONSTRUCTOR = -80518368;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundStories extends Object {
+
+ public int totalCount;
+
+ public Story[] stories;
+
+ public String nextOffset;
+
+ public FoundStories() {
+ }
+
+ public FoundStories(int totalCount, Story[] stories, String nextOffset) {
+ this.totalCount = totalCount;
+ this.stories = stories;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 1678513512;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundUsers extends Object {
+
+ public long[] userIds;
+
+ public String nextOffset;
+
+ public FoundUsers() {
+ }
+
+ public FoundUsers(long[] userIds, String nextOffset) {
+ this.userIds = userIds;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 1150570075;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FoundWebApp extends Object {
+
+ public WebApp webApp;
+
+ public boolean requestWriteAccess;
+
+ public boolean skipConfirmation;
+
+ public FoundWebApp() {
+ }
+
+ public FoundWebApp(WebApp webApp, boolean requestWriteAccess, boolean skipConfirmation) {
+ this.webApp = webApp;
+ this.requestWriteAccess = requestWriteAccess;
+ this.skipConfirmation = skipConfirmation;
+ }
+
+ public static final int CONSTRUCTOR = -290926562;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Game extends Object {
+
+ public long id;
+
+ public String shortName;
+
+ public String title;
+
+ public FormattedText text;
+
+ public String description;
+
+ public Photo photo;
+
+ public Animation animation;
+
+ public Game() {
+ }
+
+ public Game(long id, String shortName, String title, FormattedText text, String description, Photo photo, Animation animation) {
+ this.id = id;
+ this.shortName = shortName;
+ this.title = title;
+ this.text = text;
+ this.description = description;
+ this.photo = photo;
+ this.animation = animation;
+ }
+
+ public static final int CONSTRUCTOR = -1565597752;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GameHighScore extends Object {
+
+ public int position;
+
+ public long userId;
+
+ public int score;
+
+ public GameHighScore() {
+ }
+
+ public GameHighScore(int position, long userId, int score) {
+ this.position = position;
+ this.userId = userId;
+ this.score = score;
+ }
+
+ public static final int CONSTRUCTOR = 342871838;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GameHighScores extends Object {
+
+ public GameHighScore[] scores;
+
+ public GameHighScores() {
+ }
+
+ public GameHighScores(GameHighScore[] scores) {
+ this.scores = scores;
+ }
+
+ public static final int CONSTRUCTOR = -725770727;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Gift extends Object {
+
+ public long id;
+
+ public Sticker sticker;
+
+ public long starCount;
+
+ public long defaultSellStarCount;
+
+ public boolean isForBirthday;
+
+ public int remainingCount;
+
+ public int totalCount;
+
+ public int firstSendDate;
+
+ public int lastSendDate;
+
+ public Gift() {
+ }
+
+ public Gift(long id, Sticker sticker, long starCount, long defaultSellStarCount, boolean isForBirthday, int remainingCount, int totalCount, int firstSendDate, int lastSendDate) {
+ this.id = id;
+ this.sticker = sticker;
+ this.starCount = starCount;
+ this.defaultSellStarCount = defaultSellStarCount;
+ this.isForBirthday = isForBirthday;
+ this.remainingCount = remainingCount;
+ this.totalCount = totalCount;
+ this.firstSendDate = firstSendDate;
+ this.lastSendDate = lastSendDate;
+ }
+
+ public static final int CONSTRUCTOR = -752333618;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Gifts extends Object {
+
+ public Gift[] gifts;
+
+ public Gifts() {
+ }
+
+ public Gifts(Gift[] gifts) {
+ this.gifts = gifts;
+ }
+
+ public static final int CONSTRUCTOR = 1652323382;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class GiveawayInfo extends Object {
+
+ public GiveawayInfo() {
+ }
+ }
+
+ public static class GiveawayInfoOngoing extends GiveawayInfo {
+
+ public int creationDate;
+
+ public GiveawayParticipantStatus status;
+
+ public boolean isEnded;
+
+ public GiveawayInfoOngoing() {
+ }
+
+ public GiveawayInfoOngoing(int creationDate, GiveawayParticipantStatus status, boolean isEnded) {
+ this.creationDate = creationDate;
+ this.status = status;
+ this.isEnded = isEnded;
+ }
+
+ public static final int CONSTRUCTOR = 1649336400;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GiveawayInfoCompleted extends GiveawayInfo {
+
+ public int creationDate;
+
+ public int actualWinnersSelectionDate;
+
+ public boolean wasRefunded;
+
+ public boolean isWinner;
+
+ public int winnerCount;
+
+ public int activationCount;
+
+ public String giftCode;
+
+ public long wonStarCount;
+
+ public GiveawayInfoCompleted() {
+ }
+
+ public GiveawayInfoCompleted(int creationDate, int actualWinnersSelectionDate, boolean wasRefunded, boolean isWinner, int winnerCount, int activationCount, String giftCode, long wonStarCount) {
+ this.creationDate = creationDate;
+ this.actualWinnersSelectionDate = actualWinnersSelectionDate;
+ this.wasRefunded = wasRefunded;
+ this.isWinner = isWinner;
+ this.winnerCount = winnerCount;
+ this.activationCount = activationCount;
+ this.giftCode = giftCode;
+ this.wonStarCount = wonStarCount;
+ }
+
+ public static final int CONSTRUCTOR = 848085852;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GiveawayParameters extends Object {
+
+ public long boostedChatId;
+
+ public long[] additionalChatIds;
+
+ public int winnersSelectionDate;
+
+ public boolean onlyNewMembers;
+
+ public boolean hasPublicWinners;
+
+ public String[] countryCodes;
+
+ public String prizeDescription;
+
+ public GiveawayParameters() {
+ }
+
+ public GiveawayParameters(long boostedChatId, long[] additionalChatIds, int winnersSelectionDate, boolean onlyNewMembers, boolean hasPublicWinners, String[] countryCodes, String prizeDescription) {
+ this.boostedChatId = boostedChatId;
+ this.additionalChatIds = additionalChatIds;
+ this.winnersSelectionDate = winnersSelectionDate;
+ this.onlyNewMembers = onlyNewMembers;
+ this.hasPublicWinners = hasPublicWinners;
+ this.countryCodes = countryCodes;
+ this.prizeDescription = prizeDescription;
+ }
+
+ public static final int CONSTRUCTOR = 1171549354;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class GiveawayParticipantStatus extends Object {
+
+ public GiveawayParticipantStatus() {
+ }
+ }
+
+ public static class GiveawayParticipantStatusEligible extends GiveawayParticipantStatus {
+ public GiveawayParticipantStatusEligible() {
+ }
+
+ public static final int CONSTRUCTOR = 304799383;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GiveawayParticipantStatusParticipating extends GiveawayParticipantStatus {
+ public GiveawayParticipantStatusParticipating() {
+ }
+
+ public static final int CONSTRUCTOR = 492036975;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GiveawayParticipantStatusAlreadyWasMember extends GiveawayParticipantStatus {
+
+ public int joinedChatDate;
+
+ public GiveawayParticipantStatusAlreadyWasMember() {
+ }
+
+ public GiveawayParticipantStatusAlreadyWasMember(int joinedChatDate) {
+ this.joinedChatDate = joinedChatDate;
+ }
+
+ public static final int CONSTRUCTOR = 301577632;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GiveawayParticipantStatusAdministrator extends GiveawayParticipantStatus {
+
+ public long chatId;
+
+ public GiveawayParticipantStatusAdministrator() {
+ }
+
+ public GiveawayParticipantStatusAdministrator(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = -934593931;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GiveawayParticipantStatusDisallowedCountry extends GiveawayParticipantStatus {
+
+ public String userCountryCode;
+
+ public GiveawayParticipantStatusDisallowedCountry() {
+ }
+
+ public GiveawayParticipantStatusDisallowedCountry(String userCountryCode) {
+ this.userCountryCode = userCountryCode;
+ }
+
+ public static final int CONSTRUCTOR = 1879794779;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class GiveawayPrize extends Object {
+
+ public GiveawayPrize() {
+ }
+ }
+
+ public static class GiveawayPrizePremium extends GiveawayPrize {
+
+ public int monthCount;
+
+ public GiveawayPrizePremium() {
+ }
+
+ public GiveawayPrizePremium(int monthCount) {
+ this.monthCount = monthCount;
+ }
+
+ public static final int CONSTRUCTOR = 454224248;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GiveawayPrizeStars extends GiveawayPrize {
+
+ public long starCount;
+
+ public GiveawayPrizeStars() {
+ }
+
+ public GiveawayPrizeStars(long starCount) {
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = -1790173276;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GroupCall extends Object {
+
+ public int id;
+
+ public String title;
+
+ public int scheduledStartDate;
+
+ public boolean enabledStartNotification;
+
+ public boolean isActive;
+
+ public boolean isRtmpStream;
+
+ public boolean isJoined;
+
+ public boolean needRejoin;
+
+ public boolean canBeManaged;
+
+ public int participantCount;
+
+ public boolean hasHiddenListeners;
+
+ public boolean loadedAllParticipants;
+
+ public GroupCallRecentSpeaker[] recentSpeakers;
+
+ public boolean isMyVideoEnabled;
+
+ public boolean isMyVideoPaused;
+
+ public boolean canEnableVideo;
+
+ public boolean muteNewParticipants;
+
+ public boolean canToggleMuteNewParticipants;
+
+ public int recordDuration;
+
+ public boolean isVideoRecorded;
+
+ public int duration;
+
+ public GroupCall() {
+ }
+
+ public GroupCall(int id, String title, int scheduledStartDate, boolean enabledStartNotification, boolean isActive, boolean isRtmpStream, boolean isJoined, boolean needRejoin, boolean canBeManaged, int participantCount, boolean hasHiddenListeners, boolean loadedAllParticipants, GroupCallRecentSpeaker[] recentSpeakers, boolean isMyVideoEnabled, boolean isMyVideoPaused, boolean canEnableVideo, boolean muteNewParticipants, boolean canToggleMuteNewParticipants, int recordDuration, boolean isVideoRecorded, int duration) {
+ this.id = id;
+ this.title = title;
+ this.scheduledStartDate = scheduledStartDate;
+ this.enabledStartNotification = enabledStartNotification;
+ this.isActive = isActive;
+ this.isRtmpStream = isRtmpStream;
+ this.isJoined = isJoined;
+ this.needRejoin = needRejoin;
+ this.canBeManaged = canBeManaged;
+ this.participantCount = participantCount;
+ this.hasHiddenListeners = hasHiddenListeners;
+ this.loadedAllParticipants = loadedAllParticipants;
+ this.recentSpeakers = recentSpeakers;
+ this.isMyVideoEnabled = isMyVideoEnabled;
+ this.isMyVideoPaused = isMyVideoPaused;
+ this.canEnableVideo = canEnableVideo;
+ this.muteNewParticipants = muteNewParticipants;
+ this.canToggleMuteNewParticipants = canToggleMuteNewParticipants;
+ this.recordDuration = recordDuration;
+ this.isVideoRecorded = isVideoRecorded;
+ this.duration = duration;
+ }
+
+ public static final int CONSTRUCTOR = -123443355;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GroupCallId extends Object {
+
+ public int id;
+
+ public GroupCallId() {
+ }
+
+ public GroupCallId(int id) {
+ this.id = id;
+ }
+
+ public static final int CONSTRUCTOR = 350534469;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GroupCallParticipant extends Object {
+
+ public MessageSender participantId;
+
+ public int audioSourceId;
+
+ public int screenSharingAudioSourceId;
+
+ public GroupCallParticipantVideoInfo videoInfo;
+
+ public GroupCallParticipantVideoInfo screenSharingVideoInfo;
+
+ public String bio;
+
+ public boolean isCurrentUser;
+
+ public boolean isSpeaking;
+
+ public boolean isHandRaised;
+
+ public boolean canBeMutedForAllUsers;
+
+ public boolean canBeUnmutedForAllUsers;
+
+ public boolean canBeMutedForCurrentUser;
+
+ public boolean canBeUnmutedForCurrentUser;
+
+ public boolean isMutedForAllUsers;
+
+ public boolean isMutedForCurrentUser;
+
+ public boolean canUnmuteSelf;
+
+ public int volumeLevel;
+
+ public String order;
+
+ public GroupCallParticipant() {
+ }
+
+ public GroupCallParticipant(MessageSender participantId, int audioSourceId, int screenSharingAudioSourceId, GroupCallParticipantVideoInfo videoInfo, GroupCallParticipantVideoInfo screenSharingVideoInfo, String bio, boolean isCurrentUser, boolean isSpeaking, boolean isHandRaised, boolean canBeMutedForAllUsers, boolean canBeUnmutedForAllUsers, boolean canBeMutedForCurrentUser, boolean canBeUnmutedForCurrentUser, boolean isMutedForAllUsers, boolean isMutedForCurrentUser, boolean canUnmuteSelf, int volumeLevel, String order) {
+ this.participantId = participantId;
+ this.audioSourceId = audioSourceId;
+ this.screenSharingAudioSourceId = screenSharingAudioSourceId;
+ this.videoInfo = videoInfo;
+ this.screenSharingVideoInfo = screenSharingVideoInfo;
+ this.bio = bio;
+ this.isCurrentUser = isCurrentUser;
+ this.isSpeaking = isSpeaking;
+ this.isHandRaised = isHandRaised;
+ this.canBeMutedForAllUsers = canBeMutedForAllUsers;
+ this.canBeUnmutedForAllUsers = canBeUnmutedForAllUsers;
+ this.canBeMutedForCurrentUser = canBeMutedForCurrentUser;
+ this.canBeUnmutedForCurrentUser = canBeUnmutedForCurrentUser;
+ this.isMutedForAllUsers = isMutedForAllUsers;
+ this.isMutedForCurrentUser = isMutedForCurrentUser;
+ this.canUnmuteSelf = canUnmuteSelf;
+ this.volumeLevel = volumeLevel;
+ this.order = order;
+ }
+
+ public static final int CONSTRUCTOR = 2059182571;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GroupCallParticipantVideoInfo extends Object {
+
+ public GroupCallVideoSourceGroup[] sourceGroups;
+
+ public String endpointId;
+
+ public boolean isPaused;
+
+ public GroupCallParticipantVideoInfo() {
+ }
+
+ public GroupCallParticipantVideoInfo(GroupCallVideoSourceGroup[] sourceGroups, String endpointId, boolean isPaused) {
+ this.sourceGroups = sourceGroups;
+ this.endpointId = endpointId;
+ this.isPaused = isPaused;
+ }
+
+ public static final int CONSTRUCTOR = -14294645;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GroupCallRecentSpeaker extends Object {
+
+ public MessageSender participantId;
+
+ public boolean isSpeaking;
+
+ public GroupCallRecentSpeaker() {
+ }
+
+ public GroupCallRecentSpeaker(MessageSender participantId, boolean isSpeaking) {
+ this.participantId = participantId;
+ this.isSpeaking = isSpeaking;
+ }
+
+ public static final int CONSTRUCTOR = 1819519436;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GroupCallStream extends Object {
+
+ public int channelId;
+
+ public int scale;
+
+ public long timeOffset;
+
+ public GroupCallStream() {
+ }
+
+ public GroupCallStream(int channelId, int scale, long timeOffset) {
+ this.channelId = channelId;
+ this.scale = scale;
+ this.timeOffset = timeOffset;
+ }
+
+ public static final int CONSTRUCTOR = -264564795;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GroupCallStreams extends Object {
+
+ public GroupCallStream[] streams;
+
+ public GroupCallStreams() {
+ }
+
+ public GroupCallStreams(GroupCallStream[] streams) {
+ this.streams = streams;
+ }
+
+ public static final int CONSTRUCTOR = -1032959578;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class GroupCallVideoQuality extends Object {
+
+ public GroupCallVideoQuality() {
+ }
+ }
+
+ public static class GroupCallVideoQualityThumbnail extends GroupCallVideoQuality {
+ public GroupCallVideoQualityThumbnail() {
+ }
+
+ public static final int CONSTRUCTOR = -379186304;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GroupCallVideoQualityMedium extends GroupCallVideoQuality {
+ public GroupCallVideoQualityMedium() {
+ }
+
+ public static final int CONSTRUCTOR = 394968234;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GroupCallVideoQualityFull extends GroupCallVideoQuality {
+ public GroupCallVideoQualityFull() {
+ }
+
+ public static final int CONSTRUCTOR = -2125916617;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GroupCallVideoSourceGroup extends Object {
+
+ public String semantics;
+
+ public int[] sourceIds;
+
+ public GroupCallVideoSourceGroup() {
+ }
+
+ public GroupCallVideoSourceGroup(String semantics, int[] sourceIds) {
+ this.semantics = semantics;
+ this.sourceIds = sourceIds;
+ }
+
+ public static final int CONSTRUCTOR = -1190900785;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Hashtags extends Object {
+
+ public String[] hashtags;
+
+ public Hashtags() {
+ }
+
+ public Hashtags(String[] hashtags) {
+ this.hashtags = hashtags;
+ }
+
+ public static final int CONSTRUCTOR = 676798885;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class HttpUrl extends Object {
+
+ public String url;
+
+ public HttpUrl() {
+ }
+
+ public HttpUrl(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -2018019930;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class IdentityDocument extends Object {
+
+ public String number;
+
+ public Date expirationDate;
+
+ public DatedFile frontSide;
+
+ public DatedFile reverseSide;
+
+ public DatedFile selfie;
+
+ public DatedFile[] translation;
+
+ public IdentityDocument() {
+ }
+
+ public IdentityDocument(String number, Date expirationDate, DatedFile frontSide, DatedFile reverseSide, DatedFile selfie, DatedFile[] translation) {
+ this.number = number;
+ this.expirationDate = expirationDate;
+ this.frontSide = frontSide;
+ this.reverseSide = reverseSide;
+ this.selfie = selfie;
+ this.translation = translation;
+ }
+
+ public static final int CONSTRUCTOR = 1001703606;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ImportedContacts extends Object {
+
+ public long[] userIds;
+
+ public int[] importerCount;
+
+ public ImportedContacts() {
+ }
+
+ public ImportedContacts(long[] userIds, int[] importerCount) {
+ this.userIds = userIds;
+ this.importerCount = importerCount;
+ }
+
+ public static final int CONSTRUCTOR = 2068432290;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineKeyboardButton extends Object {
+
+ public String text;
+
+ public InlineKeyboardButtonType type;
+
+ public InlineKeyboardButton() {
+ }
+
+ public InlineKeyboardButton(String text, InlineKeyboardButtonType type) {
+ this.text = text;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -372105704;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InlineKeyboardButtonType extends Object {
+
+ public InlineKeyboardButtonType() {
+ }
+ }
+
+ public static class InlineKeyboardButtonTypeUrl extends InlineKeyboardButtonType {
+
+ public String url;
+
+ public InlineKeyboardButtonTypeUrl() {
+ }
+
+ public InlineKeyboardButtonTypeUrl(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 1130741420;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineKeyboardButtonTypeLoginUrl extends InlineKeyboardButtonType {
+
+ public String url;
+
+ public long id;
+
+ public String forwardText;
+
+ public InlineKeyboardButtonTypeLoginUrl() {
+ }
+
+ public InlineKeyboardButtonTypeLoginUrl(String url, long id, String forwardText) {
+ this.url = url;
+ this.id = id;
+ this.forwardText = forwardText;
+ }
+
+ public static final int CONSTRUCTOR = -1203413081;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineKeyboardButtonTypeWebApp extends InlineKeyboardButtonType {
+
+ public String url;
+
+ public InlineKeyboardButtonTypeWebApp() {
+ }
+
+ public InlineKeyboardButtonTypeWebApp(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -1767471672;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineKeyboardButtonTypeCallback extends InlineKeyboardButtonType {
+
+ public byte[] data;
+
+ public InlineKeyboardButtonTypeCallback() {
+ }
+
+ public InlineKeyboardButtonTypeCallback(byte[] data) {
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = -1127515139;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineKeyboardButtonTypeCallbackWithPassword extends InlineKeyboardButtonType {
+
+ public byte[] data;
+
+ public InlineKeyboardButtonTypeCallbackWithPassword() {
+ }
+
+ public InlineKeyboardButtonTypeCallbackWithPassword(byte[] data) {
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = 908018248;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineKeyboardButtonTypeCallbackGame extends InlineKeyboardButtonType {
+ public InlineKeyboardButtonTypeCallbackGame() {
+ }
+
+ public static final int CONSTRUCTOR = -383429528;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineKeyboardButtonTypeSwitchInline extends InlineKeyboardButtonType {
+
+ public String query;
+
+ public TargetChat targetChat;
+
+ public InlineKeyboardButtonTypeSwitchInline() {
+ }
+
+ public InlineKeyboardButtonTypeSwitchInline(String query, TargetChat targetChat) {
+ this.query = query;
+ this.targetChat = targetChat;
+ }
+
+ public static final int CONSTRUCTOR = 544906485;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineKeyboardButtonTypeBuy extends InlineKeyboardButtonType {
+ public InlineKeyboardButtonTypeBuy() {
+ }
+
+ public static final int CONSTRUCTOR = 1360739440;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineKeyboardButtonTypeUser extends InlineKeyboardButtonType {
+
+ public long userId;
+
+ public InlineKeyboardButtonTypeUser() {
+ }
+
+ public InlineKeyboardButtonTypeUser(long userId) {
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = 1836574114;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineKeyboardButtonTypeCopyText extends InlineKeyboardButtonType {
+
+ public String text;
+
+ public InlineKeyboardButtonTypeCopyText() {
+ }
+
+ public InlineKeyboardButtonTypeCopyText(String text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = 68883206;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InlineQueryResult extends Object {
+
+ public InlineQueryResult() {
+ }
+ }
+
+ public static class InlineQueryResultArticle extends InlineQueryResult {
+
+ public String id;
+
+ public String url;
+
+ public boolean hideUrl;
+
+ public String title;
+
+ public String description;
+
+ public Thumbnail thumbnail;
+
+ public InlineQueryResultArticle() {
+ }
+
+ public InlineQueryResultArticle(String id, String url, boolean hideUrl, String title, String description, Thumbnail thumbnail) {
+ this.id = id;
+ this.url = url;
+ this.hideUrl = hideUrl;
+ this.title = title;
+ this.description = description;
+ this.thumbnail = thumbnail;
+ }
+
+ public static final int CONSTRUCTOR = 206340825;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultContact extends InlineQueryResult {
+
+ public String id;
+
+ public Contact contact;
+
+ public Thumbnail thumbnail;
+
+ public InlineQueryResultContact() {
+ }
+
+ public InlineQueryResultContact(String id, Contact contact, Thumbnail thumbnail) {
+ this.id = id;
+ this.contact = contact;
+ this.thumbnail = thumbnail;
+ }
+
+ public static final int CONSTRUCTOR = -181960174;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultLocation extends InlineQueryResult {
+
+ public String id;
+
+ public Location location;
+
+ public String title;
+
+ public Thumbnail thumbnail;
+
+ public InlineQueryResultLocation() {
+ }
+
+ public InlineQueryResultLocation(String id, Location location, String title, Thumbnail thumbnail) {
+ this.id = id;
+ this.location = location;
+ this.title = title;
+ this.thumbnail = thumbnail;
+ }
+
+ public static final int CONSTRUCTOR = 466004752;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultVenue extends InlineQueryResult {
+
+ public String id;
+
+ public Venue venue;
+
+ public Thumbnail thumbnail;
+
+ public InlineQueryResultVenue() {
+ }
+
+ public InlineQueryResultVenue(String id, Venue venue, Thumbnail thumbnail) {
+ this.id = id;
+ this.venue = venue;
+ this.thumbnail = thumbnail;
+ }
+
+ public static final int CONSTRUCTOR = 1281036382;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultGame extends InlineQueryResult {
+
+ public String id;
+
+ public Game game;
+
+ public InlineQueryResultGame() {
+ }
+
+ public InlineQueryResultGame(String id, Game game) {
+ this.id = id;
+ this.game = game;
+ }
+
+ public static final int CONSTRUCTOR = 1706916987;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultAnimation extends InlineQueryResult {
+
+ public String id;
+
+ public Animation animation;
+
+ public String title;
+
+ public InlineQueryResultAnimation() {
+ }
+
+ public InlineQueryResultAnimation(String id, Animation animation, String title) {
+ this.id = id;
+ this.animation = animation;
+ this.title = title;
+ }
+
+ public static final int CONSTRUCTOR = 2009984267;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultAudio extends InlineQueryResult {
+
+ public String id;
+
+ public Audio audio;
+
+ public InlineQueryResultAudio() {
+ }
+
+ public InlineQueryResultAudio(String id, Audio audio) {
+ this.id = id;
+ this.audio = audio;
+ }
+
+ public static final int CONSTRUCTOR = 842650360;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultDocument extends InlineQueryResult {
+
+ public String id;
+
+ public Document document;
+
+ public String title;
+
+ public String description;
+
+ public InlineQueryResultDocument() {
+ }
+
+ public InlineQueryResultDocument(String id, Document document, String title, String description) {
+ this.id = id;
+ this.document = document;
+ this.title = title;
+ this.description = description;
+ }
+
+ public static final int CONSTRUCTOR = -1491268539;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultPhoto extends InlineQueryResult {
+
+ public String id;
+
+ public Photo photo;
+
+ public String title;
+
+ public String description;
+
+ public InlineQueryResultPhoto() {
+ }
+
+ public InlineQueryResultPhoto(String id, Photo photo, String title, String description) {
+ this.id = id;
+ this.photo = photo;
+ this.title = title;
+ this.description = description;
+ }
+
+ public static final int CONSTRUCTOR = 1848319440;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultSticker extends InlineQueryResult {
+
+ public String id;
+
+ public Sticker sticker;
+
+ public InlineQueryResultSticker() {
+ }
+
+ public InlineQueryResultSticker(String id, Sticker sticker) {
+ this.id = id;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -1848224245;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultVideo extends InlineQueryResult {
+
+ public String id;
+
+ public Video video;
+
+ public String title;
+
+ public String description;
+
+ public InlineQueryResultVideo() {
+ }
+
+ public InlineQueryResultVideo(String id, Video video, String title, String description) {
+ this.id = id;
+ this.video = video;
+ this.title = title;
+ this.description = description;
+ }
+
+ public static final int CONSTRUCTOR = -1373158683;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultVoiceNote extends InlineQueryResult {
+
+ public String id;
+
+ public VoiceNote voiceNote;
+
+ public String title;
+
+ public InlineQueryResultVoiceNote() {
+ }
+
+ public InlineQueryResultVoiceNote(String id, VoiceNote voiceNote, String title) {
+ this.id = id;
+ this.voiceNote = voiceNote;
+ this.title = title;
+ }
+
+ public static final int CONSTRUCTOR = -1897393105;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResults extends Object {
+
+ public long inlineQueryId;
+
+ public InlineQueryResultsButton button;
+
+ public InlineQueryResult[] results;
+
+ public String nextOffset;
+
+ public InlineQueryResults() {
+ }
+
+ public InlineQueryResults(long inlineQueryId, InlineQueryResultsButton button, InlineQueryResult[] results, String nextOffset) {
+ this.inlineQueryId = inlineQueryId;
+ this.button = button;
+ this.results = results;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 1830685615;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultsButton extends Object {
+
+ public String text;
+
+ public InlineQueryResultsButtonType type;
+
+ public InlineQueryResultsButton() {
+ }
+
+ public InlineQueryResultsButton(String text, InlineQueryResultsButtonType type) {
+ this.text = text;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -790689618;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InlineQueryResultsButtonType extends Object {
+
+ public InlineQueryResultsButtonType() {
+ }
+ }
+
+ public static class InlineQueryResultsButtonTypeStartBot extends InlineQueryResultsButtonType {
+
+ public String parameter;
+
+ public InlineQueryResultsButtonTypeStartBot() {
+ }
+
+ public InlineQueryResultsButtonTypeStartBot(String parameter) {
+ this.parameter = parameter;
+ }
+
+ public static final int CONSTRUCTOR = -23400235;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InlineQueryResultsButtonTypeWebApp extends InlineQueryResultsButtonType {
+
+ public String url;
+
+ public InlineQueryResultsButtonTypeWebApp() {
+ }
+
+ public InlineQueryResultsButtonTypeWebApp(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -1197382814;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputBackground extends Object {
+
+ public InputBackground() {
+ }
+ }
+
+ public static class InputBackgroundLocal extends InputBackground {
+
+ public InputFile background;
+
+ public InputBackgroundLocal() {
+ }
+
+ public InputBackgroundLocal(InputFile background) {
+ this.background = background;
+ }
+
+ public static final int CONSTRUCTOR = -1747094364;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputBackgroundRemote extends InputBackground {
+
+ public long backgroundId;
+
+ public InputBackgroundRemote() {
+ }
+
+ public InputBackgroundRemote(long backgroundId) {
+ this.backgroundId = backgroundId;
+ }
+
+ public static final int CONSTRUCTOR = -274976231;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputBackgroundPrevious extends InputBackground {
+
+ public long messageId;
+
+ public InputBackgroundPrevious() {
+ }
+
+ public InputBackgroundPrevious(long messageId) {
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = -351905954;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputBusinessChatLink extends Object {
+
+ public FormattedText text;
+
+ public String title;
+
+ public InputBusinessChatLink() {
+ }
+
+ public InputBusinessChatLink(FormattedText text, String title) {
+ this.text = text;
+ this.title = title;
+ }
+
+ public static final int CONSTRUCTOR = 237858296;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputBusinessStartPage extends Object {
+
+ public String title;
+
+ public String message;
+
+ public InputFile sticker;
+
+ public InputBusinessStartPage() {
+ }
+
+ public InputBusinessStartPage(String title, String message, InputFile sticker) {
+ this.title = title;
+ this.message = message;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -327383072;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputChatPhoto extends Object {
+
+ public InputChatPhoto() {
+ }
+ }
+
+ public static class InputChatPhotoPrevious extends InputChatPhoto {
+
+ public long chatPhotoId;
+
+ public InputChatPhotoPrevious() {
+ }
+
+ public InputChatPhotoPrevious(long chatPhotoId) {
+ this.chatPhotoId = chatPhotoId;
+ }
+
+ public static final int CONSTRUCTOR = 23128529;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputChatPhotoStatic extends InputChatPhoto {
+
+ public InputFile photo;
+
+ public InputChatPhotoStatic() {
+ }
+
+ public InputChatPhotoStatic(InputFile photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = 1979179699;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputChatPhotoAnimation extends InputChatPhoto {
+
+ public InputFile animation;
+
+ public double mainFrameTimestamp;
+
+ public InputChatPhotoAnimation() {
+ }
+
+ public InputChatPhotoAnimation(InputFile animation, double mainFrameTimestamp) {
+ this.animation = animation;
+ this.mainFrameTimestamp = mainFrameTimestamp;
+ }
+
+ public static final int CONSTRUCTOR = 90846242;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputChatPhotoSticker extends InputChatPhoto {
+
+ public ChatPhotoSticker sticker;
+
+ public InputChatPhotoSticker() {
+ }
+
+ public InputChatPhotoSticker(ChatPhotoSticker sticker) {
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = 1315861341;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputCredentials extends Object {
+
+ public InputCredentials() {
+ }
+ }
+
+ public static class InputCredentialsSaved extends InputCredentials {
+
+ public String savedCredentialsId;
+
+ public InputCredentialsSaved() {
+ }
+
+ public InputCredentialsSaved(String savedCredentialsId) {
+ this.savedCredentialsId = savedCredentialsId;
+ }
+
+ public static final int CONSTRUCTOR = -2034385364;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputCredentialsNew extends InputCredentials {
+
+ public String data;
+
+ public boolean allowSave;
+
+ public InputCredentialsNew() {
+ }
+
+ public InputCredentialsNew(String data, boolean allowSave) {
+ this.data = data;
+ this.allowSave = allowSave;
+ }
+
+ public static final int CONSTRUCTOR = -829689558;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputCredentialsApplePay extends InputCredentials {
+
+ public String data;
+
+ public InputCredentialsApplePay() {
+ }
+
+ public InputCredentialsApplePay(String data) {
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = -1246570799;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputCredentialsGooglePay extends InputCredentials {
+
+ public String data;
+
+ public InputCredentialsGooglePay() {
+ }
+
+ public InputCredentialsGooglePay(String data) {
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = 844384100;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputFile extends Object {
+
+ public InputFile() {
+ }
+ }
+
+ public static class InputFileId extends InputFile {
+
+ public int id;
+
+ public InputFileId() {
+ }
+
+ public InputFileId(int id) {
+ this.id = id;
+ }
+
+ public static final int CONSTRUCTOR = 1788906253;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputFileRemote extends InputFile {
+
+ public String id;
+
+ public InputFileRemote() {
+ }
+
+ public InputFileRemote(String id) {
+ this.id = id;
+ }
+
+ public static final int CONSTRUCTOR = -107574466;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputFileLocal extends InputFile {
+
+ public String path;
+
+ public InputFileLocal() {
+ }
+
+ public InputFileLocal(String path) {
+ this.path = path;
+ }
+
+ public static final int CONSTRUCTOR = 2056030919;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputFileGenerated extends InputFile {
+
+ public String originalPath;
+
+ public String conversion;
+
+ public long expectedSize;
+
+ public InputFileGenerated() {
+ }
+
+ public InputFileGenerated(String originalPath, String conversion, long expectedSize) {
+ this.originalPath = originalPath;
+ this.conversion = conversion;
+ this.expectedSize = expectedSize;
+ }
+
+ public static final int CONSTRUCTOR = -1333385216;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputIdentityDocument extends Object {
+
+ public String number;
+
+ public Date expirationDate;
+
+ public InputFile frontSide;
+
+ public InputFile reverseSide;
+
+ public InputFile selfie;
+
+ public InputFile[] translation;
+
+ public InputIdentityDocument() {
+ }
+
+ public InputIdentityDocument(String number, Date expirationDate, InputFile frontSide, InputFile reverseSide, InputFile selfie, InputFile[] translation) {
+ this.number = number;
+ this.expirationDate = expirationDate;
+ this.frontSide = frontSide;
+ this.reverseSide = reverseSide;
+ this.selfie = selfie;
+ this.translation = translation;
+ }
+
+ public static final int CONSTRUCTOR = 767353688;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputInlineQueryResult extends Object {
+
+ public InputInlineQueryResult() {
+ }
+ }
+
+ public static class InputInlineQueryResultAnimation extends InputInlineQueryResult {
+
+ public String id;
+
+ public String title;
+
+ public String thumbnailUrl;
+
+ public String thumbnailMimeType;
+
+ public String videoUrl;
+
+ public String videoMimeType;
+
+ public int videoDuration;
+
+ public int videoWidth;
+
+ public int videoHeight;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultAnimation() {
+ }
+
+ public InputInlineQueryResultAnimation(String id, String title, String thumbnailUrl, String thumbnailMimeType, String videoUrl, String videoMimeType, int videoDuration, int videoWidth, int videoHeight, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.title = title;
+ this.thumbnailUrl = thumbnailUrl;
+ this.thumbnailMimeType = thumbnailMimeType;
+ this.videoUrl = videoUrl;
+ this.videoMimeType = videoMimeType;
+ this.videoDuration = videoDuration;
+ this.videoWidth = videoWidth;
+ this.videoHeight = videoHeight;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = -1489808874;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultArticle extends InputInlineQueryResult {
+
+ public String id;
+
+ public String url;
+
+ public boolean hideUrl;
+
+ public String title;
+
+ public String description;
+
+ public String thumbnailUrl;
+
+ public int thumbnailWidth;
+
+ public int thumbnailHeight;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultArticle() {
+ }
+
+ public InputInlineQueryResultArticle(String id, String url, boolean hideUrl, String title, String description, String thumbnailUrl, int thumbnailWidth, int thumbnailHeight, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.url = url;
+ this.hideUrl = hideUrl;
+ this.title = title;
+ this.description = description;
+ this.thumbnailUrl = thumbnailUrl;
+ this.thumbnailWidth = thumbnailWidth;
+ this.thumbnailHeight = thumbnailHeight;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 1973670156;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultAudio extends InputInlineQueryResult {
+
+ public String id;
+
+ public String title;
+
+ public String performer;
+
+ public String audioUrl;
+
+ public int audioDuration;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultAudio() {
+ }
+
+ public InputInlineQueryResultAudio(String id, String title, String performer, String audioUrl, int audioDuration, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.title = title;
+ this.performer = performer;
+ this.audioUrl = audioUrl;
+ this.audioDuration = audioDuration;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 1260139988;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultContact extends InputInlineQueryResult {
+
+ public String id;
+
+ public Contact contact;
+
+ public String thumbnailUrl;
+
+ public int thumbnailWidth;
+
+ public int thumbnailHeight;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultContact() {
+ }
+
+ public InputInlineQueryResultContact(String id, Contact contact, String thumbnailUrl, int thumbnailWidth, int thumbnailHeight, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.contact = contact;
+ this.thumbnailUrl = thumbnailUrl;
+ this.thumbnailWidth = thumbnailWidth;
+ this.thumbnailHeight = thumbnailHeight;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 1846064594;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultDocument extends InputInlineQueryResult {
+
+ public String id;
+
+ public String title;
+
+ public String description;
+
+ public String documentUrl;
+
+ public String mimeType;
+
+ public String thumbnailUrl;
+
+ public int thumbnailWidth;
+
+ public int thumbnailHeight;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultDocument() {
+ }
+
+ public InputInlineQueryResultDocument(String id, String title, String description, String documentUrl, String mimeType, String thumbnailUrl, int thumbnailWidth, int thumbnailHeight, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.title = title;
+ this.description = description;
+ this.documentUrl = documentUrl;
+ this.mimeType = mimeType;
+ this.thumbnailUrl = thumbnailUrl;
+ this.thumbnailWidth = thumbnailWidth;
+ this.thumbnailHeight = thumbnailHeight;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 578801869;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultGame extends InputInlineQueryResult {
+
+ public String id;
+
+ public String gameShortName;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputInlineQueryResultGame() {
+ }
+
+ public InputInlineQueryResultGame(String id, String gameShortName, ReplyMarkup replyMarkup) {
+ this.id = id;
+ this.gameShortName = gameShortName;
+ this.replyMarkup = replyMarkup;
+ }
+
+ public static final int CONSTRUCTOR = 966074327;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultLocation extends InputInlineQueryResult {
+
+ public String id;
+
+ public Location location;
+
+ public int livePeriod;
+
+ public String title;
+
+ public String thumbnailUrl;
+
+ public int thumbnailWidth;
+
+ public int thumbnailHeight;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultLocation() {
+ }
+
+ public InputInlineQueryResultLocation(String id, Location location, int livePeriod, String title, String thumbnailUrl, int thumbnailWidth, int thumbnailHeight, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.location = location;
+ this.livePeriod = livePeriod;
+ this.title = title;
+ this.thumbnailUrl = thumbnailUrl;
+ this.thumbnailWidth = thumbnailWidth;
+ this.thumbnailHeight = thumbnailHeight;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = -1887650218;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultPhoto extends InputInlineQueryResult {
+
+ public String id;
+
+ public String title;
+
+ public String description;
+
+ public String thumbnailUrl;
+
+ public String photoUrl;
+
+ public int photoWidth;
+
+ public int photoHeight;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultPhoto() {
+ }
+
+ public InputInlineQueryResultPhoto(String id, String title, String description, String thumbnailUrl, String photoUrl, int photoWidth, int photoHeight, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.title = title;
+ this.description = description;
+ this.thumbnailUrl = thumbnailUrl;
+ this.photoUrl = photoUrl;
+ this.photoWidth = photoWidth;
+ this.photoHeight = photoHeight;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = -1123338721;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultSticker extends InputInlineQueryResult {
+
+ public String id;
+
+ public String thumbnailUrl;
+
+ public String stickerUrl;
+
+ public int stickerWidth;
+
+ public int stickerHeight;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultSticker() {
+ }
+
+ public InputInlineQueryResultSticker(String id, String thumbnailUrl, String stickerUrl, int stickerWidth, int stickerHeight, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.thumbnailUrl = thumbnailUrl;
+ this.stickerUrl = stickerUrl;
+ this.stickerWidth = stickerWidth;
+ this.stickerHeight = stickerHeight;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 274007129;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultVenue extends InputInlineQueryResult {
+
+ public String id;
+
+ public Venue venue;
+
+ public String thumbnailUrl;
+
+ public int thumbnailWidth;
+
+ public int thumbnailHeight;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultVenue() {
+ }
+
+ public InputInlineQueryResultVenue(String id, Venue venue, String thumbnailUrl, int thumbnailWidth, int thumbnailHeight, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.venue = venue;
+ this.thumbnailUrl = thumbnailUrl;
+ this.thumbnailWidth = thumbnailWidth;
+ this.thumbnailHeight = thumbnailHeight;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 541704509;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultVideo extends InputInlineQueryResult {
+
+ public String id;
+
+ public String title;
+
+ public String description;
+
+ public String thumbnailUrl;
+
+ public String videoUrl;
+
+ public String mimeType;
+
+ public int videoWidth;
+
+ public int videoHeight;
+
+ public int videoDuration;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultVideo() {
+ }
+
+ public InputInlineQueryResultVideo(String id, String title, String description, String thumbnailUrl, String videoUrl, String mimeType, int videoWidth, int videoHeight, int videoDuration, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.title = title;
+ this.description = description;
+ this.thumbnailUrl = thumbnailUrl;
+ this.videoUrl = videoUrl;
+ this.mimeType = mimeType;
+ this.videoWidth = videoWidth;
+ this.videoHeight = videoHeight;
+ this.videoDuration = videoDuration;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 1724073191;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInlineQueryResultVoiceNote extends InputInlineQueryResult {
+
+ public String id;
+
+ public String title;
+
+ public String voiceNoteUrl;
+
+ public int voiceNoteDuration;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public InputInlineQueryResultVoiceNote() {
+ }
+
+ public InputInlineQueryResultVoiceNote(String id, String title, String voiceNoteUrl, int voiceNoteDuration, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.id = id;
+ this.title = title;
+ this.voiceNoteUrl = voiceNoteUrl;
+ this.voiceNoteDuration = voiceNoteDuration;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = -1790072503;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputInvoice extends Object {
+
+ public InputInvoice() {
+ }
+ }
+
+ public static class InputInvoiceMessage extends InputInvoice {
+
+ public long chatId;
+
+ public long messageId;
+
+ public InputInvoiceMessage() {
+ }
+
+ public InputInvoiceMessage(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = 1490872848;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInvoiceName extends InputInvoice {
+
+ public String name;
+
+ public InputInvoiceName() {
+ }
+
+ public InputInvoiceName(String name) {
+ this.name = name;
+ }
+
+ public static final int CONSTRUCTOR = -1312155917;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputInvoiceTelegram extends InputInvoice {
+
+ public TelegramPaymentPurpose purpose;
+
+ public InputInvoiceTelegram() {
+ }
+
+ public InputInvoiceTelegram(TelegramPaymentPurpose purpose) {
+ this.purpose = purpose;
+ }
+
+ public static final int CONSTRUCTOR = -1762853139;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputMessageContent extends Object {
+
+ public InputMessageContent() {
+ }
+ }
+
+ public static class InputMessageText extends InputMessageContent {
+
+ public FormattedText text;
+
+ public LinkPreviewOptions linkPreviewOptions;
+
+ public boolean clearDraft;
+
+ public InputMessageText() {
+ }
+
+ public InputMessageText(FormattedText text, LinkPreviewOptions linkPreviewOptions, boolean clearDraft) {
+ this.text = text;
+ this.linkPreviewOptions = linkPreviewOptions;
+ this.clearDraft = clearDraft;
+ }
+
+ public static final int CONSTRUCTOR = -212805484;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageAnimation extends InputMessageContent {
+
+ public InputFile animation;
+
+ public InputThumbnail thumbnail;
+
+ public int[] addedStickerFileIds;
+
+ public int duration;
+
+ public int width;
+
+ public int height;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public boolean hasSpoiler;
+
+ public InputMessageAnimation() {
+ }
+
+ public InputMessageAnimation(InputFile animation, InputThumbnail thumbnail, int[] addedStickerFileIds, int duration, int width, int height, FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler) {
+ this.animation = animation;
+ this.thumbnail = thumbnail;
+ this.addedStickerFileIds = addedStickerFileIds;
+ this.duration = duration;
+ this.width = width;
+ this.height = height;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ this.hasSpoiler = hasSpoiler;
+ }
+
+ public static final int CONSTRUCTOR = -210404059;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageAudio extends InputMessageContent {
+
+ public InputFile audio;
+
+ public InputThumbnail albumCoverThumbnail;
+
+ public int duration;
+
+ public String title;
+
+ public String performer;
+
+ public FormattedText caption;
+
+ public InputMessageAudio() {
+ }
+
+ public InputMessageAudio(InputFile audio, InputThumbnail albumCoverThumbnail, int duration, String title, String performer, FormattedText caption) {
+ this.audio = audio;
+ this.albumCoverThumbnail = albumCoverThumbnail;
+ this.duration = duration;
+ this.title = title;
+ this.performer = performer;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = -626786126;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageDocument extends InputMessageContent {
+
+ public InputFile document;
+
+ public InputThumbnail thumbnail;
+
+ public boolean disableContentTypeDetection;
+
+ public FormattedText caption;
+
+ public InputMessageDocument() {
+ }
+
+ public InputMessageDocument(InputFile document, InputThumbnail thumbnail, boolean disableContentTypeDetection, FormattedText caption) {
+ this.document = document;
+ this.thumbnail = thumbnail;
+ this.disableContentTypeDetection = disableContentTypeDetection;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = 1633383097;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessagePaidMedia extends InputMessageContent {
+
+ public long starCount;
+
+ public InputPaidMedia[] paidMedia;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public String payload;
+
+ public InputMessagePaidMedia() {
+ }
+
+ public InputMessagePaidMedia(long starCount, InputPaidMedia[] paidMedia, FormattedText caption, boolean showCaptionAboveMedia, String payload) {
+ this.starCount = starCount;
+ this.paidMedia = paidMedia;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ this.payload = payload;
+ }
+
+ public static final int CONSTRUCTOR = -1274819374;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessagePhoto extends InputMessageContent {
+
+ public InputFile photo;
+
+ public InputThumbnail thumbnail;
+
+ public int[] addedStickerFileIds;
+
+ public int width;
+
+ public int height;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public MessageSelfDestructType selfDestructType;
+
+ public boolean hasSpoiler;
+
+ public InputMessagePhoto() {
+ }
+
+ public InputMessagePhoto(InputFile photo, InputThumbnail thumbnail, int[] addedStickerFileIds, int width, int height, FormattedText caption, boolean showCaptionAboveMedia, MessageSelfDestructType selfDestructType, boolean hasSpoiler) {
+ this.photo = photo;
+ this.thumbnail = thumbnail;
+ this.addedStickerFileIds = addedStickerFileIds;
+ this.width = width;
+ this.height = height;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ this.selfDestructType = selfDestructType;
+ this.hasSpoiler = hasSpoiler;
+ }
+
+ public static final int CONSTRUCTOR = -810129442;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageSticker extends InputMessageContent {
+
+ public InputFile sticker;
+
+ public InputThumbnail thumbnail;
+
+ public int width;
+
+ public int height;
+
+ public String emoji;
+
+ public InputMessageSticker() {
+ }
+
+ public InputMessageSticker(InputFile sticker, InputThumbnail thumbnail, int width, int height, String emoji) {
+ this.sticker = sticker;
+ this.thumbnail = thumbnail;
+ this.width = width;
+ this.height = height;
+ this.emoji = emoji;
+ }
+
+ public static final int CONSTRUCTOR = 1072805625;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageVideo extends InputMessageContent {
+
+ public InputFile video;
+
+ public InputThumbnail thumbnail;
+
+ public int[] addedStickerFileIds;
+
+ public int duration;
+
+ public int width;
+
+ public int height;
+
+ public boolean supportsStreaming;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public MessageSelfDestructType selfDestructType;
+
+ public boolean hasSpoiler;
+
+ public InputMessageVideo() {
+ }
+
+ public InputMessageVideo(InputFile video, InputThumbnail thumbnail, int[] addedStickerFileIds, int duration, int width, int height, boolean supportsStreaming, FormattedText caption, boolean showCaptionAboveMedia, MessageSelfDestructType selfDestructType, boolean hasSpoiler) {
+ this.video = video;
+ this.thumbnail = thumbnail;
+ this.addedStickerFileIds = addedStickerFileIds;
+ this.duration = duration;
+ this.width = width;
+ this.height = height;
+ this.supportsStreaming = supportsStreaming;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ this.selfDestructType = selfDestructType;
+ this.hasSpoiler = hasSpoiler;
+ }
+
+ public static final int CONSTRUCTOR = 615537686;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageVideoNote extends InputMessageContent {
+
+ public InputFile videoNote;
+
+ public InputThumbnail thumbnail;
+
+ public int duration;
+
+ public int length;
+
+ public MessageSelfDestructType selfDestructType;
+
+ public InputMessageVideoNote() {
+ }
+
+ public InputMessageVideoNote(InputFile videoNote, InputThumbnail thumbnail, int duration, int length, MessageSelfDestructType selfDestructType) {
+ this.videoNote = videoNote;
+ this.thumbnail = thumbnail;
+ this.duration = duration;
+ this.length = length;
+ this.selfDestructType = selfDestructType;
+ }
+
+ public static final int CONSTRUCTOR = -714598691;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageVoiceNote extends InputMessageContent {
+
+ public InputFile voiceNote;
+
+ public int duration;
+
+ public byte[] waveform;
+
+ public FormattedText caption;
+
+ public MessageSelfDestructType selfDestructType;
+
+ public InputMessageVoiceNote() {
+ }
+
+ public InputMessageVoiceNote(InputFile voiceNote, int duration, byte[] waveform, FormattedText caption, MessageSelfDestructType selfDestructType) {
+ this.voiceNote = voiceNote;
+ this.duration = duration;
+ this.waveform = waveform;
+ this.caption = caption;
+ this.selfDestructType = selfDestructType;
+ }
+
+ public static final int CONSTRUCTOR = 1461977004;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageLocation extends InputMessageContent {
+
+ public Location location;
+
+ public int livePeriod;
+
+ public int heading;
+
+ public int proximityAlertRadius;
+
+ public InputMessageLocation() {
+ }
+
+ public InputMessageLocation(Location location, int livePeriod, int heading, int proximityAlertRadius) {
+ this.location = location;
+ this.livePeriod = livePeriod;
+ this.heading = heading;
+ this.proximityAlertRadius = proximityAlertRadius;
+ }
+
+ public static final int CONSTRUCTOR = 648735088;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageVenue extends InputMessageContent {
+
+ public Venue venue;
+
+ public InputMessageVenue() {
+ }
+
+ public InputMessageVenue(Venue venue) {
+ this.venue = venue;
+ }
+
+ public static final int CONSTRUCTOR = 1447926269;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageContact extends InputMessageContent {
+
+ public Contact contact;
+
+ public InputMessageContact() {
+ }
+
+ public InputMessageContact(Contact contact) {
+ this.contact = contact;
+ }
+
+ public static final int CONSTRUCTOR = -982446849;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageDice extends InputMessageContent {
+
+ public String emoji;
+
+ public boolean clearDraft;
+
+ public InputMessageDice() {
+ }
+
+ public InputMessageDice(String emoji, boolean clearDraft) {
+ this.emoji = emoji;
+ this.clearDraft = clearDraft;
+ }
+
+ public static final int CONSTRUCTOR = 841574313;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageGame extends InputMessageContent {
+
+ public long botUserId;
+
+ public String gameShortName;
+
+ public InputMessageGame() {
+ }
+
+ public InputMessageGame(long botUserId, String gameShortName) {
+ this.botUserId = botUserId;
+ this.gameShortName = gameShortName;
+ }
+
+ public static final int CONSTRUCTOR = 1252944610;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageInvoice extends InputMessageContent {
+
+ public Invoice invoice;
+
+ public String title;
+
+ public String description;
+
+ public String photoUrl;
+
+ public int photoSize;
+
+ public int photoWidth;
+
+ public int photoHeight;
+
+ public byte[] payload;
+
+ public String providerToken;
+
+ public String providerData;
+
+ public String startParameter;
+
+ public InputPaidMedia paidMedia;
+
+ public FormattedText paidMediaCaption;
+
+ public InputMessageInvoice() {
+ }
+
+ public InputMessageInvoice(Invoice invoice, String title, String description, String photoUrl, int photoSize, int photoWidth, int photoHeight, byte[] payload, String providerToken, String providerData, String startParameter, InputPaidMedia paidMedia, FormattedText paidMediaCaption) {
+ this.invoice = invoice;
+ this.title = title;
+ this.description = description;
+ this.photoUrl = photoUrl;
+ this.photoSize = photoSize;
+ this.photoWidth = photoWidth;
+ this.photoHeight = photoHeight;
+ this.payload = payload;
+ this.providerToken = providerToken;
+ this.providerData = providerData;
+ this.startParameter = startParameter;
+ this.paidMedia = paidMedia;
+ this.paidMediaCaption = paidMediaCaption;
+ }
+
+ public static final int CONSTRUCTOR = -1162047631;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessagePoll extends InputMessageContent {
+
+ public FormattedText question;
+
+ public FormattedText[] options;
+
+ public boolean isAnonymous;
+
+ public PollType type;
+
+ public int openPeriod;
+
+ public int closeDate;
+
+ public boolean isClosed;
+
+ public InputMessagePoll() {
+ }
+
+ public InputMessagePoll(FormattedText question, FormattedText[] options, boolean isAnonymous, PollType type, int openPeriod, int closeDate, boolean isClosed) {
+ this.question = question;
+ this.options = options;
+ this.isAnonymous = isAnonymous;
+ this.type = type;
+ this.openPeriod = openPeriod;
+ this.closeDate = closeDate;
+ this.isClosed = isClosed;
+ }
+
+ public static final int CONSTRUCTOR = -263337164;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageStory extends InputMessageContent {
+
+ public long storySenderChatId;
+
+ public int storyId;
+
+ public InputMessageStory() {
+ }
+
+ public InputMessageStory(long storySenderChatId, int storyId) {
+ this.storySenderChatId = storySenderChatId;
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = 554278243;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageForwarded extends InputMessageContent {
+
+ public long fromChatId;
+
+ public long messageId;
+
+ public boolean inGameShare;
+
+ public MessageCopyOptions copyOptions;
+
+ public InputMessageForwarded() {
+ }
+
+ public InputMessageForwarded(long fromChatId, long messageId, boolean inGameShare, MessageCopyOptions copyOptions) {
+ this.fromChatId = fromChatId;
+ this.messageId = messageId;
+ this.inGameShare = inGameShare;
+ this.copyOptions = copyOptions;
+ }
+
+ public static final int CONSTRUCTOR = 1696232440;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputMessageReplyTo extends Object {
+
+ public InputMessageReplyTo() {
+ }
+ }
+
+ public static class InputMessageReplyToMessage extends InputMessageReplyTo {
+
+ public long messageId;
+
+ public InputTextQuote quote;
+
+ public InputMessageReplyToMessage() {
+ }
+
+ public InputMessageReplyToMessage(long messageId, InputTextQuote quote) {
+ this.messageId = messageId;
+ this.quote = quote;
+ }
+
+ public static final int CONSTRUCTOR = -1033987837;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageReplyToExternalMessage extends InputMessageReplyTo {
+
+ public long chatId;
+
+ public long messageId;
+
+ public InputTextQuote quote;
+
+ public InputMessageReplyToExternalMessage() {
+ }
+
+ public InputMessageReplyToExternalMessage(long chatId, long messageId, InputTextQuote quote) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.quote = quote;
+ }
+
+ public static final int CONSTRUCTOR = -1993530582;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputMessageReplyToStory extends InputMessageReplyTo {
+
+ public long storySenderChatId;
+
+ public int storyId;
+
+ public InputMessageReplyToStory() {
+ }
+
+ public InputMessageReplyToStory(long storySenderChatId, int storyId) {
+ this.storySenderChatId = storySenderChatId;
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = 1370410616;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPaidMedia extends Object {
+
+ public InputPaidMediaType type;
+
+ public InputFile media;
+
+ public InputThumbnail thumbnail;
+
+ public int[] addedStickerFileIds;
+
+ public int width;
+
+ public int height;
+
+ public InputPaidMedia() {
+ }
+
+ public InputPaidMedia(InputPaidMediaType type, InputFile media, InputThumbnail thumbnail, int[] addedStickerFileIds, int width, int height) {
+ this.type = type;
+ this.media = media;
+ this.thumbnail = thumbnail;
+ this.addedStickerFileIds = addedStickerFileIds;
+ this.width = width;
+ this.height = height;
+ }
+
+ public static final int CONSTRUCTOR = 475844035;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputPaidMediaType extends Object {
+
+ public InputPaidMediaType() {
+ }
+ }
+
+ public static class InputPaidMediaTypePhoto extends InputPaidMediaType {
+ public InputPaidMediaTypePhoto() {
+ }
+
+ public static final int CONSTRUCTOR = -761660134;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPaidMediaTypeVideo extends InputPaidMediaType {
+
+ public int duration;
+
+ public boolean supportsStreaming;
+
+ public InputPaidMediaTypeVideo() {
+ }
+
+ public InputPaidMediaTypeVideo(int duration, boolean supportsStreaming) {
+ this.duration = duration;
+ this.supportsStreaming = supportsStreaming;
+ }
+
+ public static final int CONSTRUCTOR = -1336673796;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputPassportElement extends Object {
+
+ public InputPassportElement() {
+ }
+ }
+
+ public static class InputPassportElementPersonalDetails extends InputPassportElement {
+
+ public PersonalDetails personalDetails;
+
+ public InputPassportElementPersonalDetails() {
+ }
+
+ public InputPassportElementPersonalDetails(PersonalDetails personalDetails) {
+ this.personalDetails = personalDetails;
+ }
+
+ public static final int CONSTRUCTOR = 164791359;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementPassport extends InputPassportElement {
+
+ public InputIdentityDocument passport;
+
+ public InputPassportElementPassport() {
+ }
+
+ public InputPassportElementPassport(InputIdentityDocument passport) {
+ this.passport = passport;
+ }
+
+ public static final int CONSTRUCTOR = -497011356;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementDriverLicense extends InputPassportElement {
+
+ public InputIdentityDocument driverLicense;
+
+ public InputPassportElementDriverLicense() {
+ }
+
+ public InputPassportElementDriverLicense(InputIdentityDocument driverLicense) {
+ this.driverLicense = driverLicense;
+ }
+
+ public static final int CONSTRUCTOR = 304813264;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementIdentityCard extends InputPassportElement {
+
+ public InputIdentityDocument identityCard;
+
+ public InputPassportElementIdentityCard() {
+ }
+
+ public InputPassportElementIdentityCard(InputIdentityDocument identityCard) {
+ this.identityCard = identityCard;
+ }
+
+ public static final int CONSTRUCTOR = -9963390;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementInternalPassport extends InputPassportElement {
+
+ public InputIdentityDocument internalPassport;
+
+ public InputPassportElementInternalPassport() {
+ }
+
+ public InputPassportElementInternalPassport(InputIdentityDocument internalPassport) {
+ this.internalPassport = internalPassport;
+ }
+
+ public static final int CONSTRUCTOR = 715360043;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementAddress extends InputPassportElement {
+
+ public Address address;
+
+ public InputPassportElementAddress() {
+ }
+
+ public InputPassportElementAddress(Address address) {
+ this.address = address;
+ }
+
+ public static final int CONSTRUCTOR = 461630480;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementUtilityBill extends InputPassportElement {
+
+ public InputPersonalDocument utilityBill;
+
+ public InputPassportElementUtilityBill() {
+ }
+
+ public InputPassportElementUtilityBill(InputPersonalDocument utilityBill) {
+ this.utilityBill = utilityBill;
+ }
+
+ public static final int CONSTRUCTOR = 1389203841;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementBankStatement extends InputPassportElement {
+
+ public InputPersonalDocument bankStatement;
+
+ public InputPassportElementBankStatement() {
+ }
+
+ public InputPassportElementBankStatement(InputPersonalDocument bankStatement) {
+ this.bankStatement = bankStatement;
+ }
+
+ public static final int CONSTRUCTOR = -26585208;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementRentalAgreement extends InputPassportElement {
+
+ public InputPersonalDocument rentalAgreement;
+
+ public InputPassportElementRentalAgreement() {
+ }
+
+ public InputPassportElementRentalAgreement(InputPersonalDocument rentalAgreement) {
+ this.rentalAgreement = rentalAgreement;
+ }
+
+ public static final int CONSTRUCTOR = 1736154155;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementPassportRegistration extends InputPassportElement {
+
+ public InputPersonalDocument passportRegistration;
+
+ public InputPassportElementPassportRegistration() {
+ }
+
+ public InputPassportElementPassportRegistration(InputPersonalDocument passportRegistration) {
+ this.passportRegistration = passportRegistration;
+ }
+
+ public static final int CONSTRUCTOR = 1314562128;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementTemporaryRegistration extends InputPassportElement {
+
+ public InputPersonalDocument temporaryRegistration;
+
+ public InputPassportElementTemporaryRegistration() {
+ }
+
+ public InputPassportElementTemporaryRegistration(InputPersonalDocument temporaryRegistration) {
+ this.temporaryRegistration = temporaryRegistration;
+ }
+
+ public static final int CONSTRUCTOR = -1913238047;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementPhoneNumber extends InputPassportElement {
+
+ public String phoneNumber;
+
+ public InputPassportElementPhoneNumber() {
+ }
+
+ public InputPassportElementPhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ }
+
+ public static final int CONSTRUCTOR = 1319357497;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementEmailAddress extends InputPassportElement {
+
+ public String emailAddress;
+
+ public InputPassportElementEmailAddress() {
+ }
+
+ public InputPassportElementEmailAddress(String emailAddress) {
+ this.emailAddress = emailAddress;
+ }
+
+ public static final int CONSTRUCTOR = -248605659;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementError extends Object {
+
+ public PassportElementType type;
+
+ public String message;
+
+ public InputPassportElementErrorSource source;
+
+ public InputPassportElementError() {
+ }
+
+ public InputPassportElementError(PassportElementType type, String message, InputPassportElementErrorSource source) {
+ this.type = type;
+ this.message = message;
+ this.source = source;
+ }
+
+ public static final int CONSTRUCTOR = 285756898;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputPassportElementErrorSource extends Object {
+
+ public InputPassportElementErrorSource() {
+ }
+ }
+
+ public static class InputPassportElementErrorSourceUnspecified extends InputPassportElementErrorSource {
+
+ public byte[] elementHash;
+
+ public InputPassportElementErrorSourceUnspecified() {
+ }
+
+ public InputPassportElementErrorSourceUnspecified(byte[] elementHash) {
+ this.elementHash = elementHash;
+ }
+
+ public static final int CONSTRUCTOR = 267230319;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementErrorSourceDataField extends InputPassportElementErrorSource {
+
+ public String fieldName;
+
+ public byte[] dataHash;
+
+ public InputPassportElementErrorSourceDataField() {
+ }
+
+ public InputPassportElementErrorSourceDataField(String fieldName, byte[] dataHash) {
+ this.fieldName = fieldName;
+ this.dataHash = dataHash;
+ }
+
+ public static final int CONSTRUCTOR = -426795002;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementErrorSourceFrontSide extends InputPassportElementErrorSource {
+
+ public byte[] fileHash;
+
+ public InputPassportElementErrorSourceFrontSide() {
+ }
+
+ public InputPassportElementErrorSourceFrontSide(byte[] fileHash) {
+ this.fileHash = fileHash;
+ }
+
+ public static final int CONSTRUCTOR = 588023741;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementErrorSourceReverseSide extends InputPassportElementErrorSource {
+
+ public byte[] fileHash;
+
+ public InputPassportElementErrorSourceReverseSide() {
+ }
+
+ public InputPassportElementErrorSourceReverseSide(byte[] fileHash) {
+ this.fileHash = fileHash;
+ }
+
+ public static final int CONSTRUCTOR = 413072891;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementErrorSourceSelfie extends InputPassportElementErrorSource {
+
+ public byte[] fileHash;
+
+ public InputPassportElementErrorSourceSelfie() {
+ }
+
+ public InputPassportElementErrorSourceSelfie(byte[] fileHash) {
+ this.fileHash = fileHash;
+ }
+
+ public static final int CONSTRUCTOR = -773575528;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementErrorSourceTranslationFile extends InputPassportElementErrorSource {
+
+ public byte[] fileHash;
+
+ public InputPassportElementErrorSourceTranslationFile() {
+ }
+
+ public InputPassportElementErrorSourceTranslationFile(byte[] fileHash) {
+ this.fileHash = fileHash;
+ }
+
+ public static final int CONSTRUCTOR = 505842299;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementErrorSourceTranslationFiles extends InputPassportElementErrorSource {
+
+ public byte[][] fileHashes;
+
+ public InputPassportElementErrorSourceTranslationFiles() {
+ }
+
+ public InputPassportElementErrorSourceTranslationFiles(byte[][] fileHashes) {
+ this.fileHashes = fileHashes;
+ }
+
+ public static final int CONSTRUCTOR = -527254048;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementErrorSourceFile extends InputPassportElementErrorSource {
+
+ public byte[] fileHash;
+
+ public InputPassportElementErrorSourceFile() {
+ }
+
+ public InputPassportElementErrorSourceFile(byte[] fileHash) {
+ this.fileHash = fileHash;
+ }
+
+ public static final int CONSTRUCTOR = -298492469;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPassportElementErrorSourceFiles extends InputPassportElementErrorSource {
+
+ public byte[][] fileHashes;
+
+ public InputPassportElementErrorSourceFiles() {
+ }
+
+ public InputPassportElementErrorSourceFiles(byte[][] fileHashes) {
+ this.fileHashes = fileHashes;
+ }
+
+ public static final int CONSTRUCTOR = -2008541640;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputPersonalDocument extends Object {
+
+ public InputFile[] files;
+
+ public InputFile[] translation;
+
+ public InputPersonalDocument() {
+ }
+
+ public InputPersonalDocument(InputFile[] files, InputFile[] translation) {
+ this.files = files;
+ this.translation = translation;
+ }
+
+ public static final int CONSTRUCTOR = 1676966826;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputSticker extends Object {
+
+ public InputFile sticker;
+
+ public StickerFormat format;
+
+ public String emojis;
+
+ public MaskPosition maskPosition;
+
+ public String[] keywords;
+
+ public InputSticker() {
+ }
+
+ public InputSticker(InputFile sticker, StickerFormat format, String emojis, MaskPosition maskPosition, String[] keywords) {
+ this.sticker = sticker;
+ this.format = format;
+ this.emojis = emojis;
+ this.maskPosition = maskPosition;
+ this.keywords = keywords;
+ }
+
+ public static final int CONSTRUCTOR = 1589392402;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputStoryArea extends Object {
+
+ public StoryAreaPosition position;
+
+ public InputStoryAreaType type;
+
+ public InputStoryArea() {
+ }
+
+ public InputStoryArea(StoryAreaPosition position, InputStoryAreaType type) {
+ this.position = position;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 122859135;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputStoryAreaType extends Object {
+
+ public InputStoryAreaType() {
+ }
+ }
+
+ public static class InputStoryAreaTypeLocation extends InputStoryAreaType {
+
+ public Location location;
+
+ public LocationAddress address;
+
+ public InputStoryAreaTypeLocation() {
+ }
+
+ public InputStoryAreaTypeLocation(Location location, LocationAddress address) {
+ this.location = location;
+ this.address = address;
+ }
+
+ public static final int CONSTRUCTOR = -1433714887;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputStoryAreaTypeFoundVenue extends InputStoryAreaType {
+
+ public long queryId;
+
+ public String resultId;
+
+ public InputStoryAreaTypeFoundVenue() {
+ }
+
+ public InputStoryAreaTypeFoundVenue(long queryId, String resultId) {
+ this.queryId = queryId;
+ this.resultId = resultId;
+ }
+
+ public static final int CONSTRUCTOR = -1395809130;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputStoryAreaTypePreviousVenue extends InputStoryAreaType {
+
+ public String venueProvider;
+
+ public String venueId;
+
+ public InputStoryAreaTypePreviousVenue() {
+ }
+
+ public InputStoryAreaTypePreviousVenue(String venueProvider, String venueId) {
+ this.venueProvider = venueProvider;
+ this.venueId = venueId;
+ }
+
+ public static final int CONSTRUCTOR = 1846693388;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputStoryAreaTypeSuggestedReaction extends InputStoryAreaType {
+
+ public ReactionType reactionType;
+
+ public boolean isDark;
+
+ public boolean isFlipped;
+
+ public InputStoryAreaTypeSuggestedReaction() {
+ }
+
+ public InputStoryAreaTypeSuggestedReaction(ReactionType reactionType, boolean isDark, boolean isFlipped) {
+ this.reactionType = reactionType;
+ this.isDark = isDark;
+ this.isFlipped = isFlipped;
+ }
+
+ public static final int CONSTRUCTOR = 2101826003;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputStoryAreaTypeMessage extends InputStoryAreaType {
+
+ public long chatId;
+
+ public long messageId;
+
+ public InputStoryAreaTypeMessage() {
+ }
+
+ public InputStoryAreaTypeMessage(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = -266607529;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputStoryAreaTypeLink extends InputStoryAreaType {
+
+ public String url;
+
+ public InputStoryAreaTypeLink() {
+ }
+
+ public InputStoryAreaTypeLink(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 1408441160;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputStoryAreaTypeWeather extends InputStoryAreaType {
+
+ public double temperature;
+
+ public String emoji;
+
+ public int backgroundColor;
+
+ public InputStoryAreaTypeWeather() {
+ }
+
+ public InputStoryAreaTypeWeather(double temperature, String emoji, int backgroundColor) {
+ this.temperature = temperature;
+ this.emoji = emoji;
+ this.backgroundColor = backgroundColor;
+ }
+
+ public static final int CONSTRUCTOR = -1212686691;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputStoryAreas extends Object {
+
+ public InputStoryArea[] areas;
+
+ public InputStoryAreas() {
+ }
+
+ public InputStoryAreas(InputStoryArea[] areas) {
+ this.areas = areas;
+ }
+
+ public static final int CONSTRUCTOR = -883247088;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InputStoryContent extends Object {
+
+ public InputStoryContent() {
+ }
+ }
+
+ public static class InputStoryContentPhoto extends InputStoryContent {
+
+ public InputFile photo;
+
+ public int[] addedStickerFileIds;
+
+ public InputStoryContentPhoto() {
+ }
+
+ public InputStoryContentPhoto(InputFile photo, int[] addedStickerFileIds) {
+ this.photo = photo;
+ this.addedStickerFileIds = addedStickerFileIds;
+ }
+
+ public static final int CONSTRUCTOR = -309196727;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputStoryContentVideo extends InputStoryContent {
+
+ public InputFile video;
+
+ public int[] addedStickerFileIds;
+
+ public double duration;
+
+ public double coverFrameTimestamp;
+
+ public boolean isAnimation;
+
+ public InputStoryContentVideo() {
+ }
+
+ public InputStoryContentVideo(InputFile video, int[] addedStickerFileIds, double duration, double coverFrameTimestamp, boolean isAnimation) {
+ this.video = video;
+ this.addedStickerFileIds = addedStickerFileIds;
+ this.duration = duration;
+ this.coverFrameTimestamp = coverFrameTimestamp;
+ this.isAnimation = isAnimation;
+ }
+
+ public static final int CONSTRUCTOR = 3809243;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputTextQuote extends Object {
+
+ public FormattedText text;
+
+ public int position;
+
+ public InputTextQuote() {
+ }
+
+ public InputTextQuote(FormattedText text, int position) {
+ this.text = text;
+ this.position = position;
+ }
+
+ public static final int CONSTRUCTOR = -1219859172;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InputThumbnail extends Object {
+
+ public InputFile thumbnail;
+
+ public int width;
+
+ public int height;
+
+ public InputThumbnail() {
+ }
+
+ public InputThumbnail(InputFile thumbnail, int width, int height) {
+ this.thumbnail = thumbnail;
+ this.width = width;
+ this.height = height;
+ }
+
+ public static final int CONSTRUCTOR = 1582387236;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InternalLinkType extends Object {
+
+ public InternalLinkType() {
+ }
+ }
+
+ public static class InternalLinkTypeActiveSessions extends InternalLinkType {
+ public InternalLinkTypeActiveSessions() {
+ }
+
+ public static final int CONSTRUCTOR = 1886108589;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeAttachmentMenuBot extends InternalLinkType {
+
+ public TargetChat targetChat;
+
+ public String botUsername;
+
+ public String url;
+
+ public InternalLinkTypeAttachmentMenuBot() {
+ }
+
+ public InternalLinkTypeAttachmentMenuBot(TargetChat targetChat, String botUsername, String url) {
+ this.targetChat = targetChat;
+ this.botUsername = botUsername;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 1682719269;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeAuthenticationCode extends InternalLinkType {
+
+ public String code;
+
+ public InternalLinkTypeAuthenticationCode() {
+ }
+
+ public InternalLinkTypeAuthenticationCode(String code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -209235982;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeBackground extends InternalLinkType {
+
+ public String backgroundName;
+
+ public InternalLinkTypeBackground() {
+ }
+
+ public InternalLinkTypeBackground(String backgroundName) {
+ this.backgroundName = backgroundName;
+ }
+
+ public static final int CONSTRUCTOR = 185411848;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeBotAddToChannel extends InternalLinkType {
+
+ public String botUsername;
+
+ public ChatAdministratorRights administratorRights;
+
+ public InternalLinkTypeBotAddToChannel() {
+ }
+
+ public InternalLinkTypeBotAddToChannel(String botUsername, ChatAdministratorRights administratorRights) {
+ this.botUsername = botUsername;
+ this.administratorRights = administratorRights;
+ }
+
+ public static final int CONSTRUCTOR = 1401602752;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeBotStart extends InternalLinkType {
+
+ public String botUsername;
+
+ public String startParameter;
+
+ public boolean autostart;
+
+ public InternalLinkTypeBotStart() {
+ }
+
+ public InternalLinkTypeBotStart(String botUsername, String startParameter, boolean autostart) {
+ this.botUsername = botUsername;
+ this.startParameter = startParameter;
+ this.autostart = autostart;
+ }
+
+ public static final int CONSTRUCTOR = 1066950637;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeBotStartInGroup extends InternalLinkType {
+
+ public String botUsername;
+
+ public String startParameter;
+
+ public ChatAdministratorRights administratorRights;
+
+ public InternalLinkTypeBotStartInGroup() {
+ }
+
+ public InternalLinkTypeBotStartInGroup(String botUsername, String startParameter, ChatAdministratorRights administratorRights) {
+ this.botUsername = botUsername;
+ this.startParameter = startParameter;
+ this.administratorRights = administratorRights;
+ }
+
+ public static final int CONSTRUCTOR = -905081650;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeBusinessChat extends InternalLinkType {
+
+ public String linkName;
+
+ public InternalLinkTypeBusinessChat() {
+ }
+
+ public InternalLinkTypeBusinessChat(String linkName) {
+ this.linkName = linkName;
+ }
+
+ public static final int CONSTRUCTOR = -1606751785;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeBuyStars extends InternalLinkType {
+
+ public long starCount;
+
+ public String purpose;
+
+ public InternalLinkTypeBuyStars() {
+ }
+
+ public InternalLinkTypeBuyStars(long starCount, String purpose) {
+ this.starCount = starCount;
+ this.purpose = purpose;
+ }
+
+ public static final int CONSTRUCTOR = -1454587065;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeChangePhoneNumber extends InternalLinkType {
+ public InternalLinkTypeChangePhoneNumber() {
+ }
+
+ public static final int CONSTRUCTOR = -265856255;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeChatAffiliateProgram extends InternalLinkType {
+
+ public String username;
+
+ public String referrer;
+
+ public InternalLinkTypeChatAffiliateProgram() {
+ }
+
+ public InternalLinkTypeChatAffiliateProgram(String username, String referrer) {
+ this.username = username;
+ this.referrer = referrer;
+ }
+
+ public static final int CONSTRUCTOR = 632049700;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeChatBoost extends InternalLinkType {
+
+ public String url;
+
+ public InternalLinkTypeChatBoost() {
+ }
+
+ public InternalLinkTypeChatBoost(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -716571328;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeChatFolderInvite extends InternalLinkType {
+
+ public String inviteLink;
+
+ public InternalLinkTypeChatFolderInvite() {
+ }
+
+ public InternalLinkTypeChatFolderInvite(String inviteLink) {
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -1984804546;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeChatFolderSettings extends InternalLinkType {
+ public InternalLinkTypeChatFolderSettings() {
+ }
+
+ public static final int CONSTRUCTOR = -1073805988;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeChatInvite extends InternalLinkType {
+
+ public String inviteLink;
+
+ public InternalLinkTypeChatInvite() {
+ }
+
+ public InternalLinkTypeChatInvite(String inviteLink) {
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = 428621017;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeDefaultMessageAutoDeleteTimerSettings extends InternalLinkType {
+ public InternalLinkTypeDefaultMessageAutoDeleteTimerSettings() {
+ }
+
+ public static final int CONSTRUCTOR = 732625201;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeEditProfileSettings extends InternalLinkType {
+ public InternalLinkTypeEditProfileSettings() {
+ }
+
+ public static final int CONSTRUCTOR = -1022472090;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeGame extends InternalLinkType {
+
+ public String botUsername;
+
+ public String gameShortName;
+
+ public InternalLinkTypeGame() {
+ }
+
+ public InternalLinkTypeGame(String botUsername, String gameShortName) {
+ this.botUsername = botUsername;
+ this.gameShortName = gameShortName;
+ }
+
+ public static final int CONSTRUCTOR = -260788787;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeInstantView extends InternalLinkType {
+
+ public String url;
+
+ public String fallbackUrl;
+
+ public InternalLinkTypeInstantView() {
+ }
+
+ public InternalLinkTypeInstantView(String url, String fallbackUrl) {
+ this.url = url;
+ this.fallbackUrl = fallbackUrl;
+ }
+
+ public static final int CONSTRUCTOR = 1776607039;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeInvoice extends InternalLinkType {
+
+ public String invoiceName;
+
+ public InternalLinkTypeInvoice() {
+ }
+
+ public InternalLinkTypeInvoice(String invoiceName) {
+ this.invoiceName = invoiceName;
+ }
+
+ public static final int CONSTRUCTOR = -213094996;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeLanguagePack extends InternalLinkType {
+
+ public String languagePackId;
+
+ public InternalLinkTypeLanguagePack() {
+ }
+
+ public InternalLinkTypeLanguagePack(String languagePackId) {
+ this.languagePackId = languagePackId;
+ }
+
+ public static final int CONSTRUCTOR = -1450766996;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeLanguageSettings extends InternalLinkType {
+ public InternalLinkTypeLanguageSettings() {
+ }
+
+ public static final int CONSTRUCTOR = -1340479770;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeMainWebApp extends InternalLinkType {
+
+ public String botUsername;
+
+ public String startParameter;
+
+ public WebAppOpenMode mode;
+
+ public InternalLinkTypeMainWebApp() {
+ }
+
+ public InternalLinkTypeMainWebApp(String botUsername, String startParameter, WebAppOpenMode mode) {
+ this.botUsername = botUsername;
+ this.startParameter = startParameter;
+ this.mode = mode;
+ }
+
+ public static final int CONSTRUCTOR = 1574925033;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeMessage extends InternalLinkType {
+
+ public String url;
+
+ public InternalLinkTypeMessage() {
+ }
+
+ public InternalLinkTypeMessage(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 978541650;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeMessageDraft extends InternalLinkType {
+
+ public FormattedText text;
+
+ public boolean containsLink;
+
+ public InternalLinkTypeMessageDraft() {
+ }
+
+ public InternalLinkTypeMessageDraft(FormattedText text, boolean containsLink) {
+ this.text = text;
+ this.containsLink = containsLink;
+ }
+
+ public static final int CONSTRUCTOR = 661633749;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypePassportDataRequest extends InternalLinkType {
+
+ public long botUserId;
+
+ public String scope;
+
+ public String publicKey;
+
+ public String nonce;
+
+ public String callbackUrl;
+
+ public InternalLinkTypePassportDataRequest() {
+ }
+
+ public InternalLinkTypePassportDataRequest(long botUserId, String scope, String publicKey, String nonce, String callbackUrl) {
+ this.botUserId = botUserId;
+ this.scope = scope;
+ this.publicKey = publicKey;
+ this.nonce = nonce;
+ this.callbackUrl = callbackUrl;
+ }
+
+ public static final int CONSTRUCTOR = -988819839;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypePhoneNumberConfirmation extends InternalLinkType {
+
+ public String hash;
+
+ public String phoneNumber;
+
+ public InternalLinkTypePhoneNumberConfirmation() {
+ }
+
+ public InternalLinkTypePhoneNumberConfirmation(String hash, String phoneNumber) {
+ this.hash = hash;
+ this.phoneNumber = phoneNumber;
+ }
+
+ public static final int CONSTRUCTOR = 1757375254;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypePremiumFeatures extends InternalLinkType {
+
+ public String referrer;
+
+ public InternalLinkTypePremiumFeatures() {
+ }
+
+ public InternalLinkTypePremiumFeatures(String referrer) {
+ this.referrer = referrer;
+ }
+
+ public static final int CONSTRUCTOR = 1216892745;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypePremiumGift extends InternalLinkType {
+
+ public String referrer;
+
+ public InternalLinkTypePremiumGift() {
+ }
+
+ public InternalLinkTypePremiumGift(String referrer) {
+ this.referrer = referrer;
+ }
+
+ public static final int CONSTRUCTOR = 1523936577;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypePremiumGiftCode extends InternalLinkType {
+
+ public String code;
+
+ public InternalLinkTypePremiumGiftCode() {
+ }
+
+ public InternalLinkTypePremiumGiftCode(String code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -564356974;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypePrivacyAndSecuritySettings extends InternalLinkType {
+ public InternalLinkTypePrivacyAndSecuritySettings() {
+ }
+
+ public static final int CONSTRUCTOR = -1386255665;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeProxy extends InternalLinkType {
+
+ public String server;
+
+ public int port;
+
+ public ProxyType type;
+
+ public InternalLinkTypeProxy() {
+ }
+
+ public InternalLinkTypeProxy(String server, int port, ProxyType type) {
+ this.server = server;
+ this.port = port;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -1313788694;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypePublicChat extends InternalLinkType {
+
+ public String chatUsername;
+
+ public String draftText;
+
+ public boolean openProfile;
+
+ public InternalLinkTypePublicChat() {
+ }
+
+ public InternalLinkTypePublicChat(String chatUsername, String draftText, boolean openProfile) {
+ this.chatUsername = chatUsername;
+ this.draftText = draftText;
+ this.openProfile = openProfile;
+ }
+
+ public static final int CONSTRUCTOR = 1769614592;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeQrCodeAuthentication extends InternalLinkType {
+ public InternalLinkTypeQrCodeAuthentication() {
+ }
+
+ public static final int CONSTRUCTOR = -1089332956;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeRestorePurchases extends InternalLinkType {
+ public InternalLinkTypeRestorePurchases() {
+ }
+
+ public static final int CONSTRUCTOR = 606090371;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeSettings extends InternalLinkType {
+ public InternalLinkTypeSettings() {
+ }
+
+ public static final int CONSTRUCTOR = 393561524;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeStickerSet extends InternalLinkType {
+
+ public String stickerSetName;
+
+ public boolean expectCustomEmoji;
+
+ public InternalLinkTypeStickerSet() {
+ }
+
+ public InternalLinkTypeStickerSet(String stickerSetName, boolean expectCustomEmoji) {
+ this.stickerSetName = stickerSetName;
+ this.expectCustomEmoji = expectCustomEmoji;
+ }
+
+ public static final int CONSTRUCTOR = -1589227614;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeStory extends InternalLinkType {
+
+ public String storySenderUsername;
+
+ public int storyId;
+
+ public InternalLinkTypeStory() {
+ }
+
+ public InternalLinkTypeStory(String storySenderUsername, int storyId) {
+ this.storySenderUsername = storySenderUsername;
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = 1471997511;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeTheme extends InternalLinkType {
+
+ public String themeName;
+
+ public InternalLinkTypeTheme() {
+ }
+
+ public InternalLinkTypeTheme(String themeName) {
+ this.themeName = themeName;
+ }
+
+ public static final int CONSTRUCTOR = -200935417;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeThemeSettings extends InternalLinkType {
+ public InternalLinkTypeThemeSettings() {
+ }
+
+ public static final int CONSTRUCTOR = -1051903722;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeUnknownDeepLink extends InternalLinkType {
+
+ public String link;
+
+ public InternalLinkTypeUnknownDeepLink() {
+ }
+
+ public InternalLinkTypeUnknownDeepLink(String link) {
+ this.link = link;
+ }
+
+ public static final int CONSTRUCTOR = 625596379;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeUnsupportedProxy extends InternalLinkType {
+ public InternalLinkTypeUnsupportedProxy() {
+ }
+
+ public static final int CONSTRUCTOR = -566649079;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeUserPhoneNumber extends InternalLinkType {
+
+ public String phoneNumber;
+
+ public String draftText;
+
+ public boolean openProfile;
+
+ public InternalLinkTypeUserPhoneNumber() {
+ }
+
+ public InternalLinkTypeUserPhoneNumber(String phoneNumber, String draftText, boolean openProfile) {
+ this.phoneNumber = phoneNumber;
+ this.draftText = draftText;
+ this.openProfile = openProfile;
+ }
+
+ public static final int CONSTRUCTOR = 273398536;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeUserToken extends InternalLinkType {
+
+ public String token;
+
+ public InternalLinkTypeUserToken() {
+ }
+
+ public InternalLinkTypeUserToken(String token) {
+ this.token = token;
+ }
+
+ public static final int CONSTRUCTOR = -1462248615;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeVideoChat extends InternalLinkType {
+
+ public String chatUsername;
+
+ public String inviteHash;
+
+ public boolean isLiveStream;
+
+ public InternalLinkTypeVideoChat() {
+ }
+
+ public InternalLinkTypeVideoChat(String chatUsername, String inviteHash, boolean isLiveStream) {
+ this.chatUsername = chatUsername;
+ this.inviteHash = inviteHash;
+ this.isLiveStream = isLiveStream;
+ }
+
+ public static final int CONSTRUCTOR = -2020149068;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InternalLinkTypeWebApp extends InternalLinkType {
+
+ public String botUsername;
+
+ public String webAppShortName;
+
+ public String startParameter;
+
+ public WebAppOpenMode mode;
+
+ public InternalLinkTypeWebApp() {
+ }
+
+ public InternalLinkTypeWebApp(String botUsername, String webAppShortName, String startParameter, WebAppOpenMode mode) {
+ this.botUsername = botUsername;
+ this.webAppShortName = webAppShortName;
+ this.startParameter = startParameter;
+ this.mode = mode;
+ }
+
+ public static final int CONSTRUCTOR = 2062112045;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class InviteLinkChatType extends Object {
+
+ public InviteLinkChatType() {
+ }
+ }
+
+ public static class InviteLinkChatTypeBasicGroup extends InviteLinkChatType {
+ public InviteLinkChatTypeBasicGroup() {
+ }
+
+ public static final int CONSTRUCTOR = 1296287214;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InviteLinkChatTypeSupergroup extends InviteLinkChatType {
+ public InviteLinkChatTypeSupergroup() {
+ }
+
+ public static final int CONSTRUCTOR = 1038640984;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class InviteLinkChatTypeChannel extends InviteLinkChatType {
+ public InviteLinkChatTypeChannel() {
+ }
+
+ public static final int CONSTRUCTOR = 806547211;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Invoice extends Object {
+
+ public String currency;
+
+ public LabeledPricePart[] priceParts;
+
+ public int subscriptionPeriod;
+
+ public long maxTipAmount;
+
+ public long[] suggestedTipAmounts;
+
+ public String recurringPaymentTermsOfServiceUrl;
+
+ public String termsOfServiceUrl;
+
+ public boolean isTest;
+
+ public boolean needName;
+
+ public boolean needPhoneNumber;
+
+ public boolean needEmailAddress;
+
+ public boolean needShippingAddress;
+
+ public boolean sendPhoneNumberToProvider;
+
+ public boolean sendEmailAddressToProvider;
+
+ public boolean isFlexible;
+
+ public Invoice() {
+ }
+
+ public Invoice(String currency, LabeledPricePart[] priceParts, int subscriptionPeriod, long maxTipAmount, long[] suggestedTipAmounts, String recurringPaymentTermsOfServiceUrl, String termsOfServiceUrl, boolean isTest, boolean needName, boolean needPhoneNumber, boolean needEmailAddress, boolean needShippingAddress, boolean sendPhoneNumberToProvider, boolean sendEmailAddressToProvider, boolean isFlexible) {
+ this.currency = currency;
+ this.priceParts = priceParts;
+ this.subscriptionPeriod = subscriptionPeriod;
+ this.maxTipAmount = maxTipAmount;
+ this.suggestedTipAmounts = suggestedTipAmounts;
+ this.recurringPaymentTermsOfServiceUrl = recurringPaymentTermsOfServiceUrl;
+ this.termsOfServiceUrl = termsOfServiceUrl;
+ this.isTest = isTest;
+ this.needName = needName;
+ this.needPhoneNumber = needPhoneNumber;
+ this.needEmailAddress = needEmailAddress;
+ this.needShippingAddress = needShippingAddress;
+ this.sendPhoneNumberToProvider = sendPhoneNumberToProvider;
+ this.sendEmailAddressToProvider = sendEmailAddressToProvider;
+ this.isFlexible = isFlexible;
+ }
+
+ public static final int CONSTRUCTOR = 113204876;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class JsonObjectMember extends Object {
+
+ public String key;
+
+ public JsonValue value;
+
+ public JsonObjectMember() {
+ }
+
+ public JsonObjectMember(String key, JsonValue value) {
+ this.key = key;
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = -1803309418;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class JsonValue extends Object {
+
+ public JsonValue() {
+ }
+ }
+
+ public static class JsonValueNull extends JsonValue {
+ public JsonValueNull() {
+ }
+
+ public static final int CONSTRUCTOR = -92872499;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class JsonValueBoolean extends JsonValue {
+
+ public boolean value;
+
+ public JsonValueBoolean() {
+ }
+
+ public JsonValueBoolean(boolean value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = -2142186576;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class JsonValueNumber extends JsonValue {
+
+ public double value;
+
+ public JsonValueNumber() {
+ }
+
+ public JsonValueNumber(double value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = -1010822033;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class JsonValueString extends JsonValue {
+
+ public String value;
+
+ public JsonValueString() {
+ }
+
+ public JsonValueString(String value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = 1597947313;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class JsonValueArray extends JsonValue {
+
+ public JsonValue[] values;
+
+ public JsonValueArray() {
+ }
+
+ public JsonValueArray(JsonValue[] values) {
+ this.values = values;
+ }
+
+ public static final int CONSTRUCTOR = -183913546;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class JsonValueObject extends JsonValue {
+
+ public JsonObjectMember[] members;
+
+ public JsonValueObject() {
+ }
+
+ public JsonValueObject(JsonObjectMember[] members) {
+ this.members = members;
+ }
+
+ public static final int CONSTRUCTOR = 520252026;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class KeyboardButton extends Object {
+
+ public String text;
+
+ public KeyboardButtonType type;
+
+ public KeyboardButton() {
+ }
+
+ public KeyboardButton(String text, KeyboardButtonType type) {
+ this.text = text;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -2069836172;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class KeyboardButtonType extends Object {
+
+ public KeyboardButtonType() {
+ }
+ }
+
+ public static class KeyboardButtonTypeText extends KeyboardButtonType {
+ public KeyboardButtonTypeText() {
+ }
+
+ public static final int CONSTRUCTOR = -1773037256;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class KeyboardButtonTypeRequestPhoneNumber extends KeyboardButtonType {
+ public KeyboardButtonTypeRequestPhoneNumber() {
+ }
+
+ public static final int CONSTRUCTOR = -1529235527;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class KeyboardButtonTypeRequestLocation extends KeyboardButtonType {
+ public KeyboardButtonTypeRequestLocation() {
+ }
+
+ public static final int CONSTRUCTOR = -125661955;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class KeyboardButtonTypeRequestPoll extends KeyboardButtonType {
+
+ public boolean forceRegular;
+
+ public boolean forceQuiz;
+
+ public KeyboardButtonTypeRequestPoll() {
+ }
+
+ public KeyboardButtonTypeRequestPoll(boolean forceRegular, boolean forceQuiz) {
+ this.forceRegular = forceRegular;
+ this.forceQuiz = forceQuiz;
+ }
+
+ public static final int CONSTRUCTOR = 1902435512;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class KeyboardButtonTypeRequestUsers extends KeyboardButtonType {
+
+ public int id;
+
+ public boolean restrictUserIsBot;
+
+ public boolean userIsBot;
+
+ public boolean restrictUserIsPremium;
+
+ public boolean userIsPremium;
+
+ public int maxQuantity;
+
+ public boolean requestName;
+
+ public boolean requestUsername;
+
+ public boolean requestPhoto;
+
+ public KeyboardButtonTypeRequestUsers() {
+ }
+
+ public KeyboardButtonTypeRequestUsers(int id, boolean restrictUserIsBot, boolean userIsBot, boolean restrictUserIsPremium, boolean userIsPremium, int maxQuantity, boolean requestName, boolean requestUsername, boolean requestPhoto) {
+ this.id = id;
+ this.restrictUserIsBot = restrictUserIsBot;
+ this.userIsBot = userIsBot;
+ this.restrictUserIsPremium = restrictUserIsPremium;
+ this.userIsPremium = userIsPremium;
+ this.maxQuantity = maxQuantity;
+ this.requestName = requestName;
+ this.requestUsername = requestUsername;
+ this.requestPhoto = requestPhoto;
+ }
+
+ public static final int CONSTRUCTOR = -1738765315;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class KeyboardButtonTypeRequestChat extends KeyboardButtonType {
+
+ public int id;
+
+ public boolean chatIsChannel;
+
+ public boolean restrictChatIsForum;
+
+ public boolean chatIsForum;
+
+ public boolean restrictChatHasUsername;
+
+ public boolean chatHasUsername;
+
+ public boolean chatIsCreated;
+
+ public ChatAdministratorRights userAdministratorRights;
+
+ public ChatAdministratorRights botAdministratorRights;
+
+ public boolean botIsMember;
+
+ public boolean requestTitle;
+
+ public boolean requestUsername;
+
+ public boolean requestPhoto;
+
+ public KeyboardButtonTypeRequestChat() {
+ }
+
+ public KeyboardButtonTypeRequestChat(int id, boolean chatIsChannel, boolean restrictChatIsForum, boolean chatIsForum, boolean restrictChatHasUsername, boolean chatHasUsername, boolean chatIsCreated, ChatAdministratorRights userAdministratorRights, ChatAdministratorRights botAdministratorRights, boolean botIsMember, boolean requestTitle, boolean requestUsername, boolean requestPhoto) {
+ this.id = id;
+ this.chatIsChannel = chatIsChannel;
+ this.restrictChatIsForum = restrictChatIsForum;
+ this.chatIsForum = chatIsForum;
+ this.restrictChatHasUsername = restrictChatHasUsername;
+ this.chatHasUsername = chatHasUsername;
+ this.chatIsCreated = chatIsCreated;
+ this.userAdministratorRights = userAdministratorRights;
+ this.botAdministratorRights = botAdministratorRights;
+ this.botIsMember = botIsMember;
+ this.requestTitle = requestTitle;
+ this.requestUsername = requestUsername;
+ this.requestPhoto = requestPhoto;
+ }
+
+ public static final int CONSTRUCTOR = 1511138485;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class KeyboardButtonTypeWebApp extends KeyboardButtonType {
+
+ public String url;
+
+ public KeyboardButtonTypeWebApp() {
+ }
+
+ public KeyboardButtonTypeWebApp(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 1892220770;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LabeledPricePart extends Object {
+
+ public String label;
+
+ public long amount;
+
+ public LabeledPricePart() {
+ }
+
+ public LabeledPricePart(String label, long amount) {
+ this.label = label;
+ this.amount = amount;
+ }
+
+ public static final int CONSTRUCTOR = 552789798;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LanguagePackInfo extends Object {
+
+ public String id;
+
+ public String baseLanguagePackId;
+
+ public String name;
+
+ public String nativeName;
+
+ public String pluralCode;
+
+ public boolean isOfficial;
+
+ public boolean isRtl;
+
+ public boolean isBeta;
+
+ public boolean isInstalled;
+
+ public int totalStringCount;
+
+ public int translatedStringCount;
+
+ public int localStringCount;
+
+ public String translationUrl;
+
+ public LanguagePackInfo() {
+ }
+
+ public LanguagePackInfo(String id, String baseLanguagePackId, String name, String nativeName, String pluralCode, boolean isOfficial, boolean isRtl, boolean isBeta, boolean isInstalled, int totalStringCount, int translatedStringCount, int localStringCount, String translationUrl) {
+ this.id = id;
+ this.baseLanguagePackId = baseLanguagePackId;
+ this.name = name;
+ this.nativeName = nativeName;
+ this.pluralCode = pluralCode;
+ this.isOfficial = isOfficial;
+ this.isRtl = isRtl;
+ this.isBeta = isBeta;
+ this.isInstalled = isInstalled;
+ this.totalStringCount = totalStringCount;
+ this.translatedStringCount = translatedStringCount;
+ this.localStringCount = localStringCount;
+ this.translationUrl = translationUrl;
+ }
+
+ public static final int CONSTRUCTOR = 542199642;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LanguagePackString extends Object {
+
+ public String key;
+
+ public LanguagePackStringValue value;
+
+ public LanguagePackString() {
+ }
+
+ public LanguagePackString(String key, LanguagePackStringValue value) {
+ this.key = key;
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = 1307632736;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class LanguagePackStringValue extends Object {
+
+ public LanguagePackStringValue() {
+ }
+ }
+
+ public static class LanguagePackStringValueOrdinary extends LanguagePackStringValue {
+
+ public String value;
+
+ public LanguagePackStringValueOrdinary() {
+ }
+
+ public LanguagePackStringValueOrdinary(String value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = -249256352;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LanguagePackStringValuePluralized extends LanguagePackStringValue {
+
+ public String zeroValue;
+
+ public String oneValue;
+
+ public String twoValue;
+
+ public String fewValue;
+
+ public String manyValue;
+
+ public String otherValue;
+
+ public LanguagePackStringValuePluralized() {
+ }
+
+ public LanguagePackStringValuePluralized(String zeroValue, String oneValue, String twoValue, String fewValue, String manyValue, String otherValue) {
+ this.zeroValue = zeroValue;
+ this.oneValue = oneValue;
+ this.twoValue = twoValue;
+ this.fewValue = fewValue;
+ this.manyValue = manyValue;
+ this.otherValue = otherValue;
+ }
+
+ public static final int CONSTRUCTOR = 1906840261;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LanguagePackStringValueDeleted extends LanguagePackStringValue {
+ public LanguagePackStringValueDeleted() {
+ }
+
+ public static final int CONSTRUCTOR = 1834792698;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LanguagePackStrings extends Object {
+
+ public LanguagePackString[] strings;
+
+ public LanguagePackStrings() {
+ }
+
+ public LanguagePackStrings(LanguagePackString[] strings) {
+ this.strings = strings;
+ }
+
+ public static final int CONSTRUCTOR = 1172082922;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreview extends Object {
+
+ public String url;
+
+ public String displayUrl;
+
+ public String siteName;
+
+ public String title;
+
+ public FormattedText description;
+
+ public String author;
+
+ public LinkPreviewType type;
+
+ public boolean hasLargeMedia;
+
+ public boolean showLargeMedia;
+
+ public boolean showMediaAboveDescription;
+
+ public boolean skipConfirmation;
+
+ public boolean showAboveText;
+
+ public int instantViewVersion;
+
+ public LinkPreview() {
+ }
+
+ public LinkPreview(String url, String displayUrl, String siteName, String title, FormattedText description, String author, LinkPreviewType type, boolean hasLargeMedia, boolean showLargeMedia, boolean showMediaAboveDescription, boolean skipConfirmation, boolean showAboveText, int instantViewVersion) {
+ this.url = url;
+ this.displayUrl = displayUrl;
+ this.siteName = siteName;
+ this.title = title;
+ this.description = description;
+ this.author = author;
+ this.type = type;
+ this.hasLargeMedia = hasLargeMedia;
+ this.showLargeMedia = showLargeMedia;
+ this.showMediaAboveDescription = showMediaAboveDescription;
+ this.skipConfirmation = skipConfirmation;
+ this.showAboveText = showAboveText;
+ this.instantViewVersion = instantViewVersion;
+ }
+
+ public static final int CONSTRUCTOR = 1729417714;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class LinkPreviewAlbumMedia extends Object {
+
+ public LinkPreviewAlbumMedia() {
+ }
+ }
+
+ public static class LinkPreviewAlbumMediaPhoto extends LinkPreviewAlbumMedia {
+
+ public Photo photo;
+
+ public LinkPreviewAlbumMediaPhoto() {
+ }
+
+ public LinkPreviewAlbumMediaPhoto(Photo photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -935480434;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewAlbumMediaVideo extends LinkPreviewAlbumMedia {
+
+ public Video video;
+
+ public LinkPreviewAlbumMediaVideo() {
+ }
+
+ public LinkPreviewAlbumMediaVideo(Video video) {
+ this.video = video;
+ }
+
+ public static final int CONSTRUCTOR = 390616795;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewOptions extends Object {
+
+ public boolean isDisabled;
+
+ public String url;
+
+ public boolean forceSmallMedia;
+
+ public boolean forceLargeMedia;
+
+ public boolean showAboveText;
+
+ public LinkPreviewOptions() {
+ }
+
+ public LinkPreviewOptions(boolean isDisabled, String url, boolean forceSmallMedia, boolean forceLargeMedia, boolean showAboveText) {
+ this.isDisabled = isDisabled;
+ this.url = url;
+ this.forceSmallMedia = forceSmallMedia;
+ this.forceLargeMedia = forceLargeMedia;
+ this.showAboveText = showAboveText;
+ }
+
+ public static final int CONSTRUCTOR = 1046590451;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class LinkPreviewType extends Object {
+
+ public LinkPreviewType() {
+ }
+ }
+
+ public static class LinkPreviewTypeAlbum extends LinkPreviewType {
+
+ public LinkPreviewAlbumMedia[] media;
+
+ public String caption;
+
+ public LinkPreviewTypeAlbum() {
+ }
+
+ public LinkPreviewTypeAlbum(LinkPreviewAlbumMedia[] media, String caption) {
+ this.media = media;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = -919156671;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeAnimation extends LinkPreviewType {
+
+ public Animation animation;
+
+ public LinkPreviewTypeAnimation() {
+ }
+
+ public LinkPreviewTypeAnimation(Animation animation) {
+ this.animation = animation;
+ }
+
+ public static final int CONSTRUCTOR = -1386429132;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeApp extends LinkPreviewType {
+
+ public Photo photo;
+
+ public LinkPreviewTypeApp() {
+ }
+
+ public LinkPreviewTypeApp(Photo photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -475623953;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeArticle extends LinkPreviewType {
+
+ public Photo photo;
+
+ public LinkPreviewTypeArticle() {
+ }
+
+ public LinkPreviewTypeArticle(Photo photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = 2093915097;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeAudio extends LinkPreviewType {
+
+ public Audio audio;
+
+ public LinkPreviewTypeAudio() {
+ }
+
+ public LinkPreviewTypeAudio(Audio audio) {
+ this.audio = audio;
+ }
+
+ public static final int CONSTRUCTOR = 1977878482;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeBackground extends LinkPreviewType {
+
+ public Document document;
+
+ public BackgroundType backgroundType;
+
+ public LinkPreviewTypeBackground() {
+ }
+
+ public LinkPreviewTypeBackground(Document document, BackgroundType backgroundType) {
+ this.document = document;
+ this.backgroundType = backgroundType;
+ }
+
+ public static final int CONSTRUCTOR = 977838560;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeChannelBoost extends LinkPreviewType {
+
+ public ChatPhoto photo;
+
+ public LinkPreviewTypeChannelBoost() {
+ }
+
+ public LinkPreviewTypeChannelBoost(ChatPhoto photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -957086634;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeChat extends LinkPreviewType {
+
+ public InviteLinkChatType type;
+
+ public ChatPhoto photo;
+
+ public boolean createsJoinRequest;
+
+ public LinkPreviewTypeChat() {
+ }
+
+ public LinkPreviewTypeChat(InviteLinkChatType type, ChatPhoto photo, boolean createsJoinRequest) {
+ this.type = type;
+ this.photo = photo;
+ this.createsJoinRequest = createsJoinRequest;
+ }
+
+ public static final int CONSTRUCTOR = -1372610270;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeDocument extends LinkPreviewType {
+
+ public Document document;
+
+ public LinkPreviewTypeDocument() {
+ }
+
+ public LinkPreviewTypeDocument(Document document) {
+ this.document = document;
+ }
+
+ public static final int CONSTRUCTOR = -1090426462;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeEmbeddedAnimationPlayer extends LinkPreviewType {
+
+ public String url;
+
+ public Photo thumbnail;
+
+ public int duration;
+
+ public int width;
+
+ public int height;
+
+ public LinkPreviewTypeEmbeddedAnimationPlayer() {
+ }
+
+ public LinkPreviewTypeEmbeddedAnimationPlayer(String url, Photo thumbnail, int duration, int width, int height) {
+ this.url = url;
+ this.thumbnail = thumbnail;
+ this.duration = duration;
+ this.width = width;
+ this.height = height;
+ }
+
+ public static final int CONSTRUCTOR = -1436887547;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeEmbeddedAudioPlayer extends LinkPreviewType {
+
+ public String url;
+
+ public Photo thumbnail;
+
+ public int duration;
+
+ public int width;
+
+ public int height;
+
+ public LinkPreviewTypeEmbeddedAudioPlayer() {
+ }
+
+ public LinkPreviewTypeEmbeddedAudioPlayer(String url, Photo thumbnail, int duration, int width, int height) {
+ this.url = url;
+ this.thumbnail = thumbnail;
+ this.duration = duration;
+ this.width = width;
+ this.height = height;
+ }
+
+ public static final int CONSTRUCTOR = 571163292;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeEmbeddedVideoPlayer extends LinkPreviewType {
+
+ public String url;
+
+ public Photo thumbnail;
+
+ public int duration;
+
+ public int width;
+
+ public int height;
+
+ public LinkPreviewTypeEmbeddedVideoPlayer() {
+ }
+
+ public LinkPreviewTypeEmbeddedVideoPlayer(String url, Photo thumbnail, int duration, int width, int height) {
+ this.url = url;
+ this.thumbnail = thumbnail;
+ this.duration = duration;
+ this.width = width;
+ this.height = height;
+ }
+
+ public static final int CONSTRUCTOR = -1480606973;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeExternalAudio extends LinkPreviewType {
+
+ public String url;
+
+ public String mimeType;
+
+ public int duration;
+
+ public LinkPreviewTypeExternalAudio() {
+ }
+
+ public LinkPreviewTypeExternalAudio(String url, String mimeType, int duration) {
+ this.url = url;
+ this.mimeType = mimeType;
+ this.duration = duration;
+ }
+
+ public static final int CONSTRUCTOR = -1971126291;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeExternalVideo extends LinkPreviewType {
+
+ public String url;
+
+ public String mimeType;
+
+ public int width;
+
+ public int height;
+
+ public int duration;
+
+ public LinkPreviewTypeExternalVideo() {
+ }
+
+ public LinkPreviewTypeExternalVideo(String url, String mimeType, int width, int height, int duration) {
+ this.url = url;
+ this.mimeType = mimeType;
+ this.width = width;
+ this.height = height;
+ this.duration = duration;
+ }
+
+ public static final int CONSTRUCTOR = 1367198616;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeInvoice extends LinkPreviewType {
+ public LinkPreviewTypeInvoice() {
+ }
+
+ public static final int CONSTRUCTOR = -729855782;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeMessage extends LinkPreviewType {
+ public LinkPreviewTypeMessage() {
+ }
+
+ public static final int CONSTRUCTOR = 435470750;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypePhoto extends LinkPreviewType {
+
+ public Photo photo;
+
+ public LinkPreviewTypePhoto() {
+ }
+
+ public LinkPreviewTypePhoto(Photo photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -1362122068;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypePremiumGiftCode extends LinkPreviewType {
+ public LinkPreviewTypePremiumGiftCode() {
+ }
+
+ public static final int CONSTRUCTOR = 1309507761;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeShareableChatFolder extends LinkPreviewType {
+ public LinkPreviewTypeShareableChatFolder() {
+ }
+
+ public static final int CONSTRUCTOR = -2141539524;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeSticker extends LinkPreviewType {
+
+ public Sticker sticker;
+
+ public LinkPreviewTypeSticker() {
+ }
+
+ public LinkPreviewTypeSticker(Sticker sticker) {
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = 610225445;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeStickerSet extends LinkPreviewType {
+
+ public Sticker[] stickers;
+
+ public LinkPreviewTypeStickerSet() {
+ }
+
+ public LinkPreviewTypeStickerSet(Sticker[] stickers) {
+ this.stickers = stickers;
+ }
+
+ public static final int CONSTRUCTOR = -145958768;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeStory extends LinkPreviewType {
+
+ public long storySenderChatId;
+
+ public int storyId;
+
+ public LinkPreviewTypeStory() {
+ }
+
+ public LinkPreviewTypeStory(long storySenderChatId, int storyId) {
+ this.storySenderChatId = storySenderChatId;
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = 513574862;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeSupergroupBoost extends LinkPreviewType {
+
+ public ChatPhoto photo;
+
+ public LinkPreviewTypeSupergroupBoost() {
+ }
+
+ public LinkPreviewTypeSupergroupBoost(ChatPhoto photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -1873345418;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeTheme extends LinkPreviewType {
+
+ public Document[] documents;
+
+ public ThemeSettings settings;
+
+ public LinkPreviewTypeTheme() {
+ }
+
+ public LinkPreviewTypeTheme(Document[] documents, ThemeSettings settings) {
+ this.documents = documents;
+ this.settings = settings;
+ }
+
+ public static final int CONSTRUCTOR = -226118489;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeUnsupported extends LinkPreviewType {
+ public LinkPreviewTypeUnsupported() {
+ }
+
+ public static final int CONSTRUCTOR = 1924738233;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeUser extends LinkPreviewType {
+
+ public ChatPhoto photo;
+
+ public boolean isBot;
+
+ public LinkPreviewTypeUser() {
+ }
+
+ public LinkPreviewTypeUser(ChatPhoto photo, boolean isBot) {
+ this.photo = photo;
+ this.isBot = isBot;
+ }
+
+ public static final int CONSTRUCTOR = -1465024132;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeVideo extends LinkPreviewType {
+
+ public Video video;
+
+ public LinkPreviewTypeVideo() {
+ }
+
+ public LinkPreviewTypeVideo(Video video) {
+ this.video = video;
+ }
+
+ public static final int CONSTRUCTOR = 281672712;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeVideoChat extends LinkPreviewType {
+
+ public ChatPhoto photo;
+
+ public boolean isLiveStream;
+
+ public LinkPreviewTypeVideoChat() {
+ }
+
+ public LinkPreviewTypeVideoChat(ChatPhoto photo, boolean isLiveStream) {
+ this.photo = photo;
+ this.isLiveStream = isLiveStream;
+ }
+
+ public static final int CONSTRUCTOR = 420015635;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeVideoNote extends LinkPreviewType {
+
+ public VideoNote videoNote;
+
+ public LinkPreviewTypeVideoNote() {
+ }
+
+ public LinkPreviewTypeVideoNote(VideoNote videoNote) {
+ this.videoNote = videoNote;
+ }
+
+ public static final int CONSTRUCTOR = -814687391;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeVoiceNote extends LinkPreviewType {
+
+ public VoiceNote voiceNote;
+
+ public LinkPreviewTypeVoiceNote() {
+ }
+
+ public LinkPreviewTypeVoiceNote(VoiceNote voiceNote) {
+ this.voiceNote = voiceNote;
+ }
+
+ public static final int CONSTRUCTOR = -757936341;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LinkPreviewTypeWebApp extends LinkPreviewType {
+
+ public Photo photo;
+
+ public LinkPreviewTypeWebApp() {
+ }
+
+ public LinkPreviewTypeWebApp(Photo photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -1506873462;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LocalFile extends Object {
+
+ public String path;
+
+ public boolean canBeDownloaded;
+
+ public boolean canBeDeleted;
+
+ public boolean isDownloadingActive;
+
+ public boolean isDownloadingCompleted;
+
+ public long downloadOffset;
+
+ public long downloadedPrefixSize;
+
+ public long downloadedSize;
+
+ public LocalFile() {
+ }
+
+ public LocalFile(String path, boolean canBeDownloaded, boolean canBeDeleted, boolean isDownloadingActive, boolean isDownloadingCompleted, long downloadOffset, long downloadedPrefixSize, long downloadedSize) {
+ this.path = path;
+ this.canBeDownloaded = canBeDownloaded;
+ this.canBeDeleted = canBeDeleted;
+ this.isDownloadingActive = isDownloadingActive;
+ this.isDownloadingCompleted = isDownloadingCompleted;
+ this.downloadOffset = downloadOffset;
+ this.downloadedPrefixSize = downloadedPrefixSize;
+ this.downloadedSize = downloadedSize;
+ }
+
+ public static final int CONSTRUCTOR = -1562732153;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LocalizationTargetInfo extends Object {
+
+ public LanguagePackInfo[] languagePacks;
+
+ public LocalizationTargetInfo() {
+ }
+
+ public LocalizationTargetInfo(LanguagePackInfo[] languagePacks) {
+ this.languagePacks = languagePacks;
+ }
+
+ public static final int CONSTRUCTOR = -2048670809;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Location extends Object {
+
+ public double latitude;
+
+ public double longitude;
+
+ public double horizontalAccuracy;
+
+ public Location() {
+ }
+
+ public Location(double latitude, double longitude, double horizontalAccuracy) {
+ this.latitude = latitude;
+ this.longitude = longitude;
+ this.horizontalAccuracy = horizontalAccuracy;
+ }
+
+ public static final int CONSTRUCTOR = -443392141;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LocationAddress extends Object {
+
+ public String countryCode;
+
+ public String state;
+
+ public String city;
+
+ public String street;
+
+ public LocationAddress() {
+ }
+
+ public LocationAddress(String countryCode, String state, String city, String street) {
+ this.countryCode = countryCode;
+ this.state = state;
+ this.city = city;
+ this.street = street;
+ }
+
+ public static final int CONSTRUCTOR = -1545940190;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class LogStream extends Object {
+
+ public LogStream() {
+ }
+ }
+
+ public static class LogStreamDefault extends LogStream {
+ public LogStreamDefault() {
+ }
+
+ public static final int CONSTRUCTOR = 1390581436;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LogStreamFile extends LogStream {
+
+ public String path;
+
+ public long maxFileSize;
+
+ public boolean redirectStderr;
+
+ public LogStreamFile() {
+ }
+
+ public LogStreamFile(String path, long maxFileSize, boolean redirectStderr) {
+ this.path = path;
+ this.maxFileSize = maxFileSize;
+ this.redirectStderr = redirectStderr;
+ }
+
+ public static final int CONSTRUCTOR = 1532136933;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LogStreamEmpty extends LogStream {
+ public LogStreamEmpty() {
+ }
+
+ public static final int CONSTRUCTOR = -499912244;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LogTags extends Object {
+
+ public String[] tags;
+
+ public LogTags() {
+ }
+
+ public LogTags(String[] tags) {
+ this.tags = tags;
+ }
+
+ public static final int CONSTRUCTOR = -1604930601;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LogVerbosityLevel extends Object {
+
+ public int verbosityLevel;
+
+ public LogVerbosityLevel() {
+ }
+
+ public LogVerbosityLevel(int verbosityLevel) {
+ this.verbosityLevel = verbosityLevel;
+ }
+
+ public static final int CONSTRUCTOR = 1734624234;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class LoginUrlInfo extends Object {
+
+ public LoginUrlInfo() {
+ }
+ }
+
+ public static class LoginUrlInfoOpen extends LoginUrlInfo {
+
+ public String url;
+
+ public boolean skipConfirmation;
+
+ public LoginUrlInfoOpen() {
+ }
+
+ public LoginUrlInfoOpen(String url, boolean skipConfirmation) {
+ this.url = url;
+ this.skipConfirmation = skipConfirmation;
+ }
+
+ public static final int CONSTRUCTOR = 837282306;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class LoginUrlInfoRequestConfirmation extends LoginUrlInfo {
+
+ public String url;
+
+ public String domain;
+
+ public long botUserId;
+
+ public boolean requestWriteAccess;
+
+ public LoginUrlInfoRequestConfirmation() {
+ }
+
+ public LoginUrlInfoRequestConfirmation(String url, String domain, long botUserId, boolean requestWriteAccess) {
+ this.url = url;
+ this.domain = domain;
+ this.botUserId = botUserId;
+ this.requestWriteAccess = requestWriteAccess;
+ }
+
+ public static final int CONSTRUCTOR = 2128290863;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MainWebApp extends Object {
+
+ public String url;
+
+ public WebAppOpenMode mode;
+
+ public MainWebApp() {
+ }
+
+ public MainWebApp(String url, WebAppOpenMode mode) {
+ this.url = url;
+ this.mode = mode;
+ }
+
+ public static final int CONSTRUCTOR = 1940368506;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MaskPoint extends Object {
+
+ public MaskPoint() {
+ }
+ }
+
+ public static class MaskPointForehead extends MaskPoint {
+ public MaskPointForehead() {
+ }
+
+ public static final int CONSTRUCTOR = 1027512005;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MaskPointEyes extends MaskPoint {
+ public MaskPointEyes() {
+ }
+
+ public static final int CONSTRUCTOR = 1748310861;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MaskPointMouth extends MaskPoint {
+ public MaskPointMouth() {
+ }
+
+ public static final int CONSTRUCTOR = 411773406;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MaskPointChin extends MaskPoint {
+ public MaskPointChin() {
+ }
+
+ public static final int CONSTRUCTOR = 534995335;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MaskPosition extends Object {
+
+ public MaskPoint point;
+
+ public double xShift;
+
+ public double yShift;
+
+ public double scale;
+
+ public MaskPosition() {
+ }
+
+ public MaskPosition(MaskPoint point, double xShift, double yShift, double scale) {
+ this.point = point;
+ this.xShift = xShift;
+ this.yShift = yShift;
+ this.scale = scale;
+ }
+
+ public static final int CONSTRUCTOR = -2097433026;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Message extends Object {
+
+ public long id;
+
+ public MessageSender senderId;
+
+ public long chatId;
+
+ public MessageSendingState sendingState;
+
+ public MessageSchedulingState schedulingState;
+
+ public boolean isOutgoing;
+
+ public boolean isPinned;
+
+ public boolean isFromOffline;
+
+ public boolean canBeSaved;
+
+ public boolean hasTimestampedMedia;
+
+ public boolean isChannelPost;
+
+ public boolean isTopicMessage;
+
+ public boolean containsUnreadMention;
+
+ public int date;
+
+ public int editDate;
+
+ public MessageForwardInfo forwardInfo;
+
+ public MessageImportInfo importInfo;
+
+ public MessageInteractionInfo interactionInfo;
+
+ public UnreadReaction[] unreadReactions;
+
+ public FactCheck factCheck;
+
+ public MessageReplyTo replyTo;
+
+ public long messageThreadId;
+
+ public long savedMessagesTopicId;
+
+ public MessageSelfDestructType selfDestructType;
+
+ public double selfDestructIn;
+
+ public double autoDeleteIn;
+
+ public long viaBotUserId;
+
+ public long senderBusinessBotUserId;
+
+ public int senderBoostCount;
+
+ public String authorSignature;
+
+ public long mediaAlbumId;
+
+ public long effectId;
+
+ public boolean hasSensitiveContent;
+
+ public String restrictionReason;
+
+ public MessageContent content;
+
+ public ReplyMarkup replyMarkup;
+
+ public Message() {
+ }
+
+ public Message(long id, MessageSender senderId, long chatId, MessageSendingState sendingState, MessageSchedulingState schedulingState, boolean isOutgoing, boolean isPinned, boolean isFromOffline, boolean canBeSaved, boolean hasTimestampedMedia, boolean isChannelPost, boolean isTopicMessage, boolean containsUnreadMention, int date, int editDate, MessageForwardInfo forwardInfo, MessageImportInfo importInfo, MessageInteractionInfo interactionInfo, UnreadReaction[] unreadReactions, FactCheck factCheck, MessageReplyTo replyTo, long messageThreadId, long savedMessagesTopicId, MessageSelfDestructType selfDestructType, double selfDestructIn, double autoDeleteIn, long viaBotUserId, long senderBusinessBotUserId, int senderBoostCount, String authorSignature, long mediaAlbumId, long effectId, boolean hasSensitiveContent, String restrictionReason, MessageContent content, ReplyMarkup replyMarkup) {
+ this.id = id;
+ this.senderId = senderId;
+ this.chatId = chatId;
+ this.sendingState = sendingState;
+ this.schedulingState = schedulingState;
+ this.isOutgoing = isOutgoing;
+ this.isPinned = isPinned;
+ this.isFromOffline = isFromOffline;
+ this.canBeSaved = canBeSaved;
+ this.hasTimestampedMedia = hasTimestampedMedia;
+ this.isChannelPost = isChannelPost;
+ this.isTopicMessage = isTopicMessage;
+ this.containsUnreadMention = containsUnreadMention;
+ this.date = date;
+ this.editDate = editDate;
+ this.forwardInfo = forwardInfo;
+ this.importInfo = importInfo;
+ this.interactionInfo = interactionInfo;
+ this.unreadReactions = unreadReactions;
+ this.factCheck = factCheck;
+ this.replyTo = replyTo;
+ this.messageThreadId = messageThreadId;
+ this.savedMessagesTopicId = savedMessagesTopicId;
+ this.selfDestructType = selfDestructType;
+ this.selfDestructIn = selfDestructIn;
+ this.autoDeleteIn = autoDeleteIn;
+ this.viaBotUserId = viaBotUserId;
+ this.senderBusinessBotUserId = senderBusinessBotUserId;
+ this.senderBoostCount = senderBoostCount;
+ this.authorSignature = authorSignature;
+ this.mediaAlbumId = mediaAlbumId;
+ this.effectId = effectId;
+ this.hasSensitiveContent = hasSensitiveContent;
+ this.restrictionReason = restrictionReason;
+ this.content = content;
+ this.replyMarkup = replyMarkup;
+ }
+
+ public static final int CONSTRUCTOR = 1132260831;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageAutoDeleteTime extends Object {
+
+ public int time;
+
+ public MessageAutoDeleteTime() {
+ }
+
+ public MessageAutoDeleteTime(int time) {
+ this.time = time;
+ }
+
+ public static final int CONSTRUCTOR = 1972045589;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageCalendar extends Object {
+
+ public int totalCount;
+
+ public MessageCalendarDay[] days;
+
+ public MessageCalendar() {
+ }
+
+ public MessageCalendar(int totalCount, MessageCalendarDay[] days) {
+ this.totalCount = totalCount;
+ this.days = days;
+ }
+
+ public static final int CONSTRUCTOR = -1682890519;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageCalendarDay extends Object {
+
+ public int totalCount;
+
+ public Message message;
+
+ public MessageCalendarDay() {
+ }
+
+ public MessageCalendarDay(int totalCount, Message message) {
+ this.totalCount = totalCount;
+ this.message = message;
+ }
+
+ public static final int CONSTRUCTOR = -376467614;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageContent extends Object {
+
+ public MessageContent() {
+ }
+ }
+
+ public static class MessageText extends MessageContent {
+
+ public FormattedText text;
+
+ public LinkPreview linkPreview;
+
+ public LinkPreviewOptions linkPreviewOptions;
+
+ public MessageText() {
+ }
+
+ public MessageText(FormattedText text, LinkPreview linkPreview, LinkPreviewOptions linkPreviewOptions) {
+ this.text = text;
+ this.linkPreview = linkPreview;
+ this.linkPreviewOptions = linkPreviewOptions;
+ }
+
+ public static final int CONSTRUCTOR = 1751469188;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageAnimation extends MessageContent {
+
+ public Animation animation;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public boolean hasSpoiler;
+
+ public boolean isSecret;
+
+ public MessageAnimation() {
+ }
+
+ public MessageAnimation(Animation animation, FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler, boolean isSecret) {
+ this.animation = animation;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ this.hasSpoiler = hasSpoiler;
+ this.isSecret = isSecret;
+ }
+
+ public static final int CONSTRUCTOR = -1899294424;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageAudio extends MessageContent {
+
+ public Audio audio;
+
+ public FormattedText caption;
+
+ public MessageAudio() {
+ }
+
+ public MessageAudio(Audio audio, FormattedText caption) {
+ this.audio = audio;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = 276722716;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageDocument extends MessageContent {
+
+ public Document document;
+
+ public FormattedText caption;
+
+ public MessageDocument() {
+ }
+
+ public MessageDocument(Document document, FormattedText caption) {
+ this.document = document;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = 596945783;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePaidMedia extends MessageContent {
+
+ public long starCount;
+
+ public PaidMedia[] media;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public MessagePaidMedia() {
+ }
+
+ public MessagePaidMedia(long starCount, PaidMedia[] media, FormattedText caption, boolean showCaptionAboveMedia) {
+ this.starCount = starCount;
+ this.media = media;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ }
+
+ public static final int CONSTRUCTOR = -724750073;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePhoto extends MessageContent {
+
+ public Photo photo;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public boolean hasSpoiler;
+
+ public boolean isSecret;
+
+ public MessagePhoto() {
+ }
+
+ public MessagePhoto(Photo photo, FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler, boolean isSecret) {
+ this.photo = photo;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ this.hasSpoiler = hasSpoiler;
+ this.isSecret = isSecret;
+ }
+
+ public static final int CONSTRUCTOR = 1967947295;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSticker extends MessageContent {
+
+ public Sticker sticker;
+
+ public boolean isPremium;
+
+ public MessageSticker() {
+ }
+
+ public MessageSticker(Sticker sticker, boolean isPremium) {
+ this.sticker = sticker;
+ this.isPremium = isPremium;
+ }
+
+ public static final int CONSTRUCTOR = -437199670;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageVideo extends MessageContent {
+
+ public Video video;
+
+ public AlternativeVideo[] alternativeVideos;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public boolean hasSpoiler;
+
+ public boolean isSecret;
+
+ public MessageVideo() {
+ }
+
+ public MessageVideo(Video video, AlternativeVideo[] alternativeVideos, FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler, boolean isSecret) {
+ this.video = video;
+ this.alternativeVideos = alternativeVideos;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ this.hasSpoiler = hasSpoiler;
+ this.isSecret = isSecret;
+ }
+
+ public static final int CONSTRUCTOR = -1307143860;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageVideoNote extends MessageContent {
+
+ public VideoNote videoNote;
+
+ public boolean isViewed;
+
+ public boolean isSecret;
+
+ public MessageVideoNote() {
+ }
+
+ public MessageVideoNote(VideoNote videoNote, boolean isViewed, boolean isSecret) {
+ this.videoNote = videoNote;
+ this.isViewed = isViewed;
+ this.isSecret = isSecret;
+ }
+
+ public static final int CONSTRUCTOR = 963323014;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageVoiceNote extends MessageContent {
+
+ public VoiceNote voiceNote;
+
+ public FormattedText caption;
+
+ public boolean isListened;
+
+ public MessageVoiceNote() {
+ }
+
+ public MessageVoiceNote(VoiceNote voiceNote, FormattedText caption, boolean isListened) {
+ this.voiceNote = voiceNote;
+ this.caption = caption;
+ this.isListened = isListened;
+ }
+
+ public static final int CONSTRUCTOR = 527777781;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageExpiredPhoto extends MessageContent {
+ public MessageExpiredPhoto() {
+ }
+
+ public static final int CONSTRUCTOR = -1404641801;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageExpiredVideo extends MessageContent {
+ public MessageExpiredVideo() {
+ }
+
+ public static final int CONSTRUCTOR = -1212209981;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageExpiredVideoNote extends MessageContent {
+ public MessageExpiredVideoNote() {
+ }
+
+ public static final int CONSTRUCTOR = 599540711;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageExpiredVoiceNote extends MessageContent {
+ public MessageExpiredVoiceNote() {
+ }
+
+ public static final int CONSTRUCTOR = 143684989;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageLocation extends MessageContent {
+
+ public Location location;
+
+ public int livePeriod;
+
+ public int expiresIn;
+
+ public int heading;
+
+ public int proximityAlertRadius;
+
+ public MessageLocation() {
+ }
+
+ public MessageLocation(Location location, int livePeriod, int expiresIn, int heading, int proximityAlertRadius) {
+ this.location = location;
+ this.livePeriod = livePeriod;
+ this.expiresIn = expiresIn;
+ this.heading = heading;
+ this.proximityAlertRadius = proximityAlertRadius;
+ }
+
+ public static final int CONSTRUCTOR = 303973492;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageVenue extends MessageContent {
+
+ public Venue venue;
+
+ public MessageVenue() {
+ }
+
+ public MessageVenue(Venue venue) {
+ this.venue = venue;
+ }
+
+ public static final int CONSTRUCTOR = -2146492043;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageContact extends MessageContent {
+
+ public Contact contact;
+
+ public MessageContact() {
+ }
+
+ public MessageContact(Contact contact) {
+ this.contact = contact;
+ }
+
+ public static final int CONSTRUCTOR = -512684966;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageAnimatedEmoji extends MessageContent {
+
+ public AnimatedEmoji animatedEmoji;
+
+ public String emoji;
+
+ public MessageAnimatedEmoji() {
+ }
+
+ public MessageAnimatedEmoji(AnimatedEmoji animatedEmoji, String emoji) {
+ this.animatedEmoji = animatedEmoji;
+ this.emoji = emoji;
+ }
+
+ public static final int CONSTRUCTOR = 908195298;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageDice extends MessageContent {
+
+ public DiceStickers initialState;
+
+ public DiceStickers finalState;
+
+ public String emoji;
+
+ public int value;
+
+ public int successAnimationFrameNumber;
+
+ public MessageDice() {
+ }
+
+ public MessageDice(DiceStickers initialState, DiceStickers finalState, String emoji, int value, int successAnimationFrameNumber) {
+ this.initialState = initialState;
+ this.finalState = finalState;
+ this.emoji = emoji;
+ this.value = value;
+ this.successAnimationFrameNumber = successAnimationFrameNumber;
+ }
+
+ public static final int CONSTRUCTOR = 1115779641;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageGame extends MessageContent {
+
+ public Game game;
+
+ public MessageGame() {
+ }
+
+ public MessageGame(Game game) {
+ this.game = game;
+ }
+
+ public static final int CONSTRUCTOR = -69441162;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePoll extends MessageContent {
+
+ public Poll poll;
+
+ public MessagePoll() {
+ }
+
+ public MessagePoll(Poll poll) {
+ this.poll = poll;
+ }
+
+ public static final int CONSTRUCTOR = -662130099;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageStory extends MessageContent {
+
+ public long storySenderChatId;
+
+ public int storyId;
+
+ public boolean viaMention;
+
+ public MessageStory() {
+ }
+
+ public MessageStory(long storySenderChatId, int storyId, boolean viaMention) {
+ this.storySenderChatId = storySenderChatId;
+ this.storyId = storyId;
+ this.viaMention = viaMention;
+ }
+
+ public static final int CONSTRUCTOR = 858387156;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageInvoice extends MessageContent {
+
+ public ProductInfo productInfo;
+
+ public String currency;
+
+ public long totalAmount;
+
+ public String startParameter;
+
+ public boolean isTest;
+
+ public boolean needShippingAddress;
+
+ public long receiptMessageId;
+
+ public PaidMedia paidMedia;
+
+ public FormattedText paidMediaCaption;
+
+ public MessageInvoice() {
+ }
+
+ public MessageInvoice(ProductInfo productInfo, String currency, long totalAmount, String startParameter, boolean isTest, boolean needShippingAddress, long receiptMessageId, PaidMedia paidMedia, FormattedText paidMediaCaption) {
+ this.productInfo = productInfo;
+ this.currency = currency;
+ this.totalAmount = totalAmount;
+ this.startParameter = startParameter;
+ this.isTest = isTest;
+ this.needShippingAddress = needShippingAddress;
+ this.receiptMessageId = receiptMessageId;
+ this.paidMedia = paidMedia;
+ this.paidMediaCaption = paidMediaCaption;
+ }
+
+ public static final int CONSTRUCTOR = 263060806;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageCall extends MessageContent {
+
+ public boolean isVideo;
+
+ public CallDiscardReason discardReason;
+
+ public int duration;
+
+ public MessageCall() {
+ }
+
+ public MessageCall(boolean isVideo, CallDiscardReason discardReason, int duration) {
+ this.isVideo = isVideo;
+ this.discardReason = discardReason;
+ this.duration = duration;
+ }
+
+ public static final int CONSTRUCTOR = 538893824;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageVideoChatScheduled extends MessageContent {
+
+ public int groupCallId;
+
+ public int startDate;
+
+ public MessageVideoChatScheduled() {
+ }
+
+ public MessageVideoChatScheduled(int groupCallId, int startDate) {
+ this.groupCallId = groupCallId;
+ this.startDate = startDate;
+ }
+
+ public static final int CONSTRUCTOR = -1855185481;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageVideoChatStarted extends MessageContent {
+
+ public int groupCallId;
+
+ public MessageVideoChatStarted() {
+ }
+
+ public MessageVideoChatStarted(int groupCallId) {
+ this.groupCallId = groupCallId;
+ }
+
+ public static final int CONSTRUCTOR = 521225561;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageVideoChatEnded extends MessageContent {
+
+ public int duration;
+
+ public MessageVideoChatEnded() {
+ }
+
+ public MessageVideoChatEnded(int duration) {
+ this.duration = duration;
+ }
+
+ public static final int CONSTRUCTOR = 2032544855;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageInviteVideoChatParticipants extends MessageContent {
+
+ public int groupCallId;
+
+ public long[] userIds;
+
+ public MessageInviteVideoChatParticipants() {
+ }
+
+ public MessageInviteVideoChatParticipants(int groupCallId, long[] userIds) {
+ this.groupCallId = groupCallId;
+ this.userIds = userIds;
+ }
+
+ public static final int CONSTRUCTOR = -1459065585;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageBasicGroupChatCreate extends MessageContent {
+
+ public String title;
+
+ public long[] memberUserIds;
+
+ public MessageBasicGroupChatCreate() {
+ }
+
+ public MessageBasicGroupChatCreate(String title, long[] memberUserIds) {
+ this.title = title;
+ this.memberUserIds = memberUserIds;
+ }
+
+ public static final int CONSTRUCTOR = 795404060;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSupergroupChatCreate extends MessageContent {
+
+ public String title;
+
+ public MessageSupergroupChatCreate() {
+ }
+
+ public MessageSupergroupChatCreate(String title) {
+ this.title = title;
+ }
+
+ public static final int CONSTRUCTOR = -434325733;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatChangeTitle extends MessageContent {
+
+ public String title;
+
+ public MessageChatChangeTitle() {
+ }
+
+ public MessageChatChangeTitle(String title) {
+ this.title = title;
+ }
+
+ public static final int CONSTRUCTOR = 748272449;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatChangePhoto extends MessageContent {
+
+ public ChatPhoto photo;
+
+ public MessageChatChangePhoto() {
+ }
+
+ public MessageChatChangePhoto(ChatPhoto photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -813415093;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatDeletePhoto extends MessageContent {
+ public MessageChatDeletePhoto() {
+ }
+
+ public static final int CONSTRUCTOR = -184374809;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatAddMembers extends MessageContent {
+
+ public long[] memberUserIds;
+
+ public MessageChatAddMembers() {
+ }
+
+ public MessageChatAddMembers(long[] memberUserIds) {
+ this.memberUserIds = memberUserIds;
+ }
+
+ public static final int CONSTRUCTOR = 1701117908;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatJoinByLink extends MessageContent {
+ public MessageChatJoinByLink() {
+ }
+
+ public static final int CONSTRUCTOR = 1846493311;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatJoinByRequest extends MessageContent {
+ public MessageChatJoinByRequest() {
+ }
+
+ public static final int CONSTRUCTOR = 1195428732;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatDeleteMember extends MessageContent {
+
+ public long userId;
+
+ public MessageChatDeleteMember() {
+ }
+
+ public MessageChatDeleteMember(long userId) {
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = 938029481;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatUpgradeTo extends MessageContent {
+
+ public long supergroupId;
+
+ public MessageChatUpgradeTo() {
+ }
+
+ public MessageChatUpgradeTo(long supergroupId) {
+ this.supergroupId = supergroupId;
+ }
+
+ public static final int CONSTRUCTOR = 104813723;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatUpgradeFrom extends MessageContent {
+
+ public String title;
+
+ public long basicGroupId;
+
+ public MessageChatUpgradeFrom() {
+ }
+
+ public MessageChatUpgradeFrom(String title, long basicGroupId) {
+ this.title = title;
+ this.basicGroupId = basicGroupId;
+ }
+
+ public static final int CONSTRUCTOR = 325954268;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePinMessage extends MessageContent {
+
+ public long messageId;
+
+ public MessagePinMessage() {
+ }
+
+ public MessagePinMessage(long messageId) {
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = 953503801;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageScreenshotTaken extends MessageContent {
+ public MessageScreenshotTaken() {
+ }
+
+ public static final int CONSTRUCTOR = -1564971605;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatSetBackground extends MessageContent {
+
+ public long oldBackgroundMessageId;
+
+ public ChatBackground background;
+
+ public boolean onlyForSelf;
+
+ public MessageChatSetBackground() {
+ }
+
+ public MessageChatSetBackground(long oldBackgroundMessageId, ChatBackground background, boolean onlyForSelf) {
+ this.oldBackgroundMessageId = oldBackgroundMessageId;
+ this.background = background;
+ this.onlyForSelf = onlyForSelf;
+ }
+
+ public static final int CONSTRUCTOR = 1029536832;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatSetTheme extends MessageContent {
+
+ public String themeName;
+
+ public MessageChatSetTheme() {
+ }
+
+ public MessageChatSetTheme(String themeName) {
+ this.themeName = themeName;
+ }
+
+ public static final int CONSTRUCTOR = -1716612088;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatSetMessageAutoDeleteTime extends MessageContent {
+
+ public int messageAutoDeleteTime;
+
+ public long fromUserId;
+
+ public MessageChatSetMessageAutoDeleteTime() {
+ }
+
+ public MessageChatSetMessageAutoDeleteTime(int messageAutoDeleteTime, long fromUserId) {
+ this.messageAutoDeleteTime = messageAutoDeleteTime;
+ this.fromUserId = fromUserId;
+ }
+
+ public static final int CONSTRUCTOR = 1637745966;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatBoost extends MessageContent {
+
+ public int boostCount;
+
+ public MessageChatBoost() {
+ }
+
+ public MessageChatBoost(int boostCount) {
+ this.boostCount = boostCount;
+ }
+
+ public static final int CONSTRUCTOR = 1583310219;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageForumTopicCreated extends MessageContent {
+
+ public String name;
+
+ public ForumTopicIcon icon;
+
+ public MessageForumTopicCreated() {
+ }
+
+ public MessageForumTopicCreated(String name, ForumTopicIcon icon) {
+ this.name = name;
+ this.icon = icon;
+ }
+
+ public static final int CONSTRUCTOR = -1194440751;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageForumTopicEdited extends MessageContent {
+
+ public String name;
+
+ public boolean editIconCustomEmojiId;
+
+ public long iconCustomEmojiId;
+
+ public MessageForumTopicEdited() {
+ }
+
+ public MessageForumTopicEdited(String name, boolean editIconCustomEmojiId, long iconCustomEmojiId) {
+ this.name = name;
+ this.editIconCustomEmojiId = editIconCustomEmojiId;
+ this.iconCustomEmojiId = iconCustomEmojiId;
+ }
+
+ public static final int CONSTRUCTOR = 12629888;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageForumTopicIsClosedToggled extends MessageContent {
+
+ public boolean isClosed;
+
+ public MessageForumTopicIsClosedToggled() {
+ }
+
+ public MessageForumTopicIsClosedToggled(boolean isClosed) {
+ this.isClosed = isClosed;
+ }
+
+ public static final int CONSTRUCTOR = 1264029664;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageForumTopicIsHiddenToggled extends MessageContent {
+
+ public boolean isHidden;
+
+ public MessageForumTopicIsHiddenToggled() {
+ }
+
+ public MessageForumTopicIsHiddenToggled(boolean isHidden) {
+ this.isHidden = isHidden;
+ }
+
+ public static final int CONSTRUCTOR = -1751936002;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSuggestProfilePhoto extends MessageContent {
+
+ public ChatPhoto photo;
+
+ public MessageSuggestProfilePhoto() {
+ }
+
+ public MessageSuggestProfilePhoto(ChatPhoto photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -1251926297;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageCustomServiceAction extends MessageContent {
+
+ public String text;
+
+ public MessageCustomServiceAction() {
+ }
+
+ public MessageCustomServiceAction(String text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = 1435879282;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageGameScore extends MessageContent {
+
+ public long gameMessageId;
+
+ public long gameId;
+
+ public int score;
+
+ public MessageGameScore() {
+ }
+
+ public MessageGameScore(long gameMessageId, long gameId, int score) {
+ this.gameMessageId = gameMessageId;
+ this.gameId = gameId;
+ this.score = score;
+ }
+
+ public static final int CONSTRUCTOR = 1344904575;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePaymentSuccessful extends MessageContent {
+
+ public long invoiceChatId;
+
+ public long invoiceMessageId;
+
+ public String currency;
+
+ public long totalAmount;
+
+ public int subscriptionUntilDate;
+
+ public boolean isRecurring;
+
+ public boolean isFirstRecurring;
+
+ public String invoiceName;
+
+ public MessagePaymentSuccessful() {
+ }
+
+ public MessagePaymentSuccessful(long invoiceChatId, long invoiceMessageId, String currency, long totalAmount, int subscriptionUntilDate, boolean isRecurring, boolean isFirstRecurring, String invoiceName) {
+ this.invoiceChatId = invoiceChatId;
+ this.invoiceMessageId = invoiceMessageId;
+ this.currency = currency;
+ this.totalAmount = totalAmount;
+ this.subscriptionUntilDate = subscriptionUntilDate;
+ this.isRecurring = isRecurring;
+ this.isFirstRecurring = isFirstRecurring;
+ this.invoiceName = invoiceName;
+ }
+
+ public static final int CONSTRUCTOR = 1046878481;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePaymentSuccessfulBot extends MessageContent {
+
+ public String currency;
+
+ public long totalAmount;
+
+ public int subscriptionUntilDate;
+
+ public boolean isRecurring;
+
+ public boolean isFirstRecurring;
+
+ public byte[] invoicePayload;
+
+ public String shippingOptionId;
+
+ public OrderInfo orderInfo;
+
+ public String telegramPaymentChargeId;
+
+ public String providerPaymentChargeId;
+
+ public MessagePaymentSuccessfulBot() {
+ }
+
+ public MessagePaymentSuccessfulBot(String currency, long totalAmount, int subscriptionUntilDate, boolean isRecurring, boolean isFirstRecurring, byte[] invoicePayload, String shippingOptionId, OrderInfo orderInfo, String telegramPaymentChargeId, String providerPaymentChargeId) {
+ this.currency = currency;
+ this.totalAmount = totalAmount;
+ this.subscriptionUntilDate = subscriptionUntilDate;
+ this.isRecurring = isRecurring;
+ this.isFirstRecurring = isFirstRecurring;
+ this.invoicePayload = invoicePayload;
+ this.shippingOptionId = shippingOptionId;
+ this.orderInfo = orderInfo;
+ this.telegramPaymentChargeId = telegramPaymentChargeId;
+ this.providerPaymentChargeId = providerPaymentChargeId;
+ }
+
+ public static final int CONSTRUCTOR = -949596737;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePaymentRefunded extends MessageContent {
+
+ public MessageSender ownerId;
+
+ public String currency;
+
+ public long totalAmount;
+
+ public byte[] invoicePayload;
+
+ public String telegramPaymentChargeId;
+
+ public String providerPaymentChargeId;
+
+ public MessagePaymentRefunded() {
+ }
+
+ public MessagePaymentRefunded(MessageSender ownerId, String currency, long totalAmount, byte[] invoicePayload, String telegramPaymentChargeId, String providerPaymentChargeId) {
+ this.ownerId = ownerId;
+ this.currency = currency;
+ this.totalAmount = totalAmount;
+ this.invoicePayload = invoicePayload;
+ this.telegramPaymentChargeId = telegramPaymentChargeId;
+ this.providerPaymentChargeId = providerPaymentChargeId;
+ }
+
+ public static final int CONSTRUCTOR = 297580787;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageGiftedPremium extends MessageContent {
+
+ public long gifterUserId;
+
+ public long receiverUserId;
+
+ public FormattedText text;
+
+ public String currency;
+
+ public long amount;
+
+ public String cryptocurrency;
+
+ public long cryptocurrencyAmount;
+
+ public int monthCount;
+
+ public Sticker sticker;
+
+ public MessageGiftedPremium() {
+ }
+
+ public MessageGiftedPremium(long gifterUserId, long receiverUserId, FormattedText text, String currency, long amount, String cryptocurrency, long cryptocurrencyAmount, int monthCount, Sticker sticker) {
+ this.gifterUserId = gifterUserId;
+ this.receiverUserId = receiverUserId;
+ this.text = text;
+ this.currency = currency;
+ this.amount = amount;
+ this.cryptocurrency = cryptocurrency;
+ this.cryptocurrencyAmount = cryptocurrencyAmount;
+ this.monthCount = monthCount;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -456073094;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePremiumGiftCode extends MessageContent {
+
+ public MessageSender creatorId;
+
+ public FormattedText text;
+
+ public boolean isFromGiveaway;
+
+ public boolean isUnclaimed;
+
+ public String currency;
+
+ public long amount;
+
+ public String cryptocurrency;
+
+ public long cryptocurrencyAmount;
+
+ public int monthCount;
+
+ public Sticker sticker;
+
+ public String code;
+
+ public MessagePremiumGiftCode() {
+ }
+
+ public MessagePremiumGiftCode(MessageSender creatorId, FormattedText text, boolean isFromGiveaway, boolean isUnclaimed, String currency, long amount, String cryptocurrency, long cryptocurrencyAmount, int monthCount, Sticker sticker, String code) {
+ this.creatorId = creatorId;
+ this.text = text;
+ this.isFromGiveaway = isFromGiveaway;
+ this.isUnclaimed = isUnclaimed;
+ this.currency = currency;
+ this.amount = amount;
+ this.cryptocurrency = cryptocurrency;
+ this.cryptocurrencyAmount = cryptocurrencyAmount;
+ this.monthCount = monthCount;
+ this.sticker = sticker;
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = 701640270;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageGiveawayCreated extends MessageContent {
+
+ public long starCount;
+
+ public MessageGiveawayCreated() {
+ }
+
+ public MessageGiveawayCreated(long starCount) {
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = 972252063;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageGiveaway extends MessageContent {
+
+ public GiveawayParameters parameters;
+
+ public int winnerCount;
+
+ public GiveawayPrize prize;
+
+ public Sticker sticker;
+
+ public MessageGiveaway() {
+ }
+
+ public MessageGiveaway(GiveawayParameters parameters, int winnerCount, GiveawayPrize prize, Sticker sticker) {
+ this.parameters = parameters;
+ this.winnerCount = winnerCount;
+ this.prize = prize;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -345908568;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageGiveawayCompleted extends MessageContent {
+
+ public long giveawayMessageId;
+
+ public int winnerCount;
+
+ public boolean isStarGiveaway;
+
+ public int unclaimedPrizeCount;
+
+ public MessageGiveawayCompleted() {
+ }
+
+ public MessageGiveawayCompleted(long giveawayMessageId, int winnerCount, boolean isStarGiveaway, int unclaimedPrizeCount) {
+ this.giveawayMessageId = giveawayMessageId;
+ this.winnerCount = winnerCount;
+ this.isStarGiveaway = isStarGiveaway;
+ this.unclaimedPrizeCount = unclaimedPrizeCount;
+ }
+
+ public static final int CONSTRUCTOR = -467351305;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageGiveawayWinners extends MessageContent {
+
+ public long boostedChatId;
+
+ public long giveawayMessageId;
+
+ public int additionalChatCount;
+
+ public int actualWinnersSelectionDate;
+
+ public boolean onlyNewMembers;
+
+ public boolean wasRefunded;
+
+ public GiveawayPrize prize;
+
+ public String prizeDescription;
+
+ public int winnerCount;
+
+ public long[] winnerUserIds;
+
+ public int unclaimedPrizeCount;
+
+ public MessageGiveawayWinners() {
+ }
+
+ public MessageGiveawayWinners(long boostedChatId, long giveawayMessageId, int additionalChatCount, int actualWinnersSelectionDate, boolean onlyNewMembers, boolean wasRefunded, GiveawayPrize prize, String prizeDescription, int winnerCount, long[] winnerUserIds, int unclaimedPrizeCount) {
+ this.boostedChatId = boostedChatId;
+ this.giveawayMessageId = giveawayMessageId;
+ this.additionalChatCount = additionalChatCount;
+ this.actualWinnersSelectionDate = actualWinnersSelectionDate;
+ this.onlyNewMembers = onlyNewMembers;
+ this.wasRefunded = wasRefunded;
+ this.prize = prize;
+ this.prizeDescription = prizeDescription;
+ this.winnerCount = winnerCount;
+ this.winnerUserIds = winnerUserIds;
+ this.unclaimedPrizeCount = unclaimedPrizeCount;
+ }
+
+ public static final int CONSTRUCTOR = 2098585405;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageGiftedStars extends MessageContent {
+
+ public long gifterUserId;
+
+ public long receiverUserId;
+
+ public String currency;
+
+ public long amount;
+
+ public String cryptocurrency;
+
+ public long cryptocurrencyAmount;
+
+ public long starCount;
+
+ public String transactionId;
+
+ public Sticker sticker;
+
+ public MessageGiftedStars() {
+ }
+
+ public MessageGiftedStars(long gifterUserId, long receiverUserId, String currency, long amount, String cryptocurrency, long cryptocurrencyAmount, long starCount, String transactionId, Sticker sticker) {
+ this.gifterUserId = gifterUserId;
+ this.receiverUserId = receiverUserId;
+ this.currency = currency;
+ this.amount = amount;
+ this.cryptocurrency = cryptocurrency;
+ this.cryptocurrencyAmount = cryptocurrencyAmount;
+ this.starCount = starCount;
+ this.transactionId = transactionId;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = 1102954151;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageGiveawayPrizeStars extends MessageContent {
+
+ public long starCount;
+
+ public String transactionId;
+
+ public long boostedChatId;
+
+ public long giveawayMessageId;
+
+ public boolean isUnclaimed;
+
+ public Sticker sticker;
+
+ public MessageGiveawayPrizeStars() {
+ }
+
+ public MessageGiveawayPrizeStars(long starCount, String transactionId, long boostedChatId, long giveawayMessageId, boolean isUnclaimed, Sticker sticker) {
+ this.starCount = starCount;
+ this.transactionId = transactionId;
+ this.boostedChatId = boostedChatId;
+ this.giveawayMessageId = giveawayMessageId;
+ this.isUnclaimed = isUnclaimed;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -1441833501;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageGift extends MessageContent {
+
+ public Gift gift;
+
+ public FormattedText text;
+
+ public long sellStarCount;
+
+ public boolean isPrivate;
+
+ public boolean isSaved;
+
+ public boolean wasConverted;
+
+ public MessageGift() {
+ }
+
+ public MessageGift(Gift gift, FormattedText text, long sellStarCount, boolean isPrivate, boolean isSaved, boolean wasConverted) {
+ this.gift = gift;
+ this.text = text;
+ this.sellStarCount = sellStarCount;
+ this.isPrivate = isPrivate;
+ this.isSaved = isSaved;
+ this.wasConverted = wasConverted;
+ }
+
+ public static final int CONSTRUCTOR = -1741766297;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageContactRegistered extends MessageContent {
+ public MessageContactRegistered() {
+ }
+
+ public static final int CONSTRUCTOR = -1502020353;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageUsersShared extends MessageContent {
+
+ public SharedUser[] users;
+
+ public int buttonId;
+
+ public MessageUsersShared() {
+ }
+
+ public MessageUsersShared(SharedUser[] users, int buttonId) {
+ this.users = users;
+ this.buttonId = buttonId;
+ }
+
+ public static final int CONSTRUCTOR = -842442318;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageChatShared extends MessageContent {
+
+ public SharedChat chat;
+
+ public int buttonId;
+
+ public MessageChatShared() {
+ }
+
+ public MessageChatShared(SharedChat chat, int buttonId) {
+ this.chat = chat;
+ this.buttonId = buttonId;
+ }
+
+ public static final int CONSTRUCTOR = -1362699935;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageBotWriteAccessAllowed extends MessageContent {
+
+ public BotWriteAccessAllowReason reason;
+
+ public MessageBotWriteAccessAllowed() {
+ }
+
+ public MessageBotWriteAccessAllowed(BotWriteAccessAllowReason reason) {
+ this.reason = reason;
+ }
+
+ public static final int CONSTRUCTOR = -1702185036;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageWebAppDataSent extends MessageContent {
+
+ public String buttonText;
+
+ public MessageWebAppDataSent() {
+ }
+
+ public MessageWebAppDataSent(String buttonText) {
+ this.buttonText = buttonText;
+ }
+
+ public static final int CONSTRUCTOR = -83674862;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageWebAppDataReceived extends MessageContent {
+
+ public String buttonText;
+
+ public String data;
+
+ public MessageWebAppDataReceived() {
+ }
+
+ public MessageWebAppDataReceived(String buttonText, String data) {
+ this.buttonText = buttonText;
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = -8578539;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePassportDataSent extends MessageContent {
+
+ public PassportElementType[] types;
+
+ public MessagePassportDataSent() {
+ }
+
+ public MessagePassportDataSent(PassportElementType[] types) {
+ this.types = types;
+ }
+
+ public static final int CONSTRUCTOR = 1017405171;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePassportDataReceived extends MessageContent {
+
+ public EncryptedPassportElement[] elements;
+
+ public EncryptedCredentials credentials;
+
+ public MessagePassportDataReceived() {
+ }
+
+ public MessagePassportDataReceived(EncryptedPassportElement[] elements, EncryptedCredentials credentials) {
+ this.elements = elements;
+ this.credentials = credentials;
+ }
+
+ public static final int CONSTRUCTOR = -1367863624;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageProximityAlertTriggered extends MessageContent {
+
+ public MessageSender travelerId;
+
+ public MessageSender watcherId;
+
+ public int distance;
+
+ public MessageProximityAlertTriggered() {
+ }
+
+ public MessageProximityAlertTriggered(MessageSender travelerId, MessageSender watcherId, int distance) {
+ this.travelerId = travelerId;
+ this.watcherId = watcherId;
+ this.distance = distance;
+ }
+
+ public static final int CONSTRUCTOR = 67761875;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageUnsupported extends MessageContent {
+ public MessageUnsupported() {
+ }
+
+ public static final int CONSTRUCTOR = -1816726139;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageCopyOptions extends Object {
+
+ public boolean sendCopy;
+
+ public boolean replaceCaption;
+
+ public FormattedText newCaption;
+
+ public boolean newShowCaptionAboveMedia;
+
+ public MessageCopyOptions() {
+ }
+
+ public MessageCopyOptions(boolean sendCopy, boolean replaceCaption, FormattedText newCaption, boolean newShowCaptionAboveMedia) {
+ this.sendCopy = sendCopy;
+ this.replaceCaption = replaceCaption;
+ this.newCaption = newCaption;
+ this.newShowCaptionAboveMedia = newShowCaptionAboveMedia;
+ }
+
+ public static final int CONSTRUCTOR = 1079772090;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageEffect extends Object {
+
+ public long id;
+
+ public Sticker staticIcon;
+
+ public String emoji;
+
+ public boolean isPremium;
+
+ public MessageEffectType type;
+
+ public MessageEffect() {
+ }
+
+ public MessageEffect(long id, Sticker staticIcon, String emoji, boolean isPremium, MessageEffectType type) {
+ this.id = id;
+ this.staticIcon = staticIcon;
+ this.emoji = emoji;
+ this.isPremium = isPremium;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -1758836433;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageEffectType extends Object {
+
+ public MessageEffectType() {
+ }
+ }
+
+ public static class MessageEffectTypeEmojiReaction extends MessageEffectType {
+
+ public Sticker selectAnimation;
+
+ public Sticker effectAnimation;
+
+ public MessageEffectTypeEmojiReaction() {
+ }
+
+ public MessageEffectTypeEmojiReaction(Sticker selectAnimation, Sticker effectAnimation) {
+ this.selectAnimation = selectAnimation;
+ this.effectAnimation = effectAnimation;
+ }
+
+ public static final int CONSTRUCTOR = 1756079678;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageEffectTypePremiumSticker extends MessageEffectType {
+
+ public Sticker sticker;
+
+ public MessageEffectTypePremiumSticker() {
+ }
+
+ public MessageEffectTypePremiumSticker(Sticker sticker) {
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = 1637231609;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageFileType extends Object {
+
+ public MessageFileType() {
+ }
+ }
+
+ public static class MessageFileTypePrivate extends MessageFileType {
+
+ public String name;
+
+ public MessageFileTypePrivate() {
+ }
+
+ public MessageFileTypePrivate(String name) {
+ this.name = name;
+ }
+
+ public static final int CONSTRUCTOR = -521908524;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageFileTypeGroup extends MessageFileType {
+
+ public String title;
+
+ public MessageFileTypeGroup() {
+ }
+
+ public MessageFileTypeGroup(String title) {
+ this.title = title;
+ }
+
+ public static final int CONSTRUCTOR = -219836568;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageFileTypeUnknown extends MessageFileType {
+ public MessageFileTypeUnknown() {
+ }
+
+ public static final int CONSTRUCTOR = 1176353458;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageForwardInfo extends Object {
+
+ public MessageOrigin origin;
+
+ public int date;
+
+ public ForwardSource source;
+
+ public String publicServiceAnnouncementType;
+
+ public MessageForwardInfo() {
+ }
+
+ public MessageForwardInfo(MessageOrigin origin, int date, ForwardSource source, String publicServiceAnnouncementType) {
+ this.origin = origin;
+ this.date = date;
+ this.source = source;
+ this.publicServiceAnnouncementType = publicServiceAnnouncementType;
+ }
+
+ public static final int CONSTRUCTOR = -880313475;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageImportInfo extends Object {
+
+ public String senderName;
+
+ public int date;
+
+ public MessageImportInfo() {
+ }
+
+ public MessageImportInfo(String senderName, int date) {
+ this.senderName = senderName;
+ this.date = date;
+ }
+
+ public static final int CONSTRUCTOR = -421549105;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageInteractionInfo extends Object {
+
+ public int viewCount;
+
+ public int forwardCount;
+
+ public MessageReplyInfo replyInfo;
+
+ public MessageReactions reactions;
+
+ public MessageInteractionInfo() {
+ }
+
+ public MessageInteractionInfo(int viewCount, int forwardCount, MessageReplyInfo replyInfo, MessageReactions reactions) {
+ this.viewCount = viewCount;
+ this.forwardCount = forwardCount;
+ this.replyInfo = replyInfo;
+ this.reactions = reactions;
+ }
+
+ public static final int CONSTRUCTOR = 733797893;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageLink extends Object {
+
+ public String link;
+
+ public boolean isPublic;
+
+ public MessageLink() {
+ }
+
+ public MessageLink(String link, boolean isPublic) {
+ this.link = link;
+ this.isPublic = isPublic;
+ }
+
+ public static final int CONSTRUCTOR = -1354089818;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageLinkInfo extends Object {
+
+ public boolean isPublic;
+
+ public long chatId;
+
+ public long messageThreadId;
+
+ public Message message;
+
+ public int mediaTimestamp;
+
+ public boolean forAlbum;
+
+ public MessageLinkInfo() {
+ }
+
+ public MessageLinkInfo(boolean isPublic, long chatId, long messageThreadId, Message message, int mediaTimestamp, boolean forAlbum) {
+ this.isPublic = isPublic;
+ this.chatId = chatId;
+ this.messageThreadId = messageThreadId;
+ this.message = message;
+ this.mediaTimestamp = mediaTimestamp;
+ this.forAlbum = forAlbum;
+ }
+
+ public static final int CONSTRUCTOR = 731315024;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageOrigin extends Object {
+
+ public MessageOrigin() {
+ }
+ }
+
+ public static class MessageOriginUser extends MessageOrigin {
+
+ public long senderUserId;
+
+ public MessageOriginUser() {
+ }
+
+ public MessageOriginUser(long senderUserId) {
+ this.senderUserId = senderUserId;
+ }
+
+ public static final int CONSTRUCTOR = -1677684669;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageOriginHiddenUser extends MessageOrigin {
+
+ public String senderName;
+
+ public MessageOriginHiddenUser() {
+ }
+
+ public MessageOriginHiddenUser(String senderName) {
+ this.senderName = senderName;
+ }
+
+ public static final int CONSTRUCTOR = -317971494;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageOriginChat extends MessageOrigin {
+
+ public long senderChatId;
+
+ public String authorSignature;
+
+ public MessageOriginChat() {
+ }
+
+ public MessageOriginChat(long senderChatId, String authorSignature) {
+ this.senderChatId = senderChatId;
+ this.authorSignature = authorSignature;
+ }
+
+ public static final int CONSTRUCTOR = -205824332;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageOriginChannel extends MessageOrigin {
+
+ public long chatId;
+
+ public long messageId;
+
+ public String authorSignature;
+
+ public MessageOriginChannel() {
+ }
+
+ public MessageOriginChannel(long chatId, long messageId, String authorSignature) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.authorSignature = authorSignature;
+ }
+
+ public static final int CONSTRUCTOR = -1451535938;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePosition extends Object {
+
+ public int position;
+
+ public long messageId;
+
+ public int date;
+
+ public MessagePosition() {
+ }
+
+ public MessagePosition(int position, long messageId, int date) {
+ this.position = position;
+ this.messageId = messageId;
+ this.date = date;
+ }
+
+ public static final int CONSTRUCTOR = 1292189935;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessagePositions extends Object {
+
+ public int totalCount;
+
+ public MessagePosition[] positions;
+
+ public MessagePositions() {
+ }
+
+ public MessagePositions(int totalCount, MessagePosition[] positions) {
+ this.totalCount = totalCount;
+ this.positions = positions;
+ }
+
+ public static final int CONSTRUCTOR = -1930466649;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageProperties extends Object {
+
+ public boolean canBeCopiedToSecretChat;
+
+ public boolean canBeDeletedOnlyForSelf;
+
+ public boolean canBeDeletedForAllUsers;
+
+ public boolean canBeEdited;
+
+ public boolean canBeForwarded;
+
+ public boolean canBePaid;
+
+ public boolean canBePinned;
+
+ public boolean canBeReplied;
+
+ public boolean canBeRepliedInAnotherChat;
+
+ public boolean canBeSaved;
+
+ public boolean canBeSharedInStory;
+
+ public boolean canEditMedia;
+
+ public boolean canEditSchedulingState;
+
+ public boolean canGetEmbeddingCode;
+
+ public boolean canGetLink;
+
+ public boolean canGetMediaTimestampLinks;
+
+ public boolean canGetMessageThread;
+
+ public boolean canGetReadDate;
+
+ public boolean canGetStatistics;
+
+ public boolean canGetViewers;
+
+ public boolean canRecognizeSpeech;
+
+ public boolean canReportChat;
+
+ public boolean canReportReactions;
+
+ public boolean canReportSupergroupSpam;
+
+ public boolean canSetFactCheck;
+
+ public boolean needShowStatistics;
+
+ public MessageProperties() {
+ }
+
+ public MessageProperties(boolean canBeCopiedToSecretChat, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeEdited, boolean canBeForwarded, boolean canBePaid, boolean canBePinned, boolean canBeReplied, boolean canBeRepliedInAnotherChat, boolean canBeSaved, boolean canBeSharedInStory, boolean canEditMedia, boolean canEditSchedulingState, boolean canGetEmbeddingCode, boolean canGetLink, boolean canGetMediaTimestampLinks, boolean canGetMessageThread, boolean canGetReadDate, boolean canGetStatistics, boolean canGetViewers, boolean canRecognizeSpeech, boolean canReportChat, boolean canReportReactions, boolean canReportSupergroupSpam, boolean canSetFactCheck, boolean needShowStatistics) {
+ this.canBeCopiedToSecretChat = canBeCopiedToSecretChat;
+ this.canBeDeletedOnlyForSelf = canBeDeletedOnlyForSelf;
+ this.canBeDeletedForAllUsers = canBeDeletedForAllUsers;
+ this.canBeEdited = canBeEdited;
+ this.canBeForwarded = canBeForwarded;
+ this.canBePaid = canBePaid;
+ this.canBePinned = canBePinned;
+ this.canBeReplied = canBeReplied;
+ this.canBeRepliedInAnotherChat = canBeRepliedInAnotherChat;
+ this.canBeSaved = canBeSaved;
+ this.canBeSharedInStory = canBeSharedInStory;
+ this.canEditMedia = canEditMedia;
+ this.canEditSchedulingState = canEditSchedulingState;
+ this.canGetEmbeddingCode = canGetEmbeddingCode;
+ this.canGetLink = canGetLink;
+ this.canGetMediaTimestampLinks = canGetMediaTimestampLinks;
+ this.canGetMessageThread = canGetMessageThread;
+ this.canGetReadDate = canGetReadDate;
+ this.canGetStatistics = canGetStatistics;
+ this.canGetViewers = canGetViewers;
+ this.canRecognizeSpeech = canRecognizeSpeech;
+ this.canReportChat = canReportChat;
+ this.canReportReactions = canReportReactions;
+ this.canReportSupergroupSpam = canReportSupergroupSpam;
+ this.canSetFactCheck = canSetFactCheck;
+ this.needShowStatistics = needShowStatistics;
+ }
+
+ public static final int CONSTRUCTOR = -27014655;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageReaction extends Object {
+
+ public ReactionType type;
+
+ public int totalCount;
+
+ public boolean isChosen;
+
+ public MessageSender usedSenderId;
+
+ public MessageSender[] recentSenderIds;
+
+ public MessageReaction() {
+ }
+
+ public MessageReaction(ReactionType type, int totalCount, boolean isChosen, MessageSender usedSenderId, MessageSender[] recentSenderIds) {
+ this.type = type;
+ this.totalCount = totalCount;
+ this.isChosen = isChosen;
+ this.usedSenderId = usedSenderId;
+ this.recentSenderIds = recentSenderIds;
+ }
+
+ public static final int CONSTRUCTOR = -1093994369;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageReactions extends Object {
+
+ public MessageReaction[] reactions;
+
+ public boolean areTags;
+
+ public PaidReactor[] paidReactors;
+
+ public boolean canGetAddedReactions;
+
+ public MessageReactions() {
+ }
+
+ public MessageReactions(MessageReaction[] reactions, boolean areTags, PaidReactor[] paidReactors, boolean canGetAddedReactions) {
+ this.reactions = reactions;
+ this.areTags = areTags;
+ this.paidReactors = paidReactors;
+ this.canGetAddedReactions = canGetAddedReactions;
+ }
+
+ public static final int CONSTRUCTOR = 1475966817;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageReadDate extends Object {
+
+ public MessageReadDate() {
+ }
+ }
+
+ public static class MessageReadDateRead extends MessageReadDate {
+
+ public int readDate;
+
+ public MessageReadDateRead() {
+ }
+
+ public MessageReadDateRead(int readDate) {
+ this.readDate = readDate;
+ }
+
+ public static final int CONSTRUCTOR = 1972186672;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageReadDateUnread extends MessageReadDate {
+ public MessageReadDateUnread() {
+ }
+
+ public static final int CONSTRUCTOR = 397549868;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageReadDateTooOld extends MessageReadDate {
+ public MessageReadDateTooOld() {
+ }
+
+ public static final int CONSTRUCTOR = -1233773024;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageReadDateUserPrivacyRestricted extends MessageReadDate {
+ public MessageReadDateUserPrivacyRestricted() {
+ }
+
+ public static final int CONSTRUCTOR = -1282567130;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageReadDateMyPrivacyRestricted extends MessageReadDate {
+ public MessageReadDateMyPrivacyRestricted() {
+ }
+
+ public static final int CONSTRUCTOR = -693971852;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageReplyInfo extends Object {
+
+ public int replyCount;
+
+ public MessageSender[] recentReplierIds;
+
+ public long lastReadInboxMessageId;
+
+ public long lastReadOutboxMessageId;
+
+ public long lastMessageId;
+
+ public MessageReplyInfo() {
+ }
+
+ public MessageReplyInfo(int replyCount, MessageSender[] recentReplierIds, long lastReadInboxMessageId, long lastReadOutboxMessageId, long lastMessageId) {
+ this.replyCount = replyCount;
+ this.recentReplierIds = recentReplierIds;
+ this.lastReadInboxMessageId = lastReadInboxMessageId;
+ this.lastReadOutboxMessageId = lastReadOutboxMessageId;
+ this.lastMessageId = lastMessageId;
+ }
+
+ public static final int CONSTRUCTOR = -2093702263;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageReplyTo extends Object {
+
+ public MessageReplyTo() {
+ }
+ }
+
+ public static class MessageReplyToMessage extends MessageReplyTo {
+
+ public long chatId;
+
+ public long messageId;
+
+ public TextQuote quote;
+
+ public MessageOrigin origin;
+
+ public int originSendDate;
+
+ public MessageContent content;
+
+ public MessageReplyToMessage() {
+ }
+
+ public MessageReplyToMessage(long chatId, long messageId, TextQuote quote, MessageOrigin origin, int originSendDate, MessageContent content) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.quote = quote;
+ this.origin = origin;
+ this.originSendDate = originSendDate;
+ this.content = content;
+ }
+
+ public static final int CONSTRUCTOR = -300918393;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageReplyToStory extends MessageReplyTo {
+
+ public long storySenderChatId;
+
+ public int storyId;
+
+ public MessageReplyToStory() {
+ }
+
+ public MessageReplyToStory(long storySenderChatId, int storyId) {
+ this.storySenderChatId = storySenderChatId;
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = 1888266553;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageSchedulingState extends Object {
+
+ public MessageSchedulingState() {
+ }
+ }
+
+ public static class MessageSchedulingStateSendAtDate extends MessageSchedulingState {
+
+ public int sendDate;
+
+ public MessageSchedulingStateSendAtDate() {
+ }
+
+ public MessageSchedulingStateSendAtDate(int sendDate) {
+ this.sendDate = sendDate;
+ }
+
+ public static final int CONSTRUCTOR = -1485570073;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSchedulingStateSendWhenOnline extends MessageSchedulingState {
+ public MessageSchedulingStateSendWhenOnline() {
+ }
+
+ public static final int CONSTRUCTOR = 2092947464;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSchedulingStateSendWhenVideoProcessed extends MessageSchedulingState {
+
+ public int sendDate;
+
+ public MessageSchedulingStateSendWhenVideoProcessed() {
+ }
+
+ public MessageSchedulingStateSendWhenVideoProcessed(int sendDate) {
+ this.sendDate = sendDate;
+ }
+
+ public static final int CONSTRUCTOR = 2101578734;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageSelfDestructType extends Object {
+
+ public MessageSelfDestructType() {
+ }
+ }
+
+ public static class MessageSelfDestructTypeTimer extends MessageSelfDestructType {
+
+ public int selfDestructTime;
+
+ public MessageSelfDestructTypeTimer() {
+ }
+
+ public MessageSelfDestructTypeTimer(int selfDestructTime) {
+ this.selfDestructTime = selfDestructTime;
+ }
+
+ public static final int CONSTRUCTOR = 1351440333;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSelfDestructTypeImmediately extends MessageSelfDestructType {
+ public MessageSelfDestructTypeImmediately() {
+ }
+
+ public static final int CONSTRUCTOR = -1036218363;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSendOptions extends Object {
+
+ public boolean disableNotification;
+
+ public boolean fromBackground;
+
+ public boolean protectContent;
+
+ public boolean allowPaidBroadcast;
+
+ public boolean updateOrderOfInstalledStickerSets;
+
+ public MessageSchedulingState schedulingState;
+
+ public long effectId;
+
+ public int sendingId;
+
+ public boolean onlyPreview;
+
+ public MessageSendOptions() {
+ }
+
+ public MessageSendOptions(boolean disableNotification, boolean fromBackground, boolean protectContent, boolean allowPaidBroadcast, boolean updateOrderOfInstalledStickerSets, MessageSchedulingState schedulingState, long effectId, int sendingId, boolean onlyPreview) {
+ this.disableNotification = disableNotification;
+ this.fromBackground = fromBackground;
+ this.protectContent = protectContent;
+ this.allowPaidBroadcast = allowPaidBroadcast;
+ this.updateOrderOfInstalledStickerSets = updateOrderOfInstalledStickerSets;
+ this.schedulingState = schedulingState;
+ this.effectId = effectId;
+ this.sendingId = sendingId;
+ this.onlyPreview = onlyPreview;
+ }
+
+ public static final int CONSTRUCTOR = 776354378;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageSender extends Object {
+
+ public MessageSender() {
+ }
+ }
+
+ public static class MessageSenderUser extends MessageSender {
+
+ public long userId;
+
+ public MessageSenderUser() {
+ }
+
+ public MessageSenderUser(long userId) {
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = -336109341;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSenderChat extends MessageSender {
+
+ public long chatId;
+
+ public MessageSenderChat() {
+ }
+
+ public MessageSenderChat(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = -239660751;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSenders extends Object {
+
+ public int totalCount;
+
+ public MessageSender[] senders;
+
+ public MessageSenders() {
+ }
+
+ public MessageSenders(int totalCount, MessageSender[] senders) {
+ this.totalCount = totalCount;
+ this.senders = senders;
+ }
+
+ public static final int CONSTRUCTOR = -690158467;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageSendingState extends Object {
+
+ public MessageSendingState() {
+ }
+ }
+
+ public static class MessageSendingStatePending extends MessageSendingState {
+
+ public int sendingId;
+
+ public MessageSendingStatePending() {
+ }
+
+ public MessageSendingStatePending(int sendingId) {
+ this.sendingId = sendingId;
+ }
+
+ public static final int CONSTRUCTOR = -215260236;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSendingStateFailed extends MessageSendingState {
+
+ public Error error;
+
+ public boolean canRetry;
+
+ public boolean needAnotherSender;
+
+ public boolean needAnotherReplyQuote;
+
+ public boolean needDropReply;
+
+ public double retryAfter;
+
+ public MessageSendingStateFailed() {
+ }
+
+ public MessageSendingStateFailed(Error error, boolean canRetry, boolean needAnotherSender, boolean needAnotherReplyQuote, boolean needDropReply, double retryAfter) {
+ this.error = error;
+ this.canRetry = canRetry;
+ this.needAnotherSender = needAnotherSender;
+ this.needAnotherReplyQuote = needAnotherReplyQuote;
+ this.needDropReply = needDropReply;
+ this.retryAfter = retryAfter;
+ }
+
+ public static final int CONSTRUCTOR = -1400770978;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class MessageSource extends Object {
+
+ public MessageSource() {
+ }
+ }
+
+ public static class MessageSourceChatHistory extends MessageSource {
+ public MessageSourceChatHistory() {
+ }
+
+ public static final int CONSTRUCTOR = -1090386116;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSourceMessageThreadHistory extends MessageSource {
+ public MessageSourceMessageThreadHistory() {
+ }
+
+ public static final int CONSTRUCTOR = 290427142;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSourceForumTopicHistory extends MessageSource {
+ public MessageSourceForumTopicHistory() {
+ }
+
+ public static final int CONSTRUCTOR = -1518064457;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSourceHistoryPreview extends MessageSource {
+ public MessageSourceHistoryPreview() {
+ }
+
+ public static final int CONSTRUCTOR = 1024254993;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSourceChatList extends MessageSource {
+ public MessageSourceChatList() {
+ }
+
+ public static final int CONSTRUCTOR = -2047406102;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSourceSearch extends MessageSource {
+ public MessageSourceSearch() {
+ }
+
+ public static final int CONSTRUCTOR = 1921333105;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSourceChatEventLog extends MessageSource {
+ public MessageSourceChatEventLog() {
+ }
+
+ public static final int CONSTRUCTOR = -1028777540;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSourceNotification extends MessageSource {
+ public MessageSourceNotification() {
+ }
+
+ public static final int CONSTRUCTOR = -1046406163;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSourceScreenshot extends MessageSource {
+ public MessageSourceScreenshot() {
+ }
+
+ public static final int CONSTRUCTOR = 469982474;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSourceOther extends MessageSource {
+ public MessageSourceOther() {
+ }
+
+ public static final int CONSTRUCTOR = 901818114;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageSponsor extends Object {
+
+ public String url;
+
+ public Photo photo;
+
+ public String info;
+
+ public MessageSponsor() {
+ }
+
+ public MessageSponsor(String url, Photo photo, String info) {
+ this.url = url;
+ this.photo = photo;
+ this.info = info;
+ }
+
+ public static final int CONSTRUCTOR = 2009223646;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageStatistics extends Object {
+
+ public StatisticalGraph messageInteractionGraph;
+
+ public StatisticalGraph messageReactionGraph;
+
+ public MessageStatistics() {
+ }
+
+ public MessageStatistics(StatisticalGraph messageInteractionGraph, StatisticalGraph messageReactionGraph) {
+ this.messageInteractionGraph = messageInteractionGraph;
+ this.messageReactionGraph = messageReactionGraph;
+ }
+
+ public static final int CONSTRUCTOR = -1563537657;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageThreadInfo extends Object {
+
+ public long chatId;
+
+ public long messageThreadId;
+
+ public MessageReplyInfo replyInfo;
+
+ public int unreadMessageCount;
+
+ public Message[] messages;
+
+ public DraftMessage draftMessage;
+
+ public MessageThreadInfo() {
+ }
+
+ public MessageThreadInfo(long chatId, long messageThreadId, MessageReplyInfo replyInfo, int unreadMessageCount, Message[] messages, DraftMessage draftMessage) {
+ this.chatId = chatId;
+ this.messageThreadId = messageThreadId;
+ this.replyInfo = replyInfo;
+ this.unreadMessageCount = unreadMessageCount;
+ this.messages = messages;
+ this.draftMessage = draftMessage;
+ }
+
+ public static final int CONSTRUCTOR = -248536056;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageViewer extends Object {
+
+ public long userId;
+
+ public int viewDate;
+
+ public MessageViewer() {
+ }
+
+ public MessageViewer(long userId, int viewDate) {
+ this.userId = userId;
+ this.viewDate = viewDate;
+ }
+
+ public static final int CONSTRUCTOR = 1458639309;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class MessageViewers extends Object {
+
+ public MessageViewer[] viewers;
+
+ public MessageViewers() {
+ }
+
+ public MessageViewers(MessageViewer[] viewers) {
+ this.viewers = viewers;
+ }
+
+ public static final int CONSTRUCTOR = 2116480287;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Messages extends Object {
+
+ public int totalCount;
+
+ public Message[] messages;
+
+ public Messages() {
+ }
+
+ public Messages(int totalCount, Message[] messages) {
+ this.totalCount = totalCount;
+ this.messages = messages;
+ }
+
+ public static final int CONSTRUCTOR = -16498159;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Minithumbnail extends Object {
+
+ public int width;
+
+ public int height;
+
+ public byte[] data;
+
+ public Minithumbnail() {
+ }
+
+ public Minithumbnail(int width, int height, byte[] data) {
+ this.width = width;
+ this.height = height;
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = -328540758;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NetworkStatistics extends Object {
+
+ public int sinceDate;
+
+ public NetworkStatisticsEntry[] entries;
+
+ public NetworkStatistics() {
+ }
+
+ public NetworkStatistics(int sinceDate, NetworkStatisticsEntry[] entries) {
+ this.sinceDate = sinceDate;
+ this.entries = entries;
+ }
+
+ public static final int CONSTRUCTOR = 1615554212;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class NetworkStatisticsEntry extends Object {
+
+ public NetworkStatisticsEntry() {
+ }
+ }
+
+ public static class NetworkStatisticsEntryFile extends NetworkStatisticsEntry {
+
+ public FileType fileType;
+
+ public NetworkType networkType;
+
+ public long sentBytes;
+
+ public long receivedBytes;
+
+ public NetworkStatisticsEntryFile() {
+ }
+
+ public NetworkStatisticsEntryFile(FileType fileType, NetworkType networkType, long sentBytes, long receivedBytes) {
+ this.fileType = fileType;
+ this.networkType = networkType;
+ this.sentBytes = sentBytes;
+ this.receivedBytes = receivedBytes;
+ }
+
+ public static final int CONSTRUCTOR = 188452706;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NetworkStatisticsEntryCall extends NetworkStatisticsEntry {
+
+ public NetworkType networkType;
+
+ public long sentBytes;
+
+ public long receivedBytes;
+
+ public double duration;
+
+ public NetworkStatisticsEntryCall() {
+ }
+
+ public NetworkStatisticsEntryCall(NetworkType networkType, long sentBytes, long receivedBytes, double duration) {
+ this.networkType = networkType;
+ this.sentBytes = sentBytes;
+ this.receivedBytes = receivedBytes;
+ this.duration = duration;
+ }
+
+ public static final int CONSTRUCTOR = 737000365;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class NetworkType extends Object {
+
+ public NetworkType() {
+ }
+ }
+
+ public static class NetworkTypeNone extends NetworkType {
+ public NetworkTypeNone() {
+ }
+
+ public static final int CONSTRUCTOR = -1971691759;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NetworkTypeMobile extends NetworkType {
+ public NetworkTypeMobile() {
+ }
+
+ public static final int CONSTRUCTOR = 819228239;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NetworkTypeMobileRoaming extends NetworkType {
+ public NetworkTypeMobileRoaming() {
+ }
+
+ public static final int CONSTRUCTOR = -1435199760;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NetworkTypeWiFi extends NetworkType {
+ public NetworkTypeWiFi() {
+ }
+
+ public static final int CONSTRUCTOR = -633872070;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NetworkTypeOther extends NetworkType {
+ public NetworkTypeOther() {
+ }
+
+ public static final int CONSTRUCTOR = 1942128539;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NewChatPrivacySettings extends Object {
+
+ public boolean allowNewChatsFromUnknownUsers;
+
+ public NewChatPrivacySettings() {
+ }
+
+ public NewChatPrivacySettings(boolean allowNewChatsFromUnknownUsers) {
+ this.allowNewChatsFromUnknownUsers = allowNewChatsFromUnknownUsers;
+ }
+
+ public static final int CONSTRUCTOR = 1528154694;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Notification extends Object {
+
+ public int id;
+
+ public int date;
+
+ public boolean isSilent;
+
+ public NotificationType type;
+
+ public Notification() {
+ }
+
+ public Notification(int id, int date, boolean isSilent, NotificationType type) {
+ this.id = id;
+ this.date = date;
+ this.isSilent = isSilent;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 788743120;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationGroup extends Object {
+
+ public int id;
+
+ public NotificationGroupType type;
+
+ public long chatId;
+
+ public int totalCount;
+
+ public Notification[] notifications;
+
+ public NotificationGroup() {
+ }
+
+ public NotificationGroup(int id, NotificationGroupType type, long chatId, int totalCount, Notification[] notifications) {
+ this.id = id;
+ this.type = type;
+ this.chatId = chatId;
+ this.totalCount = totalCount;
+ this.notifications = notifications;
+ }
+
+ public static final int CONSTRUCTOR = 780691541;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class NotificationGroupType extends Object {
+
+ public NotificationGroupType() {
+ }
+ }
+
+ public static class NotificationGroupTypeMessages extends NotificationGroupType {
+ public NotificationGroupTypeMessages() {
+ }
+
+ public static final int CONSTRUCTOR = -1702481123;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationGroupTypeMentions extends NotificationGroupType {
+ public NotificationGroupTypeMentions() {
+ }
+
+ public static final int CONSTRUCTOR = -2050324051;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationGroupTypeSecretChat extends NotificationGroupType {
+ public NotificationGroupTypeSecretChat() {
+ }
+
+ public static final int CONSTRUCTOR = 1390759476;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationGroupTypeCalls extends NotificationGroupType {
+ public NotificationGroupTypeCalls() {
+ }
+
+ public static final int CONSTRUCTOR = 1379123538;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class NotificationSettingsScope extends Object {
+
+ public NotificationSettingsScope() {
+ }
+ }
+
+ public static class NotificationSettingsScopePrivateChats extends NotificationSettingsScope {
+ public NotificationSettingsScopePrivateChats() {
+ }
+
+ public static final int CONSTRUCTOR = 937446759;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationSettingsScopeGroupChats extends NotificationSettingsScope {
+ public NotificationSettingsScopeGroupChats() {
+ }
+
+ public static final int CONSTRUCTOR = 1212142067;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationSettingsScopeChannelChats extends NotificationSettingsScope {
+ public NotificationSettingsScopeChannelChats() {
+ }
+
+ public static final int CONSTRUCTOR = 548013448;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationSound extends Object {
+
+ public long id;
+
+ public int duration;
+
+ public int date;
+
+ public String title;
+
+ public String data;
+
+ public File sound;
+
+ public NotificationSound() {
+ }
+
+ public NotificationSound(long id, int duration, int date, String title, String data, File sound) {
+ this.id = id;
+ this.duration = duration;
+ this.date = date;
+ this.title = title;
+ this.data = data;
+ this.sound = sound;
+ }
+
+ public static final int CONSTRUCTOR = -185638601;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationSounds extends Object {
+
+ public NotificationSound[] notificationSounds;
+
+ public NotificationSounds() {
+ }
+
+ public NotificationSounds(NotificationSound[] notificationSounds) {
+ this.notificationSounds = notificationSounds;
+ }
+
+ public static final int CONSTRUCTOR = -630813169;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class NotificationType extends Object {
+
+ public NotificationType() {
+ }
+ }
+
+ public static class NotificationTypeNewMessage extends NotificationType {
+
+ public Message message;
+
+ public boolean showPreview;
+
+ public NotificationTypeNewMessage() {
+ }
+
+ public NotificationTypeNewMessage(Message message, boolean showPreview) {
+ this.message = message;
+ this.showPreview = showPreview;
+ }
+
+ public static final int CONSTRUCTOR = -254745614;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationTypeNewSecretChat extends NotificationType {
+ public NotificationTypeNewSecretChat() {
+ }
+
+ public static final int CONSTRUCTOR = 1198638768;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationTypeNewCall extends NotificationType {
+
+ public int callId;
+
+ public NotificationTypeNewCall() {
+ }
+
+ public NotificationTypeNewCall(int callId) {
+ this.callId = callId;
+ }
+
+ public static final int CONSTRUCTOR = 1712734585;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class NotificationTypeNewPushMessage extends NotificationType {
+
+ public long messageId;
+
+ public MessageSender senderId;
+
+ public String senderName;
+
+ public boolean isOutgoing;
+
+ public PushMessageContent content;
+
+ public NotificationTypeNewPushMessage() {
+ }
+
+ public NotificationTypeNewPushMessage(long messageId, MessageSender senderId, String senderName, boolean isOutgoing, PushMessageContent content) {
+ this.messageId = messageId;
+ this.senderId = senderId;
+ this.senderName = senderName;
+ this.isOutgoing = isOutgoing;
+ this.content = content;
+ }
+
+ public static final int CONSTRUCTOR = -711680462;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Ok extends Object {
+ public Ok() {
+ }
+
+ public static final int CONSTRUCTOR = -722616727;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class OptionValue extends Object {
+
+ public OptionValue() {
+ }
+ }
+
+ public static class OptionValueBoolean extends OptionValue {
+
+ public boolean value;
+
+ public OptionValueBoolean() {
+ }
+
+ public OptionValueBoolean(boolean value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = 63135518;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class OptionValueEmpty extends OptionValue {
+ public OptionValueEmpty() {
+ }
+
+ public static final int CONSTRUCTOR = 918955155;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class OptionValueInteger extends OptionValue {
+
+ public long value;
+
+ public OptionValueInteger() {
+ }
+
+ public OptionValueInteger(long value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = -186858780;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class OptionValueString extends OptionValue {
+
+ public String value;
+
+ public OptionValueString() {
+ }
+
+ public OptionValueString(String value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = 756248212;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class OrderInfo extends Object {
+
+ public String name;
+
+ public String phoneNumber;
+
+ public String emailAddress;
+
+ public Address shippingAddress;
+
+ public OrderInfo() {
+ }
+
+ public OrderInfo(String name, String phoneNumber, String emailAddress, Address shippingAddress) {
+ this.name = name;
+ this.phoneNumber = phoneNumber;
+ this.emailAddress = emailAddress;
+ this.shippingAddress = shippingAddress;
+ }
+
+ public static final int CONSTRUCTOR = 783997294;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Outline extends Object {
+
+ public ClosedVectorPath[] paths;
+
+ public Outline() {
+ }
+
+ public Outline(ClosedVectorPath[] paths) {
+ this.paths = paths;
+ }
+
+ public static final int CONSTRUCTOR = -161506702;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PageBlock extends Object {
+
+ public PageBlock() {
+ }
+ }
+
+ public static class PageBlockTitle extends PageBlock {
+
+ public RichText title;
+
+ public PageBlockTitle() {
+ }
+
+ public PageBlockTitle(RichText title) {
+ this.title = title;
+ }
+
+ public static final int CONSTRUCTOR = 1629664784;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockSubtitle extends PageBlock {
+
+ public RichText subtitle;
+
+ public PageBlockSubtitle() {
+ }
+
+ public PageBlockSubtitle(RichText subtitle) {
+ this.subtitle = subtitle;
+ }
+
+ public static final int CONSTRUCTOR = 264524263;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockAuthorDate extends PageBlock {
+
+ public RichText author;
+
+ public int publishDate;
+
+ public PageBlockAuthorDate() {
+ }
+
+ public PageBlockAuthorDate(RichText author, int publishDate) {
+ this.author = author;
+ this.publishDate = publishDate;
+ }
+
+ public static final int CONSTRUCTOR = 1300231184;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockHeader extends PageBlock {
+
+ public RichText header;
+
+ public PageBlockHeader() {
+ }
+
+ public PageBlockHeader(RichText header) {
+ this.header = header;
+ }
+
+ public static final int CONSTRUCTOR = 1402854811;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockSubheader extends PageBlock {
+
+ public RichText subheader;
+
+ public PageBlockSubheader() {
+ }
+
+ public PageBlockSubheader(RichText subheader) {
+ this.subheader = subheader;
+ }
+
+ public static final int CONSTRUCTOR = 1263956774;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockKicker extends PageBlock {
+
+ public RichText kicker;
+
+ public PageBlockKicker() {
+ }
+
+ public PageBlockKicker(RichText kicker) {
+ this.kicker = kicker;
+ }
+
+ public static final int CONSTRUCTOR = 1361282635;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockParagraph extends PageBlock {
+
+ public RichText text;
+
+ public PageBlockParagraph() {
+ }
+
+ public PageBlockParagraph(RichText text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = 1182402406;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockPreformatted extends PageBlock {
+
+ public RichText text;
+
+ public String language;
+
+ public PageBlockPreformatted() {
+ }
+
+ public PageBlockPreformatted(RichText text, String language) {
+ this.text = text;
+ this.language = language;
+ }
+
+ public static final int CONSTRUCTOR = -1066346178;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockFooter extends PageBlock {
+
+ public RichText footer;
+
+ public PageBlockFooter() {
+ }
+
+ public PageBlockFooter(RichText footer) {
+ this.footer = footer;
+ }
+
+ public static final int CONSTRUCTOR = 886429480;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockDivider extends PageBlock {
+ public PageBlockDivider() {
+ }
+
+ public static final int CONSTRUCTOR = -618614392;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockAnchor extends PageBlock {
+
+ public String name;
+
+ public PageBlockAnchor() {
+ }
+
+ public PageBlockAnchor(String name) {
+ this.name = name;
+ }
+
+ public static final int CONSTRUCTOR = -837994576;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockList extends PageBlock {
+
+ public PageBlockListItem[] items;
+
+ public PageBlockList() {
+ }
+
+ public PageBlockList(PageBlockListItem[] items) {
+ this.items = items;
+ }
+
+ public static final int CONSTRUCTOR = -1037074852;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockBlockQuote extends PageBlock {
+
+ public RichText text;
+
+ public RichText credit;
+
+ public PageBlockBlockQuote() {
+ }
+
+ public PageBlockBlockQuote(RichText text, RichText credit) {
+ this.text = text;
+ this.credit = credit;
+ }
+
+ public static final int CONSTRUCTOR = 1657834142;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockPullQuote extends PageBlock {
+
+ public RichText text;
+
+ public RichText credit;
+
+ public PageBlockPullQuote() {
+ }
+
+ public PageBlockPullQuote(RichText text, RichText credit) {
+ this.text = text;
+ this.credit = credit;
+ }
+
+ public static final int CONSTRUCTOR = 490242317;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockAnimation extends PageBlock {
+
+ public Animation animation;
+
+ public PageBlockCaption caption;
+
+ public boolean needAutoplay;
+
+ public PageBlockAnimation() {
+ }
+
+ public PageBlockAnimation(Animation animation, PageBlockCaption caption, boolean needAutoplay) {
+ this.animation = animation;
+ this.caption = caption;
+ this.needAutoplay = needAutoplay;
+ }
+
+ public static final int CONSTRUCTOR = 1355669513;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockAudio extends PageBlock {
+
+ public Audio audio;
+
+ public PageBlockCaption caption;
+
+ public PageBlockAudio() {
+ }
+
+ public PageBlockAudio(Audio audio, PageBlockCaption caption) {
+ this.audio = audio;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = -63371245;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockPhoto extends PageBlock {
+
+ public Photo photo;
+
+ public PageBlockCaption caption;
+
+ public String url;
+
+ public PageBlockPhoto() {
+ }
+
+ public PageBlockPhoto(Photo photo, PageBlockCaption caption, String url) {
+ this.photo = photo;
+ this.caption = caption;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 417601156;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockVideo extends PageBlock {
+
+ public Video video;
+
+ public PageBlockCaption caption;
+
+ public boolean needAutoplay;
+
+ public boolean isLooped;
+
+ public PageBlockVideo() {
+ }
+
+ public PageBlockVideo(Video video, PageBlockCaption caption, boolean needAutoplay, boolean isLooped) {
+ this.video = video;
+ this.caption = caption;
+ this.needAutoplay = needAutoplay;
+ this.isLooped = isLooped;
+ }
+
+ public static final int CONSTRUCTOR = 510041394;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockVoiceNote extends PageBlock {
+
+ public VoiceNote voiceNote;
+
+ public PageBlockCaption caption;
+
+ public PageBlockVoiceNote() {
+ }
+
+ public PageBlockVoiceNote(VoiceNote voiceNote, PageBlockCaption caption) {
+ this.voiceNote = voiceNote;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = 1823310463;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockCover extends PageBlock {
+
+ public PageBlock cover;
+
+ public PageBlockCover() {
+ }
+
+ public PageBlockCover(PageBlock cover) {
+ this.cover = cover;
+ }
+
+ public static final int CONSTRUCTOR = 972174080;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockEmbedded extends PageBlock {
+
+ public String url;
+
+ public String html;
+
+ public Photo posterPhoto;
+
+ public int width;
+
+ public int height;
+
+ public PageBlockCaption caption;
+
+ public boolean isFullWidth;
+
+ public boolean allowScrolling;
+
+ public PageBlockEmbedded() {
+ }
+
+ public PageBlockEmbedded(String url, String html, Photo posterPhoto, int width, int height, PageBlockCaption caption, boolean isFullWidth, boolean allowScrolling) {
+ this.url = url;
+ this.html = html;
+ this.posterPhoto = posterPhoto;
+ this.width = width;
+ this.height = height;
+ this.caption = caption;
+ this.isFullWidth = isFullWidth;
+ this.allowScrolling = allowScrolling;
+ }
+
+ public static final int CONSTRUCTOR = -1942577763;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockEmbeddedPost extends PageBlock {
+
+ public String url;
+
+ public String author;
+
+ public Photo authorPhoto;
+
+ public int date;
+
+ public PageBlock[] pageBlocks;
+
+ public PageBlockCaption caption;
+
+ public PageBlockEmbeddedPost() {
+ }
+
+ public PageBlockEmbeddedPost(String url, String author, Photo authorPhoto, int date, PageBlock[] pageBlocks, PageBlockCaption caption) {
+ this.url = url;
+ this.author = author;
+ this.authorPhoto = authorPhoto;
+ this.date = date;
+ this.pageBlocks = pageBlocks;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = 397600949;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockCollage extends PageBlock {
+
+ public PageBlock[] pageBlocks;
+
+ public PageBlockCaption caption;
+
+ public PageBlockCollage() {
+ }
+
+ public PageBlockCollage(PageBlock[] pageBlocks, PageBlockCaption caption) {
+ this.pageBlocks = pageBlocks;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = 1163760110;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockSlideshow extends PageBlock {
+
+ public PageBlock[] pageBlocks;
+
+ public PageBlockCaption caption;
+
+ public PageBlockSlideshow() {
+ }
+
+ public PageBlockSlideshow(PageBlock[] pageBlocks, PageBlockCaption caption) {
+ this.pageBlocks = pageBlocks;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = 539217375;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockChatLink extends PageBlock {
+
+ public String title;
+
+ public ChatPhotoInfo photo;
+
+ public int accentColorId;
+
+ public String username;
+
+ public PageBlockChatLink() {
+ }
+
+ public PageBlockChatLink(String title, ChatPhotoInfo photo, int accentColorId, String username) {
+ this.title = title;
+ this.photo = photo;
+ this.accentColorId = accentColorId;
+ this.username = username;
+ }
+
+ public static final int CONSTRUCTOR = 1646188731;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockTable extends PageBlock {
+
+ public RichText caption;
+
+ public PageBlockTableCell[][] cells;
+
+ public boolean isBordered;
+
+ public boolean isStriped;
+
+ public PageBlockTable() {
+ }
+
+ public PageBlockTable(RichText caption, PageBlockTableCell[][] cells, boolean isBordered, boolean isStriped) {
+ this.caption = caption;
+ this.cells = cells;
+ this.isBordered = isBordered;
+ this.isStriped = isStriped;
+ }
+
+ public static final int CONSTRUCTOR = -942649288;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockDetails extends PageBlock {
+
+ public RichText header;
+
+ public PageBlock[] pageBlocks;
+
+ public boolean isOpen;
+
+ public PageBlockDetails() {
+ }
+
+ public PageBlockDetails(RichText header, PageBlock[] pageBlocks, boolean isOpen) {
+ this.header = header;
+ this.pageBlocks = pageBlocks;
+ this.isOpen = isOpen;
+ }
+
+ public static final int CONSTRUCTOR = -1599869809;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockRelatedArticles extends PageBlock {
+
+ public RichText header;
+
+ public PageBlockRelatedArticle[] articles;
+
+ public PageBlockRelatedArticles() {
+ }
+
+ public PageBlockRelatedArticles(RichText header, PageBlockRelatedArticle[] articles) {
+ this.header = header;
+ this.articles = articles;
+ }
+
+ public static final int CONSTRUCTOR = -1807324374;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockMap extends PageBlock {
+
+ public Location location;
+
+ public int zoom;
+
+ public int width;
+
+ public int height;
+
+ public PageBlockCaption caption;
+
+ public PageBlockMap() {
+ }
+
+ public PageBlockMap(Location location, int zoom, int width, int height, PageBlockCaption caption) {
+ this.location = location;
+ this.zoom = zoom;
+ this.width = width;
+ this.height = height;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = 1510961171;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockCaption extends Object {
+
+ public RichText text;
+
+ public RichText credit;
+
+ public PageBlockCaption() {
+ }
+
+ public PageBlockCaption(RichText text, RichText credit) {
+ this.text = text;
+ this.credit = credit;
+ }
+
+ public static final int CONSTRUCTOR = -1180064650;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PageBlockHorizontalAlignment extends Object {
+
+ public PageBlockHorizontalAlignment() {
+ }
+ }
+
+ public static class PageBlockHorizontalAlignmentLeft extends PageBlockHorizontalAlignment {
+ public PageBlockHorizontalAlignmentLeft() {
+ }
+
+ public static final int CONSTRUCTOR = 848701417;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockHorizontalAlignmentCenter extends PageBlockHorizontalAlignment {
+ public PageBlockHorizontalAlignmentCenter() {
+ }
+
+ public static final int CONSTRUCTOR = -1009203990;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockHorizontalAlignmentRight extends PageBlockHorizontalAlignment {
+ public PageBlockHorizontalAlignmentRight() {
+ }
+
+ public static final int CONSTRUCTOR = 1371369214;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockListItem extends Object {
+
+ public String label;
+
+ public PageBlock[] pageBlocks;
+
+ public PageBlockListItem() {
+ }
+
+ public PageBlockListItem(String label, PageBlock[] pageBlocks) {
+ this.label = label;
+ this.pageBlocks = pageBlocks;
+ }
+
+ public static final int CONSTRUCTOR = 323186259;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockRelatedArticle extends Object {
+
+ public String url;
+
+ public String title;
+
+ public String description;
+
+ public Photo photo;
+
+ public String author;
+
+ public int publishDate;
+
+ public PageBlockRelatedArticle() {
+ }
+
+ public PageBlockRelatedArticle(String url, String title, String description, Photo photo, String author, int publishDate) {
+ this.url = url;
+ this.title = title;
+ this.description = description;
+ this.photo = photo;
+ this.author = author;
+ this.publishDate = publishDate;
+ }
+
+ public static final int CONSTRUCTOR = 481199251;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockTableCell extends Object {
+
+ public RichText text;
+
+ public boolean isHeader;
+
+ public int colspan;
+
+ public int rowspan;
+
+ public PageBlockHorizontalAlignment align;
+
+ public PageBlockVerticalAlignment valign;
+
+ public PageBlockTableCell() {
+ }
+
+ public PageBlockTableCell(RichText text, boolean isHeader, int colspan, int rowspan, PageBlockHorizontalAlignment align, PageBlockVerticalAlignment valign) {
+ this.text = text;
+ this.isHeader = isHeader;
+ this.colspan = colspan;
+ this.rowspan = rowspan;
+ this.align = align;
+ this.valign = valign;
+ }
+
+ public static final int CONSTRUCTOR = 1417658214;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PageBlockVerticalAlignment extends Object {
+
+ public PageBlockVerticalAlignment() {
+ }
+ }
+
+ public static class PageBlockVerticalAlignmentTop extends PageBlockVerticalAlignment {
+ public PageBlockVerticalAlignmentTop() {
+ }
+
+ public static final int CONSTRUCTOR = 195500454;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockVerticalAlignmentMiddle extends PageBlockVerticalAlignment {
+ public PageBlockVerticalAlignmentMiddle() {
+ }
+
+ public static final int CONSTRUCTOR = -2123096587;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PageBlockVerticalAlignmentBottom extends PageBlockVerticalAlignment {
+ public PageBlockVerticalAlignmentBottom() {
+ }
+
+ public static final int CONSTRUCTOR = 2092531158;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PaidMedia extends Object {
+
+ public PaidMedia() {
+ }
+ }
+
+ public static class PaidMediaPreview extends PaidMedia {
+
+ public int width;
+
+ public int height;
+
+ public int duration;
+
+ public Minithumbnail minithumbnail;
+
+ public PaidMediaPreview() {
+ }
+
+ public PaidMediaPreview(int width, int height, int duration, Minithumbnail minithumbnail) {
+ this.width = width;
+ this.height = height;
+ this.duration = duration;
+ this.minithumbnail = minithumbnail;
+ }
+
+ public static final int CONSTRUCTOR = -1128151948;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaidMediaPhoto extends PaidMedia {
+
+ public Photo photo;
+
+ public PaidMediaPhoto() {
+ }
+
+ public PaidMediaPhoto(Photo photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -1165863654;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaidMediaVideo extends PaidMedia {
+
+ public Video video;
+
+ public PaidMediaVideo() {
+ }
+
+ public PaidMediaVideo(Video video) {
+ this.video = video;
+ }
+
+ public static final int CONSTRUCTOR = 464858633;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaidMediaUnsupported extends PaidMedia {
+ public PaidMediaUnsupported() {
+ }
+
+ public static final int CONSTRUCTOR = 112999974;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaidReactor extends Object {
+
+ public MessageSender senderId;
+
+ public int starCount;
+
+ public boolean isTop;
+
+ public boolean isMe;
+
+ public boolean isAnonymous;
+
+ public PaidReactor() {
+ }
+
+ public PaidReactor(MessageSender senderId, int starCount, boolean isTop, boolean isMe, boolean isAnonymous) {
+ this.senderId = senderId;
+ this.starCount = starCount;
+ this.isTop = isTop;
+ this.isMe = isMe;
+ this.isAnonymous = isAnonymous;
+ }
+
+ public static final int CONSTRUCTOR = -1657303032;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportAuthorizationForm extends Object {
+
+ public int id;
+
+ public PassportRequiredElement[] requiredElements;
+
+ public String privacyPolicyUrl;
+
+ public PassportAuthorizationForm() {
+ }
+
+ public PassportAuthorizationForm(int id, PassportRequiredElement[] requiredElements, String privacyPolicyUrl) {
+ this.id = id;
+ this.requiredElements = requiredElements;
+ this.privacyPolicyUrl = privacyPolicyUrl;
+ }
+
+ public static final int CONSTRUCTOR = -1070673218;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PassportElement extends Object {
+
+ public PassportElement() {
+ }
+ }
+
+ public static class PassportElementPersonalDetails extends PassportElement {
+
+ public PersonalDetails personalDetails;
+
+ public PassportElementPersonalDetails() {
+ }
+
+ public PassportElementPersonalDetails(PersonalDetails personalDetails) {
+ this.personalDetails = personalDetails;
+ }
+
+ public static final int CONSTRUCTOR = 1217724035;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementPassport extends PassportElement {
+
+ public IdentityDocument passport;
+
+ public PassportElementPassport() {
+ }
+
+ public PassportElementPassport(IdentityDocument passport) {
+ this.passport = passport;
+ }
+
+ public static final int CONSTRUCTOR = -263985373;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementDriverLicense extends PassportElement {
+
+ public IdentityDocument driverLicense;
+
+ public PassportElementDriverLicense() {
+ }
+
+ public PassportElementDriverLicense(IdentityDocument driverLicense) {
+ this.driverLicense = driverLicense;
+ }
+
+ public static final int CONSTRUCTOR = 1643580589;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementIdentityCard extends PassportElement {
+
+ public IdentityDocument identityCard;
+
+ public PassportElementIdentityCard() {
+ }
+
+ public PassportElementIdentityCard(IdentityDocument identityCard) {
+ this.identityCard = identityCard;
+ }
+
+ public static final int CONSTRUCTOR = 2083775797;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementInternalPassport extends PassportElement {
+
+ public IdentityDocument internalPassport;
+
+ public PassportElementInternalPassport() {
+ }
+
+ public PassportElementInternalPassport(IdentityDocument internalPassport) {
+ this.internalPassport = internalPassport;
+ }
+
+ public static final int CONSTRUCTOR = 36220295;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementAddress extends PassportElement {
+
+ public Address address;
+
+ public PassportElementAddress() {
+ }
+
+ public PassportElementAddress(Address address) {
+ this.address = address;
+ }
+
+ public static final int CONSTRUCTOR = -782625232;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementUtilityBill extends PassportElement {
+
+ public PersonalDocument utilityBill;
+
+ public PassportElementUtilityBill() {
+ }
+
+ public PassportElementUtilityBill(PersonalDocument utilityBill) {
+ this.utilityBill = utilityBill;
+ }
+
+ public static final int CONSTRUCTOR = -234611246;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementBankStatement extends PassportElement {
+
+ public PersonalDocument bankStatement;
+
+ public PassportElementBankStatement() {
+ }
+
+ public PassportElementBankStatement(PersonalDocument bankStatement) {
+ this.bankStatement = bankStatement;
+ }
+
+ public static final int CONSTRUCTOR = -366464408;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementRentalAgreement extends PassportElement {
+
+ public PersonalDocument rentalAgreement;
+
+ public PassportElementRentalAgreement() {
+ }
+
+ public PassportElementRentalAgreement(PersonalDocument rentalAgreement) {
+ this.rentalAgreement = rentalAgreement;
+ }
+
+ public static final int CONSTRUCTOR = -290141400;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementPassportRegistration extends PassportElement {
+
+ public PersonalDocument passportRegistration;
+
+ public PassportElementPassportRegistration() {
+ }
+
+ public PassportElementPassportRegistration(PersonalDocument passportRegistration) {
+ this.passportRegistration = passportRegistration;
+ }
+
+ public static final int CONSTRUCTOR = 618323071;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTemporaryRegistration extends PassportElement {
+
+ public PersonalDocument temporaryRegistration;
+
+ public PassportElementTemporaryRegistration() {
+ }
+
+ public PassportElementTemporaryRegistration(PersonalDocument temporaryRegistration) {
+ this.temporaryRegistration = temporaryRegistration;
+ }
+
+ public static final int CONSTRUCTOR = 1237626864;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementPhoneNumber extends PassportElement {
+
+ public String phoneNumber;
+
+ public PassportElementPhoneNumber() {
+ }
+
+ public PassportElementPhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ }
+
+ public static final int CONSTRUCTOR = -1320118375;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementEmailAddress extends PassportElement {
+
+ public String emailAddress;
+
+ public PassportElementEmailAddress() {
+ }
+
+ public PassportElementEmailAddress(String emailAddress) {
+ this.emailAddress = emailAddress;
+ }
+
+ public static final int CONSTRUCTOR = -1528129531;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementError extends Object {
+
+ public PassportElementType type;
+
+ public String message;
+
+ public PassportElementErrorSource source;
+
+ public PassportElementError() {
+ }
+
+ public PassportElementError(PassportElementType type, String message, PassportElementErrorSource source) {
+ this.type = type;
+ this.message = message;
+ this.source = source;
+ }
+
+ public static final int CONSTRUCTOR = -1861902395;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PassportElementErrorSource extends Object {
+
+ public PassportElementErrorSource() {
+ }
+ }
+
+ public static class PassportElementErrorSourceUnspecified extends PassportElementErrorSource {
+ public PassportElementErrorSourceUnspecified() {
+ }
+
+ public static final int CONSTRUCTOR = -378320830;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementErrorSourceDataField extends PassportElementErrorSource {
+
+ public String fieldName;
+
+ public PassportElementErrorSourceDataField() {
+ }
+
+ public PassportElementErrorSourceDataField(String fieldName) {
+ this.fieldName = fieldName;
+ }
+
+ public static final int CONSTRUCTOR = -308650776;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementErrorSourceFrontSide extends PassportElementErrorSource {
+ public PassportElementErrorSourceFrontSide() {
+ }
+
+ public static final int CONSTRUCTOR = 1895658292;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementErrorSourceReverseSide extends PassportElementErrorSource {
+ public PassportElementErrorSourceReverseSide() {
+ }
+
+ public static final int CONSTRUCTOR = 1918630391;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementErrorSourceSelfie extends PassportElementErrorSource {
+ public PassportElementErrorSourceSelfie() {
+ }
+
+ public static final int CONSTRUCTOR = -797043672;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementErrorSourceTranslationFile extends PassportElementErrorSource {
+
+ public int fileIndex;
+
+ public PassportElementErrorSourceTranslationFile() {
+ }
+
+ public PassportElementErrorSourceTranslationFile(int fileIndex) {
+ this.fileIndex = fileIndex;
+ }
+
+ public static final int CONSTRUCTOR = -689621228;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementErrorSourceTranslationFiles extends PassportElementErrorSource {
+ public PassportElementErrorSourceTranslationFiles() {
+ }
+
+ public static final int CONSTRUCTOR = 581280796;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementErrorSourceFile extends PassportElementErrorSource {
+
+ public int fileIndex;
+
+ public PassportElementErrorSourceFile() {
+ }
+
+ public PassportElementErrorSourceFile(int fileIndex) {
+ this.fileIndex = fileIndex;
+ }
+
+ public static final int CONSTRUCTOR = 2020358960;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementErrorSourceFiles extends PassportElementErrorSource {
+ public PassportElementErrorSourceFiles() {
+ }
+
+ public static final int CONSTRUCTOR = 1894164178;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PassportElementType extends Object {
+
+ public PassportElementType() {
+ }
+ }
+
+ public static class PassportElementTypePersonalDetails extends PassportElementType {
+ public PassportElementTypePersonalDetails() {
+ }
+
+ public static final int CONSTRUCTOR = -1032136365;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypePassport extends PassportElementType {
+ public PassportElementTypePassport() {
+ }
+
+ public static final int CONSTRUCTOR = -436360376;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypeDriverLicense extends PassportElementType {
+ public PassportElementTypeDriverLicense() {
+ }
+
+ public static final int CONSTRUCTOR = 1827298379;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypeIdentityCard extends PassportElementType {
+ public PassportElementTypeIdentityCard() {
+ }
+
+ public static final int CONSTRUCTOR = -502356132;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypeInternalPassport extends PassportElementType {
+ public PassportElementTypeInternalPassport() {
+ }
+
+ public static final int CONSTRUCTOR = -793781959;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypeAddress extends PassportElementType {
+ public PassportElementTypeAddress() {
+ }
+
+ public static final int CONSTRUCTOR = 496327874;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypeUtilityBill extends PassportElementType {
+ public PassportElementTypeUtilityBill() {
+ }
+
+ public static final int CONSTRUCTOR = 627084906;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypeBankStatement extends PassportElementType {
+ public PassportElementTypeBankStatement() {
+ }
+
+ public static final int CONSTRUCTOR = 574095667;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypeRentalAgreement extends PassportElementType {
+ public PassportElementTypeRentalAgreement() {
+ }
+
+ public static final int CONSTRUCTOR = -2060583280;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypePassportRegistration extends PassportElementType {
+ public PassportElementTypePassportRegistration() {
+ }
+
+ public static final int CONSTRUCTOR = -159478209;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypeTemporaryRegistration extends PassportElementType {
+ public PassportElementTypeTemporaryRegistration() {
+ }
+
+ public static final int CONSTRUCTOR = 1092498527;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypePhoneNumber extends PassportElementType {
+ public PassportElementTypePhoneNumber() {
+ }
+
+ public static final int CONSTRUCTOR = -995361172;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementTypeEmailAddress extends PassportElementType {
+ public PassportElementTypeEmailAddress() {
+ }
+
+ public static final int CONSTRUCTOR = -79321405;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElements extends Object {
+
+ public PassportElement[] elements;
+
+ public PassportElements() {
+ }
+
+ public PassportElements(PassportElement[] elements) {
+ this.elements = elements;
+ }
+
+ public static final int CONSTRUCTOR = 1264617556;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportElementsWithErrors extends Object {
+
+ public PassportElement[] elements;
+
+ public PassportElementError[] errors;
+
+ public PassportElementsWithErrors() {
+ }
+
+ public PassportElementsWithErrors(PassportElement[] elements, PassportElementError[] errors) {
+ this.elements = elements;
+ this.errors = errors;
+ }
+
+ public static final int CONSTRUCTOR = 1308923044;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportRequiredElement extends Object {
+
+ public PassportSuitableElement[] suitableElements;
+
+ public PassportRequiredElement() {
+ }
+
+ public PassportRequiredElement(PassportSuitableElement[] suitableElements) {
+ this.suitableElements = suitableElements;
+ }
+
+ public static final int CONSTRUCTOR = -1983641651;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PassportSuitableElement extends Object {
+
+ public PassportElementType type;
+
+ public boolean isSelfieRequired;
+
+ public boolean isTranslationRequired;
+
+ public boolean isNativeNameRequired;
+
+ public PassportSuitableElement() {
+ }
+
+ public PassportSuitableElement(PassportElementType type, boolean isSelfieRequired, boolean isTranslationRequired, boolean isNativeNameRequired) {
+ this.type = type;
+ this.isSelfieRequired = isSelfieRequired;
+ this.isTranslationRequired = isTranslationRequired;
+ this.isNativeNameRequired = isNativeNameRequired;
+ }
+
+ public static final int CONSTRUCTOR = -789019876;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PasswordState extends Object {
+
+ public boolean hasPassword;
+
+ public String passwordHint;
+
+ public boolean hasRecoveryEmailAddress;
+
+ public boolean hasPassportData;
+
+ public EmailAddressAuthenticationCodeInfo recoveryEmailAddressCodeInfo;
+
+ public String loginEmailAddressPattern;
+
+ public int pendingResetDate;
+
+ public PasswordState() {
+ }
+
+ public PasswordState(boolean hasPassword, String passwordHint, boolean hasRecoveryEmailAddress, boolean hasPassportData, EmailAddressAuthenticationCodeInfo recoveryEmailAddressCodeInfo, String loginEmailAddressPattern, int pendingResetDate) {
+ this.hasPassword = hasPassword;
+ this.passwordHint = passwordHint;
+ this.hasRecoveryEmailAddress = hasRecoveryEmailAddress;
+ this.hasPassportData = hasPassportData;
+ this.recoveryEmailAddressCodeInfo = recoveryEmailAddressCodeInfo;
+ this.loginEmailAddressPattern = loginEmailAddressPattern;
+ this.pendingResetDate = pendingResetDate;
+ }
+
+ public static final int CONSTRUCTOR = 483801128;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaymentForm extends Object {
+
+ public long id;
+
+ public PaymentFormType type;
+
+ public long sellerBotUserId;
+
+ public ProductInfo productInfo;
+
+ public PaymentForm() {
+ }
+
+ public PaymentForm(long id, PaymentFormType type, long sellerBotUserId, ProductInfo productInfo) {
+ this.id = id;
+ this.type = type;
+ this.sellerBotUserId = sellerBotUserId;
+ this.productInfo = productInfo;
+ }
+
+ public static final int CONSTRUCTOR = 1998651315;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PaymentFormType extends Object {
+
+ public PaymentFormType() {
+ }
+ }
+
+ public static class PaymentFormTypeRegular extends PaymentFormType {
+
+ public Invoice invoice;
+
+ public long paymentProviderUserId;
+
+ public PaymentProvider paymentProvider;
+
+ public PaymentOption[] additionalPaymentOptions;
+
+ public OrderInfo savedOrderInfo;
+
+ public SavedCredentials[] savedCredentials;
+
+ public boolean canSaveCredentials;
+
+ public boolean needPassword;
+
+ public PaymentFormTypeRegular() {
+ }
+
+ public PaymentFormTypeRegular(Invoice invoice, long paymentProviderUserId, PaymentProvider paymentProvider, PaymentOption[] additionalPaymentOptions, OrderInfo savedOrderInfo, SavedCredentials[] savedCredentials, boolean canSaveCredentials, boolean needPassword) {
+ this.invoice = invoice;
+ this.paymentProviderUserId = paymentProviderUserId;
+ this.paymentProvider = paymentProvider;
+ this.additionalPaymentOptions = additionalPaymentOptions;
+ this.savedOrderInfo = savedOrderInfo;
+ this.savedCredentials = savedCredentials;
+ this.canSaveCredentials = canSaveCredentials;
+ this.needPassword = needPassword;
+ }
+
+ public static final int CONSTRUCTOR = -615089778;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaymentFormTypeStars extends PaymentFormType {
+
+ public long starCount;
+
+ public PaymentFormTypeStars() {
+ }
+
+ public PaymentFormTypeStars(long starCount) {
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = 90938685;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaymentFormTypeStarSubscription extends PaymentFormType {
+
+ public StarSubscriptionPricing pricing;
+
+ public PaymentFormTypeStarSubscription() {
+ }
+
+ public PaymentFormTypeStarSubscription(StarSubscriptionPricing pricing) {
+ this.pricing = pricing;
+ }
+
+ public static final int CONSTRUCTOR = 271444827;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaymentOption extends Object {
+
+ public String title;
+
+ public String url;
+
+ public PaymentOption() {
+ }
+
+ public PaymentOption(String title, String url) {
+ this.title = title;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -294020965;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PaymentProvider extends Object {
+
+ public PaymentProvider() {
+ }
+ }
+
+ public static class PaymentProviderSmartGlocal extends PaymentProvider {
+
+ public String publicToken;
+
+ public String tokenizeUrl;
+
+ public PaymentProviderSmartGlocal() {
+ }
+
+ public PaymentProviderSmartGlocal(String publicToken, String tokenizeUrl) {
+ this.publicToken = publicToken;
+ this.tokenizeUrl = tokenizeUrl;
+ }
+
+ public static final int CONSTRUCTOR = -1174112396;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaymentProviderStripe extends PaymentProvider {
+
+ public String publishableKey;
+
+ public boolean needCountry;
+
+ public boolean needPostalCode;
+
+ public boolean needCardholderName;
+
+ public PaymentProviderStripe() {
+ }
+
+ public PaymentProviderStripe(String publishableKey, boolean needCountry, boolean needPostalCode, boolean needCardholderName) {
+ this.publishableKey = publishableKey;
+ this.needCountry = needCountry;
+ this.needPostalCode = needPostalCode;
+ this.needCardholderName = needCardholderName;
+ }
+
+ public static final int CONSTRUCTOR = 370467227;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaymentProviderOther extends PaymentProvider {
+
+ public String url;
+
+ public PaymentProviderOther() {
+ }
+
+ public PaymentProviderOther(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -1336876828;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaymentReceipt extends Object {
+
+ public ProductInfo productInfo;
+
+ public int date;
+
+ public long sellerBotUserId;
+
+ public PaymentReceiptType type;
+
+ public PaymentReceipt() {
+ }
+
+ public PaymentReceipt(ProductInfo productInfo, int date, long sellerBotUserId, PaymentReceiptType type) {
+ this.productInfo = productInfo;
+ this.date = date;
+ this.sellerBotUserId = sellerBotUserId;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 758199186;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PaymentReceiptType extends Object {
+
+ public PaymentReceiptType() {
+ }
+ }
+
+ public static class PaymentReceiptTypeRegular extends PaymentReceiptType {
+
+ public long paymentProviderUserId;
+
+ public Invoice invoice;
+
+ public OrderInfo orderInfo;
+
+ public ShippingOption shippingOption;
+
+ public String credentialsTitle;
+
+ public long tipAmount;
+
+ public PaymentReceiptTypeRegular() {
+ }
+
+ public PaymentReceiptTypeRegular(long paymentProviderUserId, Invoice invoice, OrderInfo orderInfo, ShippingOption shippingOption, String credentialsTitle, long tipAmount) {
+ this.paymentProviderUserId = paymentProviderUserId;
+ this.invoice = invoice;
+ this.orderInfo = orderInfo;
+ this.shippingOption = shippingOption;
+ this.credentialsTitle = credentialsTitle;
+ this.tipAmount = tipAmount;
+ }
+
+ public static final int CONSTRUCTOR = -1636362826;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaymentReceiptTypeStars extends PaymentReceiptType {
+
+ public long starCount;
+
+ public String transactionId;
+
+ public PaymentReceiptTypeStars() {
+ }
+
+ public PaymentReceiptTypeStars(long starCount, String transactionId) {
+ this.starCount = starCount;
+ this.transactionId = transactionId;
+ }
+
+ public static final int CONSTRUCTOR = 294913868;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PaymentResult extends Object {
+
+ public boolean success;
+
+ public String verificationUrl;
+
+ public PaymentResult() {
+ }
+
+ public PaymentResult(boolean success, String verificationUrl) {
+ this.success = success;
+ this.verificationUrl = verificationUrl;
+ }
+
+ public static final int CONSTRUCTOR = -804263843;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PersonalDetails extends Object {
+
+ public String firstName;
+
+ public String middleName;
+
+ public String lastName;
+
+ public String nativeFirstName;
+
+ public String nativeMiddleName;
+
+ public String nativeLastName;
+
+ public Date birthdate;
+
+ public String gender;
+
+ public String countryCode;
+
+ public String residenceCountryCode;
+
+ public PersonalDetails() {
+ }
+
+ public PersonalDetails(String firstName, String middleName, String lastName, String nativeFirstName, String nativeMiddleName, String nativeLastName, Date birthdate, String gender, String countryCode, String residenceCountryCode) {
+ this.firstName = firstName;
+ this.middleName = middleName;
+ this.lastName = lastName;
+ this.nativeFirstName = nativeFirstName;
+ this.nativeMiddleName = nativeMiddleName;
+ this.nativeLastName = nativeLastName;
+ this.birthdate = birthdate;
+ this.gender = gender;
+ this.countryCode = countryCode;
+ this.residenceCountryCode = residenceCountryCode;
+ }
+
+ public static final int CONSTRUCTOR = -1061656137;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PersonalDocument extends Object {
+
+ public DatedFile[] files;
+
+ public DatedFile[] translation;
+
+ public PersonalDocument() {
+ }
+
+ public PersonalDocument(DatedFile[] files, DatedFile[] translation) {
+ this.files = files;
+ this.translation = translation;
+ }
+
+ public static final int CONSTRUCTOR = -1011634661;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PhoneNumberAuthenticationSettings extends Object {
+
+ public boolean allowFlashCall;
+
+ public boolean allowMissedCall;
+
+ public boolean isCurrentPhoneNumber;
+
+ public boolean hasUnknownPhoneNumber;
+
+ public boolean allowSmsRetrieverApi;
+
+ public FirebaseAuthenticationSettings firebaseAuthenticationSettings;
+
+ public String[] authenticationTokens;
+
+ public PhoneNumberAuthenticationSettings() {
+ }
+
+ public PhoneNumberAuthenticationSettings(boolean allowFlashCall, boolean allowMissedCall, boolean isCurrentPhoneNumber, boolean hasUnknownPhoneNumber, boolean allowSmsRetrieverApi, FirebaseAuthenticationSettings firebaseAuthenticationSettings, String[] authenticationTokens) {
+ this.allowFlashCall = allowFlashCall;
+ this.allowMissedCall = allowMissedCall;
+ this.isCurrentPhoneNumber = isCurrentPhoneNumber;
+ this.hasUnknownPhoneNumber = hasUnknownPhoneNumber;
+ this.allowSmsRetrieverApi = allowSmsRetrieverApi;
+ this.firebaseAuthenticationSettings = firebaseAuthenticationSettings;
+ this.authenticationTokens = authenticationTokens;
+ }
+
+ public static final int CONSTRUCTOR = 1881885547;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PhoneNumberCodeType extends Object {
+
+ public PhoneNumberCodeType() {
+ }
+ }
+
+ public static class PhoneNumberCodeTypeChange extends PhoneNumberCodeType {
+ public PhoneNumberCodeTypeChange() {
+ }
+
+ public static final int CONSTRUCTOR = 87144986;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PhoneNumberCodeTypeVerify extends PhoneNumberCodeType {
+ public PhoneNumberCodeTypeVerify() {
+ }
+
+ public static final int CONSTRUCTOR = -1029402661;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PhoneNumberCodeTypeConfirmOwnership extends PhoneNumberCodeType {
+
+ public String hash;
+
+ public PhoneNumberCodeTypeConfirmOwnership() {
+ }
+
+ public PhoneNumberCodeTypeConfirmOwnership(String hash) {
+ this.hash = hash;
+ }
+
+ public static final int CONSTRUCTOR = -485404696;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PhoneNumberInfo extends Object {
+
+ public CountryInfo country;
+
+ public String countryCallingCode;
+
+ public String formattedPhoneNumber;
+
+ public boolean isAnonymous;
+
+ public PhoneNumberInfo() {
+ }
+
+ public PhoneNumberInfo(CountryInfo country, String countryCallingCode, String formattedPhoneNumber, boolean isAnonymous) {
+ this.country = country;
+ this.countryCallingCode = countryCallingCode;
+ this.formattedPhoneNumber = formattedPhoneNumber;
+ this.isAnonymous = isAnonymous;
+ }
+
+ public static final int CONSTRUCTOR = -758933343;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Photo extends Object {
+
+ public boolean hasStickers;
+
+ public Minithumbnail minithumbnail;
+
+ public PhotoSize[] sizes;
+
+ public Photo() {
+ }
+
+ public Photo(boolean hasStickers, Minithumbnail minithumbnail, PhotoSize[] sizes) {
+ this.hasStickers = hasStickers;
+ this.minithumbnail = minithumbnail;
+ this.sizes = sizes;
+ }
+
+ public static final int CONSTRUCTOR = -2022871583;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PhotoSize extends Object {
+
+ public String type;
+
+ public File photo;
+
+ public int width;
+
+ public int height;
+
+ public int[] progressiveSizes;
+
+ public PhotoSize() {
+ }
+
+ public PhotoSize(String type, File photo, int width, int height, int[] progressiveSizes) {
+ this.type = type;
+ this.photo = photo;
+ this.width = width;
+ this.height = height;
+ this.progressiveSizes = progressiveSizes;
+ }
+
+ public static final int CONSTRUCTOR = 1609182352;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Point extends Object {
+
+ public double x;
+
+ public double y;
+
+ public Point() {
+ }
+
+ public Point(double x, double y) {
+ this.x = x;
+ this.y = y;
+ }
+
+ public static final int CONSTRUCTOR = 437515705;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Poll extends Object {
+
+ public long id;
+
+ public FormattedText question;
+
+ public PollOption[] options;
+
+ public int totalVoterCount;
+
+ public MessageSender[] recentVoterIds;
+
+ public boolean isAnonymous;
+
+ public PollType type;
+
+ public int openPeriod;
+
+ public int closeDate;
+
+ public boolean isClosed;
+
+ public Poll() {
+ }
+
+ public Poll(long id, FormattedText question, PollOption[] options, int totalVoterCount, MessageSender[] recentVoterIds, boolean isAnonymous, PollType type, int openPeriod, int closeDate, boolean isClosed) {
+ this.id = id;
+ this.question = question;
+ this.options = options;
+ this.totalVoterCount = totalVoterCount;
+ this.recentVoterIds = recentVoterIds;
+ this.isAnonymous = isAnonymous;
+ this.type = type;
+ this.openPeriod = openPeriod;
+ this.closeDate = closeDate;
+ this.isClosed = isClosed;
+ }
+
+ public static final int CONSTRUCTOR = 1913016502;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PollOption extends Object {
+
+ public FormattedText text;
+
+ public int voterCount;
+
+ public int votePercentage;
+
+ public boolean isChosen;
+
+ public boolean isBeingChosen;
+
+ public PollOption() {
+ }
+
+ public PollOption(FormattedText text, int voterCount, int votePercentage, boolean isChosen, boolean isBeingChosen) {
+ this.text = text;
+ this.voterCount = voterCount;
+ this.votePercentage = votePercentage;
+ this.isChosen = isChosen;
+ this.isBeingChosen = isBeingChosen;
+ }
+
+ public static final int CONSTRUCTOR = 1676243088;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PollType extends Object {
+
+ public PollType() {
+ }
+ }
+
+ public static class PollTypeRegular extends PollType {
+
+ public boolean allowMultipleAnswers;
+
+ public PollTypeRegular() {
+ }
+
+ public PollTypeRegular(boolean allowMultipleAnswers) {
+ this.allowMultipleAnswers = allowMultipleAnswers;
+ }
+
+ public static final int CONSTRUCTOR = 641265698;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PollTypeQuiz extends PollType {
+
+ public int correctOptionId;
+
+ public FormattedText explanation;
+
+ public PollTypeQuiz() {
+ }
+
+ public PollTypeQuiz(int correctOptionId, FormattedText explanation) {
+ this.correctOptionId = correctOptionId;
+ this.explanation = explanation;
+ }
+
+ public static final int CONSTRUCTOR = 657013913;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PremiumFeature extends Object {
+
+ public PremiumFeature() {
+ }
+ }
+
+ public static class PremiumFeatureIncreasedLimits extends PremiumFeature {
+ public PremiumFeatureIncreasedLimits() {
+ }
+
+ public static final int CONSTRUCTOR = 1785455031;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureIncreasedUploadFileSize extends PremiumFeature {
+ public PremiumFeatureIncreasedUploadFileSize() {
+ }
+
+ public static final int CONSTRUCTOR = 1825367155;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureImprovedDownloadSpeed extends PremiumFeature {
+ public PremiumFeatureImprovedDownloadSpeed() {
+ }
+
+ public static final int CONSTRUCTOR = -267695554;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureVoiceRecognition extends PremiumFeature {
+ public PremiumFeatureVoiceRecognition() {
+ }
+
+ public static final int CONSTRUCTOR = 1288216542;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureDisabledAds extends PremiumFeature {
+ public PremiumFeatureDisabledAds() {
+ }
+
+ public static final int CONSTRUCTOR = -2008587702;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureUniqueReactions extends PremiumFeature {
+ public PremiumFeatureUniqueReactions() {
+ }
+
+ public static final int CONSTRUCTOR = 766750743;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureUniqueStickers extends PremiumFeature {
+ public PremiumFeatureUniqueStickers() {
+ }
+
+ public static final int CONSTRUCTOR = -2101773312;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureCustomEmoji extends PremiumFeature {
+ public PremiumFeatureCustomEmoji() {
+ }
+
+ public static final int CONSTRUCTOR = 1332599628;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureAdvancedChatManagement extends PremiumFeature {
+ public PremiumFeatureAdvancedChatManagement() {
+ }
+
+ public static final int CONSTRUCTOR = 796347674;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureProfileBadge extends PremiumFeature {
+ public PremiumFeatureProfileBadge() {
+ }
+
+ public static final int CONSTRUCTOR = 233648322;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureEmojiStatus extends PremiumFeature {
+ public PremiumFeatureEmojiStatus() {
+ }
+
+ public static final int CONSTRUCTOR = -36516639;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureAnimatedProfilePhoto extends PremiumFeature {
+ public PremiumFeatureAnimatedProfilePhoto() {
+ }
+
+ public static final int CONSTRUCTOR = -100741914;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureForumTopicIcon extends PremiumFeature {
+ public PremiumFeatureForumTopicIcon() {
+ }
+
+ public static final int CONSTRUCTOR = -823172286;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureAppIcons extends PremiumFeature {
+ public PremiumFeatureAppIcons() {
+ }
+
+ public static final int CONSTRUCTOR = 1585050761;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureRealTimeChatTranslation extends PremiumFeature {
+ public PremiumFeatureRealTimeChatTranslation() {
+ }
+
+ public static final int CONSTRUCTOR = -1143471488;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureUpgradedStories extends PremiumFeature {
+ public PremiumFeatureUpgradedStories() {
+ }
+
+ public static final int CONSTRUCTOR = -1878522597;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureChatBoost extends PremiumFeature {
+ public PremiumFeatureChatBoost() {
+ }
+
+ public static final int CONSTRUCTOR = 1576574747;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureAccentColor extends PremiumFeature {
+ public PremiumFeatureAccentColor() {
+ }
+
+ public static final int CONSTRUCTOR = 907724190;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureBackgroundForBoth extends PremiumFeature {
+ public PremiumFeatureBackgroundForBoth() {
+ }
+
+ public static final int CONSTRUCTOR = 575074042;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureSavedMessagesTags extends PremiumFeature {
+ public PremiumFeatureSavedMessagesTags() {
+ }
+
+ public static final int CONSTRUCTOR = 1003219334;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureMessagePrivacy extends PremiumFeature {
+ public PremiumFeatureMessagePrivacy() {
+ }
+
+ public static final int CONSTRUCTOR = 802322678;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureLastSeenTimes extends PremiumFeature {
+ public PremiumFeatureLastSeenTimes() {
+ }
+
+ public static final int CONSTRUCTOR = -762230129;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureBusiness extends PremiumFeature {
+ public PremiumFeatureBusiness() {
+ }
+
+ public static final int CONSTRUCTOR = -1503619324;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatureMessageEffects extends PremiumFeature {
+ public PremiumFeatureMessageEffects() {
+ }
+
+ public static final int CONSTRUCTOR = -723300255;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeaturePromotionAnimation extends Object {
+
+ public PremiumFeature feature;
+
+ public Animation animation;
+
+ public PremiumFeaturePromotionAnimation() {
+ }
+
+ public PremiumFeaturePromotionAnimation(PremiumFeature feature, Animation animation) {
+ this.feature = feature;
+ this.animation = animation;
+ }
+
+ public static final int CONSTRUCTOR = -1986155748;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumFeatures extends Object {
+
+ public PremiumFeature[] features;
+
+ public PremiumLimit[] limits;
+
+ public InternalLinkType paymentLink;
+
+ public PremiumFeatures() {
+ }
+
+ public PremiumFeatures(PremiumFeature[] features, PremiumLimit[] limits, InternalLinkType paymentLink) {
+ this.features = features;
+ this.limits = limits;
+ this.paymentLink = paymentLink;
+ }
+
+ public static final int CONSTRUCTOR = 1875162172;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumGiftCodeInfo extends Object {
+
+ public MessageSender creatorId;
+
+ public int creationDate;
+
+ public boolean isFromGiveaway;
+
+ public long giveawayMessageId;
+
+ public int monthCount;
+
+ public long userId;
+
+ public int useDate;
+
+ public PremiumGiftCodeInfo() {
+ }
+
+ public PremiumGiftCodeInfo(MessageSender creatorId, int creationDate, boolean isFromGiveaway, long giveawayMessageId, int monthCount, long userId, int useDate) {
+ this.creatorId = creatorId;
+ this.creationDate = creationDate;
+ this.isFromGiveaway = isFromGiveaway;
+ this.giveawayMessageId = giveawayMessageId;
+ this.monthCount = monthCount;
+ this.userId = userId;
+ this.useDate = useDate;
+ }
+
+ public static final int CONSTRUCTOR = -1198544674;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumGiftCodePaymentOption extends Object {
+
+ public String currency;
+
+ public long amount;
+
+ public int discountPercentage;
+
+ public int winnerCount;
+
+ public int monthCount;
+
+ public String storeProductId;
+
+ public int storeProductQuantity;
+
+ public Sticker sticker;
+
+ public PremiumGiftCodePaymentOption() {
+ }
+
+ public PremiumGiftCodePaymentOption(String currency, long amount, int discountPercentage, int winnerCount, int monthCount, String storeProductId, int storeProductQuantity, Sticker sticker) {
+ this.currency = currency;
+ this.amount = amount;
+ this.discountPercentage = discountPercentage;
+ this.winnerCount = winnerCount;
+ this.monthCount = monthCount;
+ this.storeProductId = storeProductId;
+ this.storeProductQuantity = storeProductQuantity;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -661038611;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumGiftCodePaymentOptions extends Object {
+
+ public PremiumGiftCodePaymentOption[] options;
+
+ public PremiumGiftCodePaymentOptions() {
+ }
+
+ public PremiumGiftCodePaymentOptions(PremiumGiftCodePaymentOption[] options) {
+ this.options = options;
+ }
+
+ public static final int CONSTRUCTOR = -1141866719;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimit extends Object {
+
+ public PremiumLimitType type;
+
+ public int defaultValue;
+
+ public int premiumValue;
+
+ public PremiumLimit() {
+ }
+
+ public PremiumLimit(PremiumLimitType type, int defaultValue, int premiumValue) {
+ this.type = type;
+ this.defaultValue = defaultValue;
+ this.premiumValue = premiumValue;
+ }
+
+ public static final int CONSTRUCTOR = 2127786726;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PremiumLimitType extends Object {
+
+ public PremiumLimitType() {
+ }
+ }
+
+ public static class PremiumLimitTypeSupergroupCount extends PremiumLimitType {
+ public PremiumLimitTypeSupergroupCount() {
+ }
+
+ public static final int CONSTRUCTOR = -247467131;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypePinnedChatCount extends PremiumLimitType {
+ public PremiumLimitTypePinnedChatCount() {
+ }
+
+ public static final int CONSTRUCTOR = -998947871;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeCreatedPublicChatCount extends PremiumLimitType {
+ public PremiumLimitTypeCreatedPublicChatCount() {
+ }
+
+ public static final int CONSTRUCTOR = 446086841;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeSavedAnimationCount extends PremiumLimitType {
+ public PremiumLimitTypeSavedAnimationCount() {
+ }
+
+ public static final int CONSTRUCTOR = -19759735;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeFavoriteStickerCount extends PremiumLimitType {
+ public PremiumLimitTypeFavoriteStickerCount() {
+ }
+
+ public static final int CONSTRUCTOR = 639754787;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeChatFolderCount extends PremiumLimitType {
+ public PremiumLimitTypeChatFolderCount() {
+ }
+
+ public static final int CONSTRUCTOR = 377489774;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeChatFolderChosenChatCount extends PremiumLimitType {
+ public PremiumLimitTypeChatFolderChosenChatCount() {
+ }
+
+ public static final int CONSTRUCTOR = 1691435861;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypePinnedArchivedChatCount extends PremiumLimitType {
+ public PremiumLimitTypePinnedArchivedChatCount() {
+ }
+
+ public static final int CONSTRUCTOR = 1485515276;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypePinnedSavedMessagesTopicCount extends PremiumLimitType {
+ public PremiumLimitTypePinnedSavedMessagesTopicCount() {
+ }
+
+ public static final int CONSTRUCTOR = -1544854305;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeCaptionLength extends PremiumLimitType {
+ public PremiumLimitTypeCaptionLength() {
+ }
+
+ public static final int CONSTRUCTOR = 293984314;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeBioLength extends PremiumLimitType {
+ public PremiumLimitTypeBioLength() {
+ }
+
+ public static final int CONSTRUCTOR = -1146976765;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeChatFolderInviteLinkCount extends PremiumLimitType {
+ public PremiumLimitTypeChatFolderInviteLinkCount() {
+ }
+
+ public static final int CONSTRUCTOR = -128702950;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeShareableChatFolderCount extends PremiumLimitType {
+ public PremiumLimitTypeShareableChatFolderCount() {
+ }
+
+ public static final int CONSTRUCTOR = 1612625095;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeActiveStoryCount extends PremiumLimitType {
+ public PremiumLimitTypeActiveStoryCount() {
+ }
+
+ public static final int CONSTRUCTOR = -1926486372;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeWeeklySentStoryCount extends PremiumLimitType {
+ public PremiumLimitTypeWeeklySentStoryCount() {
+ }
+
+ public static final int CONSTRUCTOR = 40485707;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeMonthlySentStoryCount extends PremiumLimitType {
+ public PremiumLimitTypeMonthlySentStoryCount() {
+ }
+
+ public static final int CONSTRUCTOR = 819481475;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeStoryCaptionLength extends PremiumLimitType {
+ public PremiumLimitTypeStoryCaptionLength() {
+ }
+
+ public static final int CONSTRUCTOR = -1093324030;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeStorySuggestedReactionAreaCount extends PremiumLimitType {
+ public PremiumLimitTypeStorySuggestedReactionAreaCount() {
+ }
+
+ public static final int CONSTRUCTOR = -1170032633;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumLimitTypeSimilarChatCount extends PremiumLimitType {
+ public PremiumLimitTypeSimilarChatCount() {
+ }
+
+ public static final int CONSTRUCTOR = -1563549935;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumPaymentOption extends Object {
+
+ public String currency;
+
+ public long amount;
+
+ public int discountPercentage;
+
+ public int monthCount;
+
+ public String storeProductId;
+
+ public InternalLinkType paymentLink;
+
+ public PremiumPaymentOption() {
+ }
+
+ public PremiumPaymentOption(String currency, long amount, int discountPercentage, int monthCount, String storeProductId, InternalLinkType paymentLink) {
+ this.currency = currency;
+ this.amount = amount;
+ this.discountPercentage = discountPercentage;
+ this.monthCount = monthCount;
+ this.storeProductId = storeProductId;
+ this.paymentLink = paymentLink;
+ }
+
+ public static final int CONSTRUCTOR = -1945346126;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PremiumSource extends Object {
+
+ public PremiumSource() {
+ }
+ }
+
+ public static class PremiumSourceLimitExceeded extends PremiumSource {
+
+ public PremiumLimitType limitType;
+
+ public PremiumSourceLimitExceeded() {
+ }
+
+ public PremiumSourceLimitExceeded(PremiumLimitType limitType) {
+ this.limitType = limitType;
+ }
+
+ public static final int CONSTRUCTOR = -2052159742;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumSourceFeature extends PremiumSource {
+
+ public PremiumFeature feature;
+
+ public PremiumSourceFeature() {
+ }
+
+ public PremiumSourceFeature(PremiumFeature feature) {
+ this.feature = feature;
+ }
+
+ public static final int CONSTRUCTOR = 445813541;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumSourceBusinessFeature extends PremiumSource {
+
+ public BusinessFeature feature;
+
+ public PremiumSourceBusinessFeature() {
+ }
+
+ public PremiumSourceBusinessFeature(BusinessFeature feature) {
+ this.feature = feature;
+ }
+
+ public static final int CONSTRUCTOR = -1492946340;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumSourceStoryFeature extends PremiumSource {
+
+ public PremiumStoryFeature feature;
+
+ public PremiumSourceStoryFeature() {
+ }
+
+ public PremiumSourceStoryFeature(PremiumStoryFeature feature) {
+ this.feature = feature;
+ }
+
+ public static final int CONSTRUCTOR = -1030737556;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumSourceLink extends PremiumSource {
+
+ public String referrer;
+
+ public PremiumSourceLink() {
+ }
+
+ public PremiumSourceLink(String referrer) {
+ this.referrer = referrer;
+ }
+
+ public static final int CONSTRUCTOR = 2135071132;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumSourceSettings extends PremiumSource {
+ public PremiumSourceSettings() {
+ }
+
+ public static final int CONSTRUCTOR = -285702859;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumState extends Object {
+
+ public FormattedText state;
+
+ public PremiumStatePaymentOption[] paymentOptions;
+
+ public PremiumFeaturePromotionAnimation[] animations;
+
+ public BusinessFeaturePromotionAnimation[] businessAnimations;
+
+ public PremiumState() {
+ }
+
+ public PremiumState(FormattedText state, PremiumStatePaymentOption[] paymentOptions, PremiumFeaturePromotionAnimation[] animations, BusinessFeaturePromotionAnimation[] businessAnimations) {
+ this.state = state;
+ this.paymentOptions = paymentOptions;
+ this.animations = animations;
+ this.businessAnimations = businessAnimations;
+ }
+
+ public static final int CONSTRUCTOR = 1772082178;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumStatePaymentOption extends Object {
+
+ public PremiumPaymentOption paymentOption;
+
+ public boolean isCurrent;
+
+ public boolean isUpgrade;
+
+ public String lastTransactionId;
+
+ public PremiumStatePaymentOption() {
+ }
+
+ public PremiumStatePaymentOption(PremiumPaymentOption paymentOption, boolean isCurrent, boolean isUpgrade, String lastTransactionId) {
+ this.paymentOption = paymentOption;
+ this.isCurrent = isCurrent;
+ this.isUpgrade = isUpgrade;
+ this.lastTransactionId = lastTransactionId;
+ }
+
+ public static final int CONSTRUCTOR = 2097591673;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PremiumStoryFeature extends Object {
+
+ public PremiumStoryFeature() {
+ }
+ }
+
+ public static class PremiumStoryFeaturePriorityOrder extends PremiumStoryFeature {
+ public PremiumStoryFeaturePriorityOrder() {
+ }
+
+ public static final int CONSTRUCTOR = -1880001849;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumStoryFeatureStealthMode extends PremiumStoryFeature {
+ public PremiumStoryFeatureStealthMode() {
+ }
+
+ public static final int CONSTRUCTOR = 1194605988;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumStoryFeaturePermanentViewsHistory extends PremiumStoryFeature {
+ public PremiumStoryFeaturePermanentViewsHistory() {
+ }
+
+ public static final int CONSTRUCTOR = -1029683296;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumStoryFeatureCustomExpirationDuration extends PremiumStoryFeature {
+ public PremiumStoryFeatureCustomExpirationDuration() {
+ }
+
+ public static final int CONSTRUCTOR = -593229162;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumStoryFeatureSaveStories extends PremiumStoryFeature {
+ public PremiumStoryFeatureSaveStories() {
+ }
+
+ public static final int CONSTRUCTOR = -1501286467;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumStoryFeatureLinksAndFormatting extends PremiumStoryFeature {
+ public PremiumStoryFeatureLinksAndFormatting() {
+ }
+
+ public static final int CONSTRUCTOR = -622623753;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PremiumStoryFeatureVideoQuality extends PremiumStoryFeature {
+ public PremiumStoryFeatureVideoQuality() {
+ }
+
+ public static final int CONSTRUCTOR = -1162887511;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PrepaidGiveaway extends Object {
+
+ public long id;
+
+ public int winnerCount;
+
+ public GiveawayPrize prize;
+
+ public int boostCount;
+
+ public int paymentDate;
+
+ public PrepaidGiveaway() {
+ }
+
+ public PrepaidGiveaway(long id, int winnerCount, GiveawayPrize prize, int boostCount, int paymentDate) {
+ this.id = id;
+ this.winnerCount = winnerCount;
+ this.prize = prize;
+ this.boostCount = boostCount;
+ this.paymentDate = paymentDate;
+ }
+
+ public static final int CONSTRUCTOR = -277859441;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PreparedInlineMessage extends Object {
+
+ public long inlineQueryId;
+
+ public InlineQueryResult result;
+
+ public TargetChatTypes chatTypes;
+
+ public PreparedInlineMessage() {
+ }
+
+ public PreparedInlineMessage(long inlineQueryId, InlineQueryResult result, TargetChatTypes chatTypes) {
+ this.inlineQueryId = inlineQueryId;
+ this.result = result;
+ this.chatTypes = chatTypes;
+ }
+
+ public static final int CONSTRUCTOR = -1808892734;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PreparedInlineMessageId extends Object {
+
+ public String id;
+
+ public int expirationDate;
+
+ public PreparedInlineMessageId() {
+ }
+
+ public PreparedInlineMessageId(String id, int expirationDate) {
+ this.id = id;
+ this.expirationDate = expirationDate;
+ }
+
+ public static final int CONSTRUCTOR = 940415972;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ProductInfo extends Object {
+
+ public String title;
+
+ public FormattedText description;
+
+ public Photo photo;
+
+ public ProductInfo() {
+ }
+
+ public ProductInfo(String title, FormattedText description, Photo photo) {
+ this.title = title;
+ this.description = description;
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -2015069020;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ProfileAccentColor extends Object {
+
+ public int id;
+
+ public ProfileAccentColors lightThemeColors;
+
+ public ProfileAccentColors darkThemeColors;
+
+ public int minSupergroupChatBoostLevel;
+
+ public int minChannelChatBoostLevel;
+
+ public ProfileAccentColor() {
+ }
+
+ public ProfileAccentColor(int id, ProfileAccentColors lightThemeColors, ProfileAccentColors darkThemeColors, int minSupergroupChatBoostLevel, int minChannelChatBoostLevel) {
+ this.id = id;
+ this.lightThemeColors = lightThemeColors;
+ this.darkThemeColors = darkThemeColors;
+ this.minSupergroupChatBoostLevel = minSupergroupChatBoostLevel;
+ this.minChannelChatBoostLevel = minChannelChatBoostLevel;
+ }
+
+ public static final int CONSTRUCTOR = 557679253;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ProfileAccentColors extends Object {
+
+ public int[] paletteColors;
+
+ public int[] backgroundColors;
+
+ public int[] storyColors;
+
+ public ProfileAccentColors() {
+ }
+
+ public ProfileAccentColors(int[] paletteColors, int[] backgroundColors, int[] storyColors) {
+ this.paletteColors = paletteColors;
+ this.backgroundColors = backgroundColors;
+ this.storyColors = storyColors;
+ }
+
+ public static final int CONSTRUCTOR = -596042431;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ProfilePhoto extends Object {
+
+ public long id;
+
+ public File small;
+
+ public File big;
+
+ public Minithumbnail minithumbnail;
+
+ public boolean hasAnimation;
+
+ public boolean isPersonal;
+
+ public ProfilePhoto() {
+ }
+
+ public ProfilePhoto(long id, File small, File big, Minithumbnail minithumbnail, boolean hasAnimation, boolean isPersonal) {
+ this.id = id;
+ this.small = small;
+ this.big = big;
+ this.minithumbnail = minithumbnail;
+ this.hasAnimation = hasAnimation;
+ this.isPersonal = isPersonal;
+ }
+
+ public static final int CONSTRUCTOR = -1025754018;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Proxies extends Object {
+
+ public Proxy[] proxies;
+
+ public Proxies() {
+ }
+
+ public Proxies(Proxy[] proxies) {
+ this.proxies = proxies;
+ }
+
+ public static final int CONSTRUCTOR = 1200447205;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Proxy extends Object {
+
+ public int id;
+
+ public String server;
+
+ public int port;
+
+ public int lastUsedDate;
+
+ public boolean isEnabled;
+
+ public ProxyType type;
+
+ public Proxy() {
+ }
+
+ public Proxy(int id, String server, int port, int lastUsedDate, boolean isEnabled, ProxyType type) {
+ this.id = id;
+ this.server = server;
+ this.port = port;
+ this.lastUsedDate = lastUsedDate;
+ this.isEnabled = isEnabled;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 196049779;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ProxyType extends Object {
+
+ public ProxyType() {
+ }
+ }
+
+ public static class ProxyTypeSocks5 extends ProxyType {
+
+ public String username;
+
+ public String password;
+
+ public ProxyTypeSocks5() {
+ }
+
+ public ProxyTypeSocks5(String username, String password) {
+ this.username = username;
+ this.password = password;
+ }
+
+ public static final int CONSTRUCTOR = -890027341;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ProxyTypeHttp extends ProxyType {
+
+ public String username;
+
+ public String password;
+
+ public boolean httpOnly;
+
+ public ProxyTypeHttp() {
+ }
+
+ public ProxyTypeHttp(String username, String password, boolean httpOnly) {
+ this.username = username;
+ this.password = password;
+ this.httpOnly = httpOnly;
+ }
+
+ public static final int CONSTRUCTOR = -1547188361;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ProxyTypeMtproto extends ProxyType {
+
+ public String secret;
+
+ public ProxyTypeMtproto() {
+ }
+
+ public ProxyTypeMtproto(String secret) {
+ this.secret = secret;
+ }
+
+ public static final int CONSTRUCTOR = -1964826627;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PublicChatType extends Object {
+
+ public PublicChatType() {
+ }
+ }
+
+ public static class PublicChatTypeHasUsername extends PublicChatType {
+ public PublicChatTypeHasUsername() {
+ }
+
+ public static final int CONSTRUCTOR = 350789758;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PublicChatTypeIsLocationBased extends PublicChatType {
+ public PublicChatTypeIsLocationBased() {
+ }
+
+ public static final int CONSTRUCTOR = 1183735952;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PublicForward extends Object {
+
+ public PublicForward() {
+ }
+ }
+
+ public static class PublicForwardMessage extends PublicForward {
+
+ public Message message;
+
+ public PublicForwardMessage() {
+ }
+
+ public PublicForwardMessage(Message message) {
+ this.message = message;
+ }
+
+ public static final int CONSTRUCTOR = 51885010;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PublicForwardStory extends PublicForward {
+
+ public Story story;
+
+ public PublicForwardStory() {
+ }
+
+ public PublicForwardStory(Story story) {
+ this.story = story;
+ }
+
+ public static final int CONSTRUCTOR = 2145330863;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PublicForwards extends Object {
+
+ public int totalCount;
+
+ public PublicForward[] forwards;
+
+ public String nextOffset;
+
+ public PublicForwards() {
+ }
+
+ public PublicForwards(int totalCount, PublicForward[] forwards, String nextOffset) {
+ this.totalCount = totalCount;
+ this.forwards = forwards;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = -2011272719;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class PushMessageContent extends Object {
+
+ public PushMessageContent() {
+ }
+ }
+
+ public static class PushMessageContentHidden extends PushMessageContent {
+
+ public boolean isPinned;
+
+ public PushMessageContentHidden() {
+ }
+
+ public PushMessageContentHidden(boolean isPinned) {
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -316950436;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentAnimation extends PushMessageContent {
+
+ public Animation animation;
+
+ public String caption;
+
+ public boolean isPinned;
+
+ public PushMessageContentAnimation() {
+ }
+
+ public PushMessageContentAnimation(Animation animation, String caption, boolean isPinned) {
+ this.animation = animation;
+ this.caption = caption;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = 1034215396;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentAudio extends PushMessageContent {
+
+ public Audio audio;
+
+ public boolean isPinned;
+
+ public PushMessageContentAudio() {
+ }
+
+ public PushMessageContentAudio(Audio audio, boolean isPinned) {
+ this.audio = audio;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = 381581426;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentContact extends PushMessageContent {
+
+ public String name;
+
+ public boolean isPinned;
+
+ public PushMessageContentContact() {
+ }
+
+ public PushMessageContentContact(String name, boolean isPinned) {
+ this.name = name;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -12219820;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentContactRegistered extends PushMessageContent {
+ public PushMessageContentContactRegistered() {
+ }
+
+ public static final int CONSTRUCTOR = -303962720;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentDocument extends PushMessageContent {
+
+ public Document document;
+
+ public boolean isPinned;
+
+ public PushMessageContentDocument() {
+ }
+
+ public PushMessageContentDocument(Document document, boolean isPinned) {
+ this.document = document;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -458379775;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentGame extends PushMessageContent {
+
+ public String title;
+
+ public boolean isPinned;
+
+ public PushMessageContentGame() {
+ }
+
+ public PushMessageContentGame(String title, boolean isPinned) {
+ this.title = title;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -515131109;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentGameScore extends PushMessageContent {
+
+ public String title;
+
+ public int score;
+
+ public boolean isPinned;
+
+ public PushMessageContentGameScore() {
+ }
+
+ public PushMessageContentGameScore(String title, int score, boolean isPinned) {
+ this.title = title;
+ this.score = score;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = 901303688;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentInvoice extends PushMessageContent {
+
+ public String price;
+
+ public boolean isPinned;
+
+ public PushMessageContentInvoice() {
+ }
+
+ public PushMessageContentInvoice(String price, boolean isPinned) {
+ this.price = price;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -1731687492;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentLocation extends PushMessageContent {
+
+ public boolean isLive;
+
+ public boolean isPinned;
+
+ public PushMessageContentLocation() {
+ }
+
+ public PushMessageContentLocation(boolean isLive, boolean isPinned) {
+ this.isLive = isLive;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -1288005709;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentPaidMedia extends PushMessageContent {
+
+ public long starCount;
+
+ public boolean isPinned;
+
+ public PushMessageContentPaidMedia() {
+ }
+
+ public PushMessageContentPaidMedia(long starCount, boolean isPinned) {
+ this.starCount = starCount;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -1252595894;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentPhoto extends PushMessageContent {
+
+ public Photo photo;
+
+ public String caption;
+
+ public boolean isSecret;
+
+ public boolean isPinned;
+
+ public PushMessageContentPhoto() {
+ }
+
+ public PushMessageContentPhoto(Photo photo, String caption, boolean isSecret, boolean isPinned) {
+ this.photo = photo;
+ this.caption = caption;
+ this.isSecret = isSecret;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = 140631122;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentPoll extends PushMessageContent {
+
+ public String question;
+
+ public boolean isRegular;
+
+ public boolean isPinned;
+
+ public PushMessageContentPoll() {
+ }
+
+ public PushMessageContentPoll(String question, boolean isRegular, boolean isPinned) {
+ this.question = question;
+ this.isRegular = isRegular;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -44403654;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentPremiumGiftCode extends PushMessageContent {
+
+ public int monthCount;
+
+ public PushMessageContentPremiumGiftCode() {
+ }
+
+ public PushMessageContentPremiumGiftCode(int monthCount) {
+ this.monthCount = monthCount;
+ }
+
+ public static final int CONSTRUCTOR = 413224997;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentGiveaway extends PushMessageContent {
+
+ public int winnerCount;
+
+ public GiveawayPrize prize;
+
+ public boolean isPinned;
+
+ public PushMessageContentGiveaway() {
+ }
+
+ public PushMessageContentGiveaway(int winnerCount, GiveawayPrize prize, boolean isPinned) {
+ this.winnerCount = winnerCount;
+ this.prize = prize;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -700547186;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentGift extends PushMessageContent {
+
+ public long starCount;
+
+ public PushMessageContentGift() {
+ }
+
+ public PushMessageContentGift(long starCount) {
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = -2069312245;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentScreenshotTaken extends PushMessageContent {
+ public PushMessageContentScreenshotTaken() {
+ }
+
+ public static final int CONSTRUCTOR = 214245369;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentSticker extends PushMessageContent {
+
+ public Sticker sticker;
+
+ public String emoji;
+
+ public boolean isPinned;
+
+ public PushMessageContentSticker() {
+ }
+
+ public PushMessageContentSticker(Sticker sticker, String emoji, boolean isPinned) {
+ this.sticker = sticker;
+ this.emoji = emoji;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = 1553513939;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentStory extends PushMessageContent {
+
+ public boolean isPinned;
+
+ public PushMessageContentStory() {
+ }
+
+ public PushMessageContentStory(boolean isPinned) {
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -1721470519;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentText extends PushMessageContent {
+
+ public String text;
+
+ public boolean isPinned;
+
+ public PushMessageContentText() {
+ }
+
+ public PushMessageContentText(String text, boolean isPinned) {
+ this.text = text;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = 274587305;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentVideo extends PushMessageContent {
+
+ public Video video;
+
+ public String caption;
+
+ public boolean isSecret;
+
+ public boolean isPinned;
+
+ public PushMessageContentVideo() {
+ }
+
+ public PushMessageContentVideo(Video video, String caption, boolean isSecret, boolean isPinned) {
+ this.video = video;
+ this.caption = caption;
+ this.isSecret = isSecret;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = 310038831;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentVideoNote extends PushMessageContent {
+
+ public VideoNote videoNote;
+
+ public boolean isPinned;
+
+ public PushMessageContentVideoNote() {
+ }
+
+ public PushMessageContentVideoNote(VideoNote videoNote, boolean isPinned) {
+ this.videoNote = videoNote;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = -1122764417;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentVoiceNote extends PushMessageContent {
+
+ public VoiceNote voiceNote;
+
+ public boolean isPinned;
+
+ public PushMessageContentVoiceNote() {
+ }
+
+ public PushMessageContentVoiceNote(VoiceNote voiceNote, boolean isPinned) {
+ this.voiceNote = voiceNote;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = 88910987;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentBasicGroupChatCreate extends PushMessageContent {
+ public PushMessageContentBasicGroupChatCreate() {
+ }
+
+ public static final int CONSTRUCTOR = -2114855172;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentChatAddMembers extends PushMessageContent {
+
+ public String memberName;
+
+ public boolean isCurrentUser;
+
+ public boolean isReturned;
+
+ public PushMessageContentChatAddMembers() {
+ }
+
+ public PushMessageContentChatAddMembers(String memberName, boolean isCurrentUser, boolean isReturned) {
+ this.memberName = memberName;
+ this.isCurrentUser = isCurrentUser;
+ this.isReturned = isReturned;
+ }
+
+ public static final int CONSTRUCTOR = -1087145158;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentChatChangePhoto extends PushMessageContent {
+ public PushMessageContentChatChangePhoto() {
+ }
+
+ public static final int CONSTRUCTOR = -1114222051;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentChatChangeTitle extends PushMessageContent {
+
+ public String title;
+
+ public PushMessageContentChatChangeTitle() {
+ }
+
+ public PushMessageContentChatChangeTitle(String title) {
+ this.title = title;
+ }
+
+ public static final int CONSTRUCTOR = -1964902749;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentChatSetBackground extends PushMessageContent {
+
+ public boolean isSame;
+
+ public PushMessageContentChatSetBackground() {
+ }
+
+ public PushMessageContentChatSetBackground(boolean isSame) {
+ this.isSame = isSame;
+ }
+
+ public static final int CONSTRUCTOR = -1490331933;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentChatSetTheme extends PushMessageContent {
+
+ public String themeName;
+
+ public PushMessageContentChatSetTheme() {
+ }
+
+ public PushMessageContentChatSetTheme(String themeName) {
+ this.themeName = themeName;
+ }
+
+ public static final int CONSTRUCTOR = 173882216;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentChatDeleteMember extends PushMessageContent {
+
+ public String memberName;
+
+ public boolean isCurrentUser;
+
+ public boolean isLeft;
+
+ public PushMessageContentChatDeleteMember() {
+ }
+
+ public PushMessageContentChatDeleteMember(String memberName, boolean isCurrentUser, boolean isLeft) {
+ this.memberName = memberName;
+ this.isCurrentUser = isCurrentUser;
+ this.isLeft = isLeft;
+ }
+
+ public static final int CONSTRUCTOR = 598714783;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentChatJoinByLink extends PushMessageContent {
+ public PushMessageContentChatJoinByLink() {
+ }
+
+ public static final int CONSTRUCTOR = 1553719113;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentChatJoinByRequest extends PushMessageContent {
+ public PushMessageContentChatJoinByRequest() {
+ }
+
+ public static final int CONSTRUCTOR = -205823627;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentRecurringPayment extends PushMessageContent {
+
+ public String amount;
+
+ public PushMessageContentRecurringPayment() {
+ }
+
+ public PushMessageContentRecurringPayment(String amount) {
+ this.amount = amount;
+ }
+
+ public static final int CONSTRUCTOR = 1619211802;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentSuggestProfilePhoto extends PushMessageContent {
+ public PushMessageContentSuggestProfilePhoto() {
+ }
+
+ public static final int CONSTRUCTOR = 2104225963;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentMessageForwards extends PushMessageContent {
+
+ public int totalCount;
+
+ public PushMessageContentMessageForwards() {
+ }
+
+ public PushMessageContentMessageForwards(int totalCount) {
+ this.totalCount = totalCount;
+ }
+
+ public static final int CONSTRUCTOR = -1913083876;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushMessageContentMediaAlbum extends PushMessageContent {
+
+ public int totalCount;
+
+ public boolean hasPhotos;
+
+ public boolean hasVideos;
+
+ public boolean hasAudios;
+
+ public boolean hasDocuments;
+
+ public PushMessageContentMediaAlbum() {
+ }
+
+ public PushMessageContentMediaAlbum(int totalCount, boolean hasPhotos, boolean hasVideos, boolean hasAudios, boolean hasDocuments) {
+ this.totalCount = totalCount;
+ this.hasPhotos = hasPhotos;
+ this.hasVideos = hasVideos;
+ this.hasAudios = hasAudios;
+ this.hasDocuments = hasDocuments;
+ }
+
+ public static final int CONSTRUCTOR = -748426897;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class PushReceiverId extends Object {
+
+ public long id;
+
+ public PushReceiverId() {
+ }
+
+ public PushReceiverId(long id) {
+ this.id = id;
+ }
+
+ public static final int CONSTRUCTOR = 371056428;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class QuickReplyMessage extends Object {
+
+ public long id;
+
+ public MessageSendingState sendingState;
+
+ public boolean canBeEdited;
+
+ public long replyToMessageId;
+
+ public long viaBotUserId;
+
+ public long mediaAlbumId;
+
+ public MessageContent content;
+
+ public ReplyMarkup replyMarkup;
+
+ public QuickReplyMessage() {
+ }
+
+ public QuickReplyMessage(long id, MessageSendingState sendingState, boolean canBeEdited, long replyToMessageId, long viaBotUserId, long mediaAlbumId, MessageContent content, ReplyMarkup replyMarkup) {
+ this.id = id;
+ this.sendingState = sendingState;
+ this.canBeEdited = canBeEdited;
+ this.replyToMessageId = replyToMessageId;
+ this.viaBotUserId = viaBotUserId;
+ this.mediaAlbumId = mediaAlbumId;
+ this.content = content;
+ this.replyMarkup = replyMarkup;
+ }
+
+ public static final int CONSTRUCTOR = -1090965757;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class QuickReplyMessages extends Object {
+
+ public QuickReplyMessage[] messages;
+
+ public QuickReplyMessages() {
+ }
+
+ public QuickReplyMessages(QuickReplyMessage[] messages) {
+ this.messages = messages;
+ }
+
+ public static final int CONSTRUCTOR = 743214375;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class QuickReplyShortcut extends Object {
+
+ public int id;
+
+ public String name;
+
+ public QuickReplyMessage firstMessage;
+
+ public int messageCount;
+
+ public QuickReplyShortcut() {
+ }
+
+ public QuickReplyShortcut(int id, String name, QuickReplyMessage firstMessage, int messageCount) {
+ this.id = id;
+ this.name = name;
+ this.firstMessage = firstMessage;
+ this.messageCount = messageCount;
+ }
+
+ public static final int CONSTRUCTOR = -1107453291;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReactionNotificationSettings extends Object {
+
+ public ReactionNotificationSource messageReactionSource;
+
+ public ReactionNotificationSource storyReactionSource;
+
+ public long soundId;
+
+ public boolean showPreview;
+
+ public ReactionNotificationSettings() {
+ }
+
+ public ReactionNotificationSettings(ReactionNotificationSource messageReactionSource, ReactionNotificationSource storyReactionSource, long soundId, boolean showPreview) {
+ this.messageReactionSource = messageReactionSource;
+ this.storyReactionSource = storyReactionSource;
+ this.soundId = soundId;
+ this.showPreview = showPreview;
+ }
+
+ public static final int CONSTRUCTOR = 733017684;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ReactionNotificationSource extends Object {
+
+ public ReactionNotificationSource() {
+ }
+ }
+
+ public static class ReactionNotificationSourceNone extends ReactionNotificationSource {
+ public ReactionNotificationSourceNone() {
+ }
+
+ public static final int CONSTRUCTOR = 366374940;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReactionNotificationSourceContacts extends ReactionNotificationSource {
+ public ReactionNotificationSourceContacts() {
+ }
+
+ public static final int CONSTRUCTOR = 555501621;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReactionNotificationSourceAll extends ReactionNotificationSource {
+ public ReactionNotificationSourceAll() {
+ }
+
+ public static final int CONSTRUCTOR = 1241689234;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ReactionType extends Object {
+
+ public ReactionType() {
+ }
+ }
+
+ public static class ReactionTypeEmoji extends ReactionType {
+
+ public String emoji;
+
+ public ReactionTypeEmoji() {
+ }
+
+ public ReactionTypeEmoji(String emoji) {
+ this.emoji = emoji;
+ }
+
+ public static final int CONSTRUCTOR = -1942084920;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReactionTypeCustomEmoji extends ReactionType {
+
+ public long customEmojiId;
+
+ public ReactionTypeCustomEmoji() {
+ }
+
+ public ReactionTypeCustomEmoji(long customEmojiId) {
+ this.customEmojiId = customEmojiId;
+ }
+
+ public static final int CONSTRUCTOR = -989117709;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReactionTypePaid extends ReactionType {
+ public ReactionTypePaid() {
+ }
+
+ public static final int CONSTRUCTOR = 436294381;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ReactionUnavailabilityReason extends Object {
+
+ public ReactionUnavailabilityReason() {
+ }
+ }
+
+ public static class ReactionUnavailabilityReasonAnonymousAdministrator extends ReactionUnavailabilityReason {
+ public ReactionUnavailabilityReasonAnonymousAdministrator() {
+ }
+
+ public static final int CONSTRUCTOR = -499612677;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReactionUnavailabilityReasonGuest extends ReactionUnavailabilityReason {
+ public ReactionUnavailabilityReasonGuest() {
+ }
+
+ public static final int CONSTRUCTOR = 1357861444;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReadDatePrivacySettings extends Object {
+
+ public boolean showReadDate;
+
+ public ReadDatePrivacySettings() {
+ }
+
+ public ReadDatePrivacySettings(boolean showReadDate) {
+ this.showReadDate = showReadDate;
+ }
+
+ public static final int CONSTRUCTOR = 1654842920;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RecommendedChatFolder extends Object {
+
+ public ChatFolder folder;
+
+ public String description;
+
+ public RecommendedChatFolder() {
+ }
+
+ public RecommendedChatFolder(ChatFolder folder, String description) {
+ this.folder = folder;
+ this.description = description;
+ }
+
+ public static final int CONSTRUCTOR = -2116569930;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RecommendedChatFolders extends Object {
+
+ public RecommendedChatFolder[] chatFolders;
+
+ public RecommendedChatFolders() {
+ }
+
+ public RecommendedChatFolders(RecommendedChatFolder[] chatFolders) {
+ this.chatFolders = chatFolders;
+ }
+
+ public static final int CONSTRUCTOR = -739217656;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RecoveryEmailAddress extends Object {
+
+ public String recoveryEmailAddress;
+
+ public RecoveryEmailAddress() {
+ }
+
+ public RecoveryEmailAddress(String recoveryEmailAddress) {
+ this.recoveryEmailAddress = recoveryEmailAddress;
+ }
+
+ public static final int CONSTRUCTOR = 1290526187;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RemoteFile extends Object {
+
+ public String id;
+
+ public String uniqueId;
+
+ public boolean isUploadingActive;
+
+ public boolean isUploadingCompleted;
+
+ public long uploadedSize;
+
+ public RemoteFile() {
+ }
+
+ public RemoteFile(String id, String uniqueId, boolean isUploadingActive, boolean isUploadingCompleted, long uploadedSize) {
+ this.id = id;
+ this.uniqueId = uniqueId;
+ this.isUploadingActive = isUploadingActive;
+ this.isUploadingCompleted = isUploadingCompleted;
+ this.uploadedSize = uploadedSize;
+ }
+
+ public static final int CONSTRUCTOR = 747731030;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ReplyMarkup extends Object {
+
+ public ReplyMarkup() {
+ }
+ }
+
+ public static class ReplyMarkupRemoveKeyboard extends ReplyMarkup {
+
+ public boolean isPersonal;
+
+ public ReplyMarkupRemoveKeyboard() {
+ }
+
+ public ReplyMarkupRemoveKeyboard(boolean isPersonal) {
+ this.isPersonal = isPersonal;
+ }
+
+ public static final int CONSTRUCTOR = -691252879;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReplyMarkupForceReply extends ReplyMarkup {
+
+ public boolean isPersonal;
+
+ public String inputFieldPlaceholder;
+
+ public ReplyMarkupForceReply() {
+ }
+
+ public ReplyMarkupForceReply(boolean isPersonal, String inputFieldPlaceholder) {
+ this.isPersonal = isPersonal;
+ this.inputFieldPlaceholder = inputFieldPlaceholder;
+ }
+
+ public static final int CONSTRUCTOR = 1101461919;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReplyMarkupShowKeyboard extends ReplyMarkup {
+
+ public KeyboardButton[][] rows;
+
+ public boolean isPersistent;
+
+ public boolean resizeKeyboard;
+
+ public boolean oneTime;
+
+ public boolean isPersonal;
+
+ public String inputFieldPlaceholder;
+
+ public ReplyMarkupShowKeyboard() {
+ }
+
+ public ReplyMarkupShowKeyboard(KeyboardButton[][] rows, boolean isPersistent, boolean resizeKeyboard, boolean oneTime, boolean isPersonal, String inputFieldPlaceholder) {
+ this.rows = rows;
+ this.isPersistent = isPersistent;
+ this.resizeKeyboard = resizeKeyboard;
+ this.oneTime = oneTime;
+ this.isPersonal = isPersonal;
+ this.inputFieldPlaceholder = inputFieldPlaceholder;
+ }
+
+ public static final int CONSTRUCTOR = -791495984;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReplyMarkupInlineKeyboard extends ReplyMarkup {
+
+ public InlineKeyboardButton[][] rows;
+
+ public ReplyMarkupInlineKeyboard() {
+ }
+
+ public ReplyMarkupInlineKeyboard(InlineKeyboardButton[][] rows) {
+ this.rows = rows;
+ }
+
+ public static final int CONSTRUCTOR = -619317658;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ReportChatResult extends Object {
+
+ public ReportChatResult() {
+ }
+ }
+
+ public static class ReportChatResultOk extends ReportChatResult {
+ public ReportChatResultOk() {
+ }
+
+ public static final int CONSTRUCTOR = 1209685373;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportChatResultOptionRequired extends ReportChatResult {
+
+ public String title;
+
+ public ReportOption[] options;
+
+ public ReportChatResultOptionRequired() {
+ }
+
+ public ReportChatResultOptionRequired(String title, ReportOption[] options) {
+ this.title = title;
+ this.options = options;
+ }
+
+ public static final int CONSTRUCTOR = -881375669;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportChatResultTextRequired extends ReportChatResult {
+
+ public byte[] optionId;
+
+ public boolean isOptional;
+
+ public ReportChatResultTextRequired() {
+ }
+
+ public ReportChatResultTextRequired(byte[] optionId, boolean isOptional) {
+ this.optionId = optionId;
+ this.isOptional = isOptional;
+ }
+
+ public static final int CONSTRUCTOR = -1949552447;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportChatResultMessagesRequired extends ReportChatResult {
+ public ReportChatResultMessagesRequired() {
+ }
+
+ public static final int CONSTRUCTOR = 106043280;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ReportChatSponsoredMessageResult extends Object {
+
+ public ReportChatSponsoredMessageResult() {
+ }
+ }
+
+ public static class ReportChatSponsoredMessageResultOk extends ReportChatSponsoredMessageResult {
+ public ReportChatSponsoredMessageResultOk() {
+ }
+
+ public static final int CONSTRUCTOR = 1968140831;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportChatSponsoredMessageResultFailed extends ReportChatSponsoredMessageResult {
+ public ReportChatSponsoredMessageResultFailed() {
+ }
+
+ public static final int CONSTRUCTOR = 2132777926;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportChatSponsoredMessageResultOptionRequired extends ReportChatSponsoredMessageResult {
+
+ public String title;
+
+ public ReportOption[] options;
+
+ public ReportChatSponsoredMessageResultOptionRequired() {
+ }
+
+ public ReportChatSponsoredMessageResultOptionRequired(String title, ReportOption[] options) {
+ this.title = title;
+ this.options = options;
+ }
+
+ public static final int CONSTRUCTOR = 1172751995;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportChatSponsoredMessageResultAdsHidden extends ReportChatSponsoredMessageResult {
+ public ReportChatSponsoredMessageResultAdsHidden() {
+ }
+
+ public static final int CONSTRUCTOR = -387260898;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportChatSponsoredMessageResultPremiumRequired extends ReportChatSponsoredMessageResult {
+ public ReportChatSponsoredMessageResultPremiumRequired() {
+ }
+
+ public static final int CONSTRUCTOR = 1997287120;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportOption extends Object {
+
+ public byte[] id;
+
+ public String text;
+
+ public ReportOption() {
+ }
+
+ public ReportOption(byte[] id, String text) {
+ this.id = id;
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = 1106390048;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ReportReason extends Object {
+
+ public ReportReason() {
+ }
+ }
+
+ public static class ReportReasonSpam extends ReportReason {
+ public ReportReasonSpam() {
+ }
+
+ public static final int CONSTRUCTOR = -1207032897;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportReasonViolence extends ReportReason {
+ public ReportReasonViolence() {
+ }
+
+ public static final int CONSTRUCTOR = 2038679353;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportReasonPornography extends ReportReason {
+ public ReportReasonPornography() {
+ }
+
+ public static final int CONSTRUCTOR = 1306467575;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportReasonChildAbuse extends ReportReason {
+ public ReportReasonChildAbuse() {
+ }
+
+ public static final int CONSTRUCTOR = 761086718;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportReasonCopyright extends ReportReason {
+ public ReportReasonCopyright() {
+ }
+
+ public static final int CONSTRUCTOR = 1474441135;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportReasonUnrelatedLocation extends ReportReason {
+ public ReportReasonUnrelatedLocation() {
+ }
+
+ public static final int CONSTRUCTOR = 87562288;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportReasonFake extends ReportReason {
+ public ReportReasonFake() {
+ }
+
+ public static final int CONSTRUCTOR = 352862176;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportReasonIllegalDrugs extends ReportReason {
+ public ReportReasonIllegalDrugs() {
+ }
+
+ public static final int CONSTRUCTOR = -61599200;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportReasonPersonalDetails extends ReportReason {
+ public ReportReasonPersonalDetails() {
+ }
+
+ public static final int CONSTRUCTOR = -1588882414;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportReasonCustom extends ReportReason {
+ public ReportReasonCustom() {
+ }
+
+ public static final int CONSTRUCTOR = -1380459917;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ReportStoryResult extends Object {
+
+ public ReportStoryResult() {
+ }
+ }
+
+ public static class ReportStoryResultOk extends ReportStoryResult {
+ public ReportStoryResultOk() {
+ }
+
+ public static final int CONSTRUCTOR = -1405328461;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportStoryResultOptionRequired extends ReportStoryResult {
+
+ public String title;
+
+ public ReportOption[] options;
+
+ public ReportStoryResultOptionRequired() {
+ }
+
+ public ReportStoryResultOptionRequired(String title, ReportOption[] options) {
+ this.title = title;
+ this.options = options;
+ }
+
+ public static final int CONSTRUCTOR = 1632974839;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ReportStoryResultTextRequired extends ReportStoryResult {
+
+ public byte[] optionId;
+
+ public boolean isOptional;
+
+ public ReportStoryResultTextRequired() {
+ }
+
+ public ReportStoryResultTextRequired(byte[] optionId, boolean isOptional) {
+ this.optionId = optionId;
+ this.isOptional = isOptional;
+ }
+
+ public static final int CONSTRUCTOR = 334339473;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ResendCodeReason extends Object {
+
+ public ResendCodeReason() {
+ }
+ }
+
+ public static class ResendCodeReasonUserRequest extends ResendCodeReason {
+ public ResendCodeReasonUserRequest() {
+ }
+
+ public static final int CONSTRUCTOR = -441923456;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ResendCodeReasonVerificationFailed extends ResendCodeReason {
+
+ public String errorMessage;
+
+ public ResendCodeReasonVerificationFailed() {
+ }
+
+ public ResendCodeReasonVerificationFailed(String errorMessage) {
+ this.errorMessage = errorMessage;
+ }
+
+ public static final int CONSTRUCTOR = 529870273;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ResetPasswordResult extends Object {
+
+ public ResetPasswordResult() {
+ }
+ }
+
+ public static class ResetPasswordResultOk extends ResetPasswordResult {
+ public ResetPasswordResultOk() {
+ }
+
+ public static final int CONSTRUCTOR = -1397267463;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ResetPasswordResultPending extends ResetPasswordResult {
+
+ public int pendingResetDate;
+
+ public ResetPasswordResultPending() {
+ }
+
+ public ResetPasswordResultPending(int pendingResetDate) {
+ this.pendingResetDate = pendingResetDate;
+ }
+
+ public static final int CONSTRUCTOR = 1193925721;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ResetPasswordResultDeclined extends ResetPasswordResult {
+
+ public int retryDate;
+
+ public ResetPasswordResultDeclined() {
+ }
+
+ public ResetPasswordResultDeclined(int retryDate) {
+ this.retryDate = retryDate;
+ }
+
+ public static final int CONSTRUCTOR = -1202200373;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class RevenueWithdrawalState extends Object {
+
+ public RevenueWithdrawalState() {
+ }
+ }
+
+ public static class RevenueWithdrawalStatePending extends RevenueWithdrawalState {
+ public RevenueWithdrawalStatePending() {
+ }
+
+ public static final int CONSTRUCTOR = 1563512741;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RevenueWithdrawalStateSucceeded extends RevenueWithdrawalState {
+
+ public int date;
+
+ public String url;
+
+ public RevenueWithdrawalStateSucceeded() {
+ }
+
+ public RevenueWithdrawalStateSucceeded(int date, String url) {
+ this.date = date;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 265375242;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RevenueWithdrawalStateFailed extends RevenueWithdrawalState {
+ public RevenueWithdrawalStateFailed() {
+ }
+
+ public static final int CONSTRUCTOR = -12504951;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class RichText extends Object {
+
+ public RichText() {
+ }
+ }
+
+ public static class RichTextPlain extends RichText {
+
+ public String text;
+
+ public RichTextPlain() {
+ }
+
+ public RichTextPlain(String text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = 482617702;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextBold extends RichText {
+
+ public RichText text;
+
+ public RichTextBold() {
+ }
+
+ public RichTextBold(RichText text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = 1670844268;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextItalic extends RichText {
+
+ public RichText text;
+
+ public RichTextItalic() {
+ }
+
+ public RichTextItalic(RichText text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = 1853354047;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextUnderline extends RichText {
+
+ public RichText text;
+
+ public RichTextUnderline() {
+ }
+
+ public RichTextUnderline(RichText text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = -536019572;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextStrikethrough extends RichText {
+
+ public RichText text;
+
+ public RichTextStrikethrough() {
+ }
+
+ public RichTextStrikethrough(RichText text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = 723413585;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextFixed extends RichText {
+
+ public RichText text;
+
+ public RichTextFixed() {
+ }
+
+ public RichTextFixed(RichText text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = -1271496249;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextUrl extends RichText {
+
+ public RichText text;
+
+ public String url;
+
+ public boolean isCached;
+
+ public RichTextUrl() {
+ }
+
+ public RichTextUrl(RichText text, String url, boolean isCached) {
+ this.text = text;
+ this.url = url;
+ this.isCached = isCached;
+ }
+
+ public static final int CONSTRUCTOR = 83939092;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextEmailAddress extends RichText {
+
+ public RichText text;
+
+ public String emailAddress;
+
+ public RichTextEmailAddress() {
+ }
+
+ public RichTextEmailAddress(RichText text, String emailAddress) {
+ this.text = text;
+ this.emailAddress = emailAddress;
+ }
+
+ public static final int CONSTRUCTOR = 40018679;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextSubscript extends RichText {
+
+ public RichText text;
+
+ public RichTextSubscript() {
+ }
+
+ public RichTextSubscript(RichText text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = -868197812;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextSuperscript extends RichText {
+
+ public RichText text;
+
+ public RichTextSuperscript() {
+ }
+
+ public RichTextSuperscript(RichText text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = -382241437;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextMarked extends RichText {
+
+ public RichText text;
+
+ public RichTextMarked() {
+ }
+
+ public RichTextMarked(RichText text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = -1271999614;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextPhoneNumber extends RichText {
+
+ public RichText text;
+
+ public String phoneNumber;
+
+ public RichTextPhoneNumber() {
+ }
+
+ public RichTextPhoneNumber(RichText text, String phoneNumber) {
+ this.text = text;
+ this.phoneNumber = phoneNumber;
+ }
+
+ public static final int CONSTRUCTOR = 128521539;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextIcon extends RichText {
+
+ public Document document;
+
+ public int width;
+
+ public int height;
+
+ public RichTextIcon() {
+ }
+
+ public RichTextIcon(Document document, int width, int height) {
+ this.document = document;
+ this.width = width;
+ this.height = height;
+ }
+
+ public static final int CONSTRUCTOR = -1480316158;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextReference extends RichText {
+
+ public RichText text;
+
+ public String anchorName;
+
+ public String url;
+
+ public RichTextReference() {
+ }
+
+ public RichTextReference(RichText text, String anchorName, String url) {
+ this.text = text;
+ this.anchorName = anchorName;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -1147530634;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextAnchor extends RichText {
+
+ public String name;
+
+ public RichTextAnchor() {
+ }
+
+ public RichTextAnchor(String name) {
+ this.name = name;
+ }
+
+ public static final int CONSTRUCTOR = 1316950068;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTextAnchorLink extends RichText {
+
+ public RichText text;
+
+ public String anchorName;
+
+ public String url;
+
+ public RichTextAnchorLink() {
+ }
+
+ public RichTextAnchorLink(RichText text, String anchorName, String url) {
+ this.text = text;
+ this.anchorName = anchorName;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -1541418282;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RichTexts extends RichText {
+
+ public RichText[] texts;
+
+ public RichTexts() {
+ }
+
+ public RichTexts(RichText[] texts) {
+ this.texts = texts;
+ }
+
+ public static final int CONSTRUCTOR = 1647457821;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class RtmpUrl extends Object {
+
+ public String url;
+
+ public String streamKey;
+
+ public RtmpUrl() {
+ }
+
+ public RtmpUrl(String url, String streamKey) {
+ this.url = url;
+ this.streamKey = streamKey;
+ }
+
+ public static final int CONSTRUCTOR = 1009302613;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SavedCredentials extends Object {
+
+ public String id;
+
+ public String title;
+
+ public SavedCredentials() {
+ }
+
+ public SavedCredentials(String id, String title) {
+ this.id = id;
+ this.title = title;
+ }
+
+ public static final int CONSTRUCTOR = -370273060;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SavedMessagesTag extends Object {
+
+ public ReactionType tag;
+
+ public String label;
+
+ public int count;
+
+ public SavedMessagesTag() {
+ }
+
+ public SavedMessagesTag(ReactionType tag, String label, int count) {
+ this.tag = tag;
+ this.label = label;
+ this.count = count;
+ }
+
+ public static final int CONSTRUCTOR = 1785183329;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SavedMessagesTags extends Object {
+
+ public SavedMessagesTag[] tags;
+
+ public SavedMessagesTags() {
+ }
+
+ public SavedMessagesTags(SavedMessagesTag[] tags) {
+ this.tags = tags;
+ }
+
+ public static final int CONSTRUCTOR = -1749291430;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SavedMessagesTopic extends Object {
+
+ public long id;
+
+ public SavedMessagesTopicType type;
+
+ public boolean isPinned;
+
+ public long order;
+
+ public Message lastMessage;
+
+ public DraftMessage draftMessage;
+
+ public SavedMessagesTopic() {
+ }
+
+ public SavedMessagesTopic(long id, SavedMessagesTopicType type, boolean isPinned, long order, Message lastMessage, DraftMessage draftMessage) {
+ this.id = id;
+ this.type = type;
+ this.isPinned = isPinned;
+ this.order = order;
+ this.lastMessage = lastMessage;
+ this.draftMessage = draftMessage;
+ }
+
+ public static final int CONSTRUCTOR = -760684124;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class SavedMessagesTopicType extends Object {
+
+ public SavedMessagesTopicType() {
+ }
+ }
+
+ public static class SavedMessagesTopicTypeMyNotes extends SavedMessagesTopicType {
+ public SavedMessagesTopicTypeMyNotes() {
+ }
+
+ public static final int CONSTRUCTOR = -1282784779;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SavedMessagesTopicTypeAuthorHidden extends SavedMessagesTopicType {
+ public SavedMessagesTopicTypeAuthorHidden() {
+ }
+
+ public static final int CONSTRUCTOR = 1882997141;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SavedMessagesTopicTypeSavedFromChat extends SavedMessagesTopicType {
+
+ public long chatId;
+
+ public SavedMessagesTopicTypeSavedFromChat() {
+ }
+
+ public SavedMessagesTopicTypeSavedFromChat(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = -1723880104;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ScopeAutosaveSettings extends Object {
+
+ public boolean autosavePhotos;
+
+ public boolean autosaveVideos;
+
+ public long maxVideoFileSize;
+
+ public ScopeAutosaveSettings() {
+ }
+
+ public ScopeAutosaveSettings(boolean autosavePhotos, boolean autosaveVideos, long maxVideoFileSize) {
+ this.autosavePhotos = autosavePhotos;
+ this.autosaveVideos = autosaveVideos;
+ this.maxVideoFileSize = maxVideoFileSize;
+ }
+
+ public static final int CONSTRUCTOR = 1546821427;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ScopeNotificationSettings extends Object {
+
+ public int muteFor;
+
+ public long soundId;
+
+ public boolean showPreview;
+
+ public boolean useDefaultMuteStories;
+
+ public boolean muteStories;
+
+ public long storySoundId;
+
+ public boolean showStorySender;
+
+ public boolean disablePinnedMessageNotifications;
+
+ public boolean disableMentionNotifications;
+
+ public ScopeNotificationSettings() {
+ }
+
+ public ScopeNotificationSettings(int muteFor, long soundId, boolean showPreview, boolean useDefaultMuteStories, boolean muteStories, long storySoundId, boolean showStorySender, boolean disablePinnedMessageNotifications, boolean disableMentionNotifications) {
+ this.muteFor = muteFor;
+ this.soundId = soundId;
+ this.showPreview = showPreview;
+ this.useDefaultMuteStories = useDefaultMuteStories;
+ this.muteStories = muteStories;
+ this.storySoundId = storySoundId;
+ this.showStorySender = showStorySender;
+ this.disablePinnedMessageNotifications = disablePinnedMessageNotifications;
+ this.disableMentionNotifications = disableMentionNotifications;
+ }
+
+ public static final int CONSTRUCTOR = -599105185;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class SearchMessagesFilter extends Object {
+
+ public SearchMessagesFilter() {
+ }
+ }
+
+ public static class SearchMessagesFilterEmpty extends SearchMessagesFilter {
+ public SearchMessagesFilterEmpty() {
+ }
+
+ public static final int CONSTRUCTOR = -869395657;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterAnimation extends SearchMessagesFilter {
+ public SearchMessagesFilterAnimation() {
+ }
+
+ public static final int CONSTRUCTOR = -155713339;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterAudio extends SearchMessagesFilter {
+ public SearchMessagesFilterAudio() {
+ }
+
+ public static final int CONSTRUCTOR = 867505275;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterDocument extends SearchMessagesFilter {
+ public SearchMessagesFilterDocument() {
+ }
+
+ public static final int CONSTRUCTOR = 1526331215;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterPhoto extends SearchMessagesFilter {
+ public SearchMessagesFilterPhoto() {
+ }
+
+ public static final int CONSTRUCTOR = 925932293;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterVideo extends SearchMessagesFilter {
+ public SearchMessagesFilterVideo() {
+ }
+
+ public static final int CONSTRUCTOR = 115538222;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterVoiceNote extends SearchMessagesFilter {
+ public SearchMessagesFilterVoiceNote() {
+ }
+
+ public static final int CONSTRUCTOR = 1841439357;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterPhotoAndVideo extends SearchMessagesFilter {
+ public SearchMessagesFilterPhotoAndVideo() {
+ }
+
+ public static final int CONSTRUCTOR = 1352130963;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterUrl extends SearchMessagesFilter {
+ public SearchMessagesFilterUrl() {
+ }
+
+ public static final int CONSTRUCTOR = -1828724341;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterChatPhoto extends SearchMessagesFilter {
+ public SearchMessagesFilterChatPhoto() {
+ }
+
+ public static final int CONSTRUCTOR = -1247751329;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterVideoNote extends SearchMessagesFilter {
+ public SearchMessagesFilterVideoNote() {
+ }
+
+ public static final int CONSTRUCTOR = 564323321;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterVoiceAndVideoNote extends SearchMessagesFilter {
+ public SearchMessagesFilterVoiceAndVideoNote() {
+ }
+
+ public static final int CONSTRUCTOR = 664174819;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterMention extends SearchMessagesFilter {
+ public SearchMessagesFilterMention() {
+ }
+
+ public static final int CONSTRUCTOR = 2001258652;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterUnreadMention extends SearchMessagesFilter {
+ public SearchMessagesFilterUnreadMention() {
+ }
+
+ public static final int CONSTRUCTOR = -95769149;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterUnreadReaction extends SearchMessagesFilter {
+ public SearchMessagesFilterUnreadReaction() {
+ }
+
+ public static final int CONSTRUCTOR = -1379651328;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterFailedToSend extends SearchMessagesFilter {
+ public SearchMessagesFilterFailedToSend() {
+ }
+
+ public static final int CONSTRUCTOR = -596322564;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SearchMessagesFilterPinned extends SearchMessagesFilter {
+ public SearchMessagesFilterPinned() {
+ }
+
+ public static final int CONSTRUCTOR = 371805512;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Seconds extends Object {
+
+ public double seconds;
+
+ public Seconds() {
+ }
+
+ public Seconds(double seconds) {
+ this.seconds = seconds;
+ }
+
+ public static final int CONSTRUCTOR = 959899022;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SecretChat extends Object {
+
+ public int id;
+
+ public long userId;
+
+ public SecretChatState state;
+
+ public boolean isOutbound;
+
+ public byte[] keyHash;
+
+ public int layer;
+
+ public SecretChat() {
+ }
+
+ public SecretChat(int id, long userId, SecretChatState state, boolean isOutbound, byte[] keyHash, int layer) {
+ this.id = id;
+ this.userId = userId;
+ this.state = state;
+ this.isOutbound = isOutbound;
+ this.keyHash = keyHash;
+ this.layer = layer;
+ }
+
+ public static final int CONSTRUCTOR = -676918325;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class SecretChatState extends Object {
+
+ public SecretChatState() {
+ }
+ }
+
+ public static class SecretChatStatePending extends SecretChatState {
+ public SecretChatStatePending() {
+ }
+
+ public static final int CONSTRUCTOR = -1637050756;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SecretChatStateReady extends SecretChatState {
+ public SecretChatStateReady() {
+ }
+
+ public static final int CONSTRUCTOR = -1611352087;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SecretChatStateClosed extends SecretChatState {
+ public SecretChatStateClosed() {
+ }
+
+ public static final int CONSTRUCTOR = -1945106707;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SentWebAppMessage extends Object {
+
+ public String inlineMessageId;
+
+ public SentWebAppMessage() {
+ }
+
+ public SentWebAppMessage(String inlineMessageId) {
+ this.inlineMessageId = inlineMessageId;
+ }
+
+ public static final int CONSTRUCTOR = 1243934400;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Session extends Object {
+
+ public long id;
+
+ public boolean isCurrent;
+
+ public boolean isPasswordPending;
+
+ public boolean isUnconfirmed;
+
+ public boolean canAcceptSecretChats;
+
+ public boolean canAcceptCalls;
+
+ public SessionType type;
+
+ public int apiId;
+
+ public String applicationName;
+
+ public String applicationVersion;
+
+ public boolean isOfficialApplication;
+
+ public String deviceModel;
+
+ public String platform;
+
+ public String systemVersion;
+
+ public int logInDate;
+
+ public int lastActiveDate;
+
+ public String ipAddress;
+
+ public String location;
+
+ public Session() {
+ }
+
+ public Session(long id, boolean isCurrent, boolean isPasswordPending, boolean isUnconfirmed, boolean canAcceptSecretChats, boolean canAcceptCalls, SessionType type, int apiId, String applicationName, String applicationVersion, boolean isOfficialApplication, String deviceModel, String platform, String systemVersion, int logInDate, int lastActiveDate, String ipAddress, String location) {
+ this.id = id;
+ this.isCurrent = isCurrent;
+ this.isPasswordPending = isPasswordPending;
+ this.isUnconfirmed = isUnconfirmed;
+ this.canAcceptSecretChats = canAcceptSecretChats;
+ this.canAcceptCalls = canAcceptCalls;
+ this.type = type;
+ this.apiId = apiId;
+ this.applicationName = applicationName;
+ this.applicationVersion = applicationVersion;
+ this.isOfficialApplication = isOfficialApplication;
+ this.deviceModel = deviceModel;
+ this.platform = platform;
+ this.systemVersion = systemVersion;
+ this.logInDate = logInDate;
+ this.lastActiveDate = lastActiveDate;
+ this.ipAddress = ipAddress;
+ this.location = location;
+ }
+
+ public static final int CONSTRUCTOR = 158702140;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class SessionType extends Object {
+
+ public SessionType() {
+ }
+ }
+
+ public static class SessionTypeAndroid extends SessionType {
+ public SessionTypeAndroid() {
+ }
+
+ public static final int CONSTRUCTOR = -2071764840;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeApple extends SessionType {
+ public SessionTypeApple() {
+ }
+
+ public static final int CONSTRUCTOR = -1818635701;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeBrave extends SessionType {
+ public SessionTypeBrave() {
+ }
+
+ public static final int CONSTRUCTOR = -1216812563;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeChrome extends SessionType {
+ public SessionTypeChrome() {
+ }
+
+ public static final int CONSTRUCTOR = 1573464425;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeEdge extends SessionType {
+ public SessionTypeEdge() {
+ }
+
+ public static final int CONSTRUCTOR = -538916005;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeFirefox extends SessionType {
+ public SessionTypeFirefox() {
+ }
+
+ public static final int CONSTRUCTOR = 2122579364;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeIpad extends SessionType {
+ public SessionTypeIpad() {
+ }
+
+ public static final int CONSTRUCTOR = 1294647023;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeIphone extends SessionType {
+ public SessionTypeIphone() {
+ }
+
+ public static final int CONSTRUCTOR = 97616573;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeLinux extends SessionType {
+ public SessionTypeLinux() {
+ }
+
+ public static final int CONSTRUCTOR = -1487422871;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeMac extends SessionType {
+ public SessionTypeMac() {
+ }
+
+ public static final int CONSTRUCTOR = -612250975;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeOpera extends SessionType {
+ public SessionTypeOpera() {
+ }
+
+ public static final int CONSTRUCTOR = -1463673734;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeSafari extends SessionType {
+ public SessionTypeSafari() {
+ }
+
+ public static final int CONSTRUCTOR = 710646873;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeUbuntu extends SessionType {
+ public SessionTypeUbuntu() {
+ }
+
+ public static final int CONSTRUCTOR = 1569680069;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeUnknown extends SessionType {
+ public SessionTypeUnknown() {
+ }
+
+ public static final int CONSTRUCTOR = 233926704;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeVivaldi extends SessionType {
+ public SessionTypeVivaldi() {
+ }
+
+ public static final int CONSTRUCTOR = 1120503279;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeWindows extends SessionType {
+ public SessionTypeWindows() {
+ }
+
+ public static final int CONSTRUCTOR = -1676512600;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SessionTypeXbox extends SessionType {
+ public SessionTypeXbox() {
+ }
+
+ public static final int CONSTRUCTOR = 1856216492;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Sessions extends Object {
+
+ public Session[] sessions;
+
+ public int inactiveSessionTtlDays;
+
+ public Sessions() {
+ }
+
+ public Sessions(Session[] sessions, int inactiveSessionTtlDays) {
+ this.sessions = sessions;
+ this.inactiveSessionTtlDays = inactiveSessionTtlDays;
+ }
+
+ public static final int CONSTRUCTOR = 842912274;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SharedChat extends Object {
+
+ public long chatId;
+
+ public String title;
+
+ public String username;
+
+ public Photo photo;
+
+ public SharedChat() {
+ }
+
+ public SharedChat(long chatId, String title, String username, Photo photo) {
+ this.chatId = chatId;
+ this.title = title;
+ this.username = username;
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = 1250406426;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SharedUser extends Object {
+
+ public long userId;
+
+ public String firstName;
+
+ public String lastName;
+
+ public String username;
+
+ public Photo photo;
+
+ public SharedUser() {
+ }
+
+ public SharedUser(long userId, String firstName, String lastName, String username, Photo photo) {
+ this.userId = userId;
+ this.firstName = firstName;
+ this.lastName = lastName;
+ this.username = username;
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = 293020919;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ShippingOption extends Object {
+
+ public String id;
+
+ public String title;
+
+ public LabeledPricePart[] priceParts;
+
+ public ShippingOption() {
+ }
+
+ public ShippingOption(String id, String title, LabeledPricePart[] priceParts) {
+ this.id = id;
+ this.title = title;
+ this.priceParts = priceParts;
+ }
+
+ public static final int CONSTRUCTOR = 1425690001;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class SpeechRecognitionResult extends Object {
+
+ public SpeechRecognitionResult() {
+ }
+ }
+
+ public static class SpeechRecognitionResultPending extends SpeechRecognitionResult {
+
+ public String partialText;
+
+ public SpeechRecognitionResultPending() {
+ }
+
+ public SpeechRecognitionResultPending(String partialText) {
+ this.partialText = partialText;
+ }
+
+ public static final int CONSTRUCTOR = -1631810048;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SpeechRecognitionResultText extends SpeechRecognitionResult {
+
+ public String text;
+
+ public SpeechRecognitionResultText() {
+ }
+
+ public SpeechRecognitionResultText(String text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = -2132377123;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SpeechRecognitionResultError extends SpeechRecognitionResult {
+
+ public Error error;
+
+ public SpeechRecognitionResultError() {
+ }
+
+ public SpeechRecognitionResultError(Error error) {
+ this.error = error;
+ }
+
+ public static final int CONSTRUCTOR = 164774908;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SponsoredMessage extends Object {
+
+ public long messageId;
+
+ public boolean isRecommended;
+
+ public boolean canBeReported;
+
+ public MessageContent content;
+
+ public MessageSponsor sponsor;
+
+ public String title;
+
+ public String buttonText;
+
+ public int accentColorId;
+
+ public long backgroundCustomEmojiId;
+
+ public String additionalInfo;
+
+ public SponsoredMessage() {
+ }
+
+ public SponsoredMessage(long messageId, boolean isRecommended, boolean canBeReported, MessageContent content, MessageSponsor sponsor, String title, String buttonText, int accentColorId, long backgroundCustomEmojiId, String additionalInfo) {
+ this.messageId = messageId;
+ this.isRecommended = isRecommended;
+ this.canBeReported = canBeReported;
+ this.content = content;
+ this.sponsor = sponsor;
+ this.title = title;
+ this.buttonText = buttonText;
+ this.accentColorId = accentColorId;
+ this.backgroundCustomEmojiId = backgroundCustomEmojiId;
+ this.additionalInfo = additionalInfo;
+ }
+
+ public static final int CONSTRUCTOR = -1215476699;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SponsoredMessages extends Object {
+
+ public SponsoredMessage[] messages;
+
+ public int messagesBetween;
+
+ public SponsoredMessages() {
+ }
+
+ public SponsoredMessages(SponsoredMessage[] messages, int messagesBetween) {
+ this.messages = messages;
+ this.messagesBetween = messagesBetween;
+ }
+
+ public static final int CONSTRUCTOR = -537674389;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarAmount extends Object {
+
+ public long starCount;
+
+ public int nanostarCount;
+
+ public StarAmount() {
+ }
+
+ public StarAmount(long starCount, int nanostarCount) {
+ this.starCount = starCount;
+ this.nanostarCount = nanostarCount;
+ }
+
+ public static final int CONSTRUCTOR = 1863216512;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarGiveawayPaymentOption extends Object {
+
+ public String currency;
+
+ public long amount;
+
+ public long starCount;
+
+ public String storeProductId;
+
+ public int yearlyBoostCount;
+
+ public StarGiveawayWinnerOption[] winnerOptions;
+
+ public boolean isDefault;
+
+ public boolean isAdditional;
+
+ public StarGiveawayPaymentOption() {
+ }
+
+ public StarGiveawayPaymentOption(String currency, long amount, long starCount, String storeProductId, int yearlyBoostCount, StarGiveawayWinnerOption[] winnerOptions, boolean isDefault, boolean isAdditional) {
+ this.currency = currency;
+ this.amount = amount;
+ this.starCount = starCount;
+ this.storeProductId = storeProductId;
+ this.yearlyBoostCount = yearlyBoostCount;
+ this.winnerOptions = winnerOptions;
+ this.isDefault = isDefault;
+ this.isAdditional = isAdditional;
+ }
+
+ public static final int CONSTRUCTOR = 565089625;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarGiveawayPaymentOptions extends Object {
+
+ public StarGiveawayPaymentOption[] options;
+
+ public StarGiveawayPaymentOptions() {
+ }
+
+ public StarGiveawayPaymentOptions(StarGiveawayPaymentOption[] options) {
+ this.options = options;
+ }
+
+ public static final int CONSTRUCTOR = -1216716679;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarGiveawayWinnerOption extends Object {
+
+ public int winnerCount;
+
+ public long wonStarCount;
+
+ public boolean isDefault;
+
+ public StarGiveawayWinnerOption() {
+ }
+
+ public StarGiveawayWinnerOption(int winnerCount, long wonStarCount, boolean isDefault) {
+ this.winnerCount = winnerCount;
+ this.wonStarCount = wonStarCount;
+ this.isDefault = isDefault;
+ }
+
+ public static final int CONSTRUCTOR = -865888761;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarPaymentOption extends Object {
+
+ public String currency;
+
+ public long amount;
+
+ public long starCount;
+
+ public String storeProductId;
+
+ public boolean isAdditional;
+
+ public StarPaymentOption() {
+ }
+
+ public StarPaymentOption(String currency, long amount, long starCount, String storeProductId, boolean isAdditional) {
+ this.currency = currency;
+ this.amount = amount;
+ this.starCount = starCount;
+ this.storeProductId = storeProductId;
+ this.isAdditional = isAdditional;
+ }
+
+ public static final int CONSTRUCTOR = -1364056047;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarPaymentOptions extends Object {
+
+ public StarPaymentOption[] options;
+
+ public StarPaymentOptions() {
+ }
+
+ public StarPaymentOptions(StarPaymentOption[] options) {
+ this.options = options;
+ }
+
+ public static final int CONSTRUCTOR = -423720498;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarRevenueStatistics extends Object {
+
+ public StatisticalGraph revenueByDayGraph;
+
+ public StarRevenueStatus status;
+
+ public double usdRate;
+
+ public StarRevenueStatistics() {
+ }
+
+ public StarRevenueStatistics(StatisticalGraph revenueByDayGraph, StarRevenueStatus status, double usdRate) {
+ this.revenueByDayGraph = revenueByDayGraph;
+ this.status = status;
+ this.usdRate = usdRate;
+ }
+
+ public static final int CONSTRUCTOR = -1121086889;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarRevenueStatus extends Object {
+
+ public StarAmount totalAmount;
+
+ public StarAmount currentAmount;
+
+ public StarAmount availableAmount;
+
+ public boolean withdrawalEnabled;
+
+ public int nextWithdrawalIn;
+
+ public StarRevenueStatus() {
+ }
+
+ public StarRevenueStatus(StarAmount totalAmount, StarAmount currentAmount, StarAmount availableAmount, boolean withdrawalEnabled, int nextWithdrawalIn) {
+ this.totalAmount = totalAmount;
+ this.currentAmount = currentAmount;
+ this.availableAmount = availableAmount;
+ this.withdrawalEnabled = withdrawalEnabled;
+ this.nextWithdrawalIn = nextWithdrawalIn;
+ }
+
+ public static final int CONSTRUCTOR = 2006266600;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarSubscription extends Object {
+
+ public String id;
+
+ public long chatId;
+
+ public int expirationDate;
+
+ public boolean isCanceled;
+
+ public boolean isExpiring;
+
+ public StarSubscriptionPricing pricing;
+
+ public StarSubscriptionType type;
+
+ public StarSubscription() {
+ }
+
+ public StarSubscription(String id, long chatId, int expirationDate, boolean isCanceled, boolean isExpiring, StarSubscriptionPricing pricing, StarSubscriptionType type) {
+ this.id = id;
+ this.chatId = chatId;
+ this.expirationDate = expirationDate;
+ this.isCanceled = isCanceled;
+ this.isExpiring = isExpiring;
+ this.pricing = pricing;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 976753141;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarSubscriptionPricing extends Object {
+
+ public int period;
+
+ public long starCount;
+
+ public StarSubscriptionPricing() {
+ }
+
+ public StarSubscriptionPricing(int period, long starCount) {
+ this.period = period;
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = -1767733162;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StarSubscriptionType extends Object {
+
+ public StarSubscriptionType() {
+ }
+ }
+
+ public static class StarSubscriptionTypeChannel extends StarSubscriptionType {
+
+ public boolean canReuse;
+
+ public String inviteLink;
+
+ public StarSubscriptionTypeChannel() {
+ }
+
+ public StarSubscriptionTypeChannel(boolean canReuse, String inviteLink) {
+ this.canReuse = canReuse;
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -1030048011;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarSubscriptionTypeBot extends StarSubscriptionType {
+
+ public boolean isCanceledByBot;
+
+ public String title;
+
+ public Photo photo;
+
+ public String invoiceLink;
+
+ public StarSubscriptionTypeBot() {
+ }
+
+ public StarSubscriptionTypeBot(boolean isCanceledByBot, String title, Photo photo, String invoiceLink) {
+ this.isCanceledByBot = isCanceledByBot;
+ this.title = title;
+ this.photo = photo;
+ this.invoiceLink = invoiceLink;
+ }
+
+ public static final int CONSTRUCTOR = 226024914;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarSubscriptions extends Object {
+
+ public StarAmount starAmount;
+
+ public StarSubscription[] subscriptions;
+
+ public long requiredStarCount;
+
+ public String nextOffset;
+
+ public StarSubscriptions() {
+ }
+
+ public StarSubscriptions(StarAmount starAmount, StarSubscription[] subscriptions, long requiredStarCount, String nextOffset) {
+ this.starAmount = starAmount;
+ this.subscriptions = subscriptions;
+ this.requiredStarCount = requiredStarCount;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 151169395;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransaction extends Object {
+
+ public String id;
+
+ public StarAmount starAmount;
+
+ public boolean isRefund;
+
+ public int date;
+
+ public StarTransactionType type;
+
+ public StarTransaction() {
+ }
+
+ public StarTransaction(String id, StarAmount starAmount, boolean isRefund, int date, StarTransactionType type) {
+ this.id = id;
+ this.starAmount = starAmount;
+ this.isRefund = isRefund;
+ this.date = date;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 2139228816;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StarTransactionDirection extends Object {
+
+ public StarTransactionDirection() {
+ }
+ }
+
+ public static class StarTransactionDirectionIncoming extends StarTransactionDirection {
+ public StarTransactionDirectionIncoming() {
+ }
+
+ public static final int CONSTRUCTOR = -1295335866;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionDirectionOutgoing extends StarTransactionDirection {
+ public StarTransactionDirectionOutgoing() {
+ }
+
+ public static final int CONSTRUCTOR = 1854125472;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StarTransactionType extends Object {
+
+ public StarTransactionType() {
+ }
+ }
+
+ public static class StarTransactionTypePremiumBotDeposit extends StarTransactionType {
+ public StarTransactionTypePremiumBotDeposit() {
+ }
+
+ public static final int CONSTRUCTOR = -663156466;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeAppStoreDeposit extends StarTransactionType {
+ public StarTransactionTypeAppStoreDeposit() {
+ }
+
+ public static final int CONSTRUCTOR = 136853825;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeGooglePlayDeposit extends StarTransactionType {
+ public StarTransactionTypeGooglePlayDeposit() {
+ }
+
+ public static final int CONSTRUCTOR = -323111338;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeFragmentDeposit extends StarTransactionType {
+ public StarTransactionTypeFragmentDeposit() {
+ }
+
+ public static final int CONSTRUCTOR = 123887172;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeUserDeposit extends StarTransactionType {
+
+ public long userId;
+
+ public Sticker sticker;
+
+ public StarTransactionTypeUserDeposit() {
+ }
+
+ public StarTransactionTypeUserDeposit(long userId, Sticker sticker) {
+ this.userId = userId;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = 204085481;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeGiveawayDeposit extends StarTransactionType {
+
+ public long chatId;
+
+ public long giveawayMessageId;
+
+ public StarTransactionTypeGiveawayDeposit() {
+ }
+
+ public StarTransactionTypeGiveawayDeposit(long chatId, long giveawayMessageId) {
+ this.chatId = chatId;
+ this.giveawayMessageId = giveawayMessageId;
+ }
+
+ public static final int CONSTRUCTOR = -1318977338;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeFragmentWithdrawal extends StarTransactionType {
+
+ public RevenueWithdrawalState withdrawalState;
+
+ public StarTransactionTypeFragmentWithdrawal() {
+ }
+
+ public StarTransactionTypeFragmentWithdrawal(RevenueWithdrawalState withdrawalState) {
+ this.withdrawalState = withdrawalState;
+ }
+
+ public static final int CONSTRUCTOR = -1355142766;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeTelegramAdsWithdrawal extends StarTransactionType {
+ public StarTransactionTypeTelegramAdsWithdrawal() {
+ }
+
+ public static final int CONSTRUCTOR = -1517386647;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeTelegramApiUsage extends StarTransactionType {
+
+ public int requestCount;
+
+ public StarTransactionTypeTelegramApiUsage() {
+ }
+
+ public StarTransactionTypeTelegramApiUsage(int requestCount) {
+ this.requestCount = requestCount;
+ }
+
+ public static final int CONSTRUCTOR = 665332478;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeBotPaidMediaPurchase extends StarTransactionType {
+
+ public long userId;
+
+ public PaidMedia[] media;
+
+ public StarTransactionTypeBotPaidMediaPurchase() {
+ }
+
+ public StarTransactionTypeBotPaidMediaPurchase(long userId, PaidMedia[] media) {
+ this.userId = userId;
+ this.media = media;
+ }
+
+ public static final int CONSTRUCTOR = 976645509;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeBotPaidMediaSale extends StarTransactionType {
+
+ public long userId;
+
+ public PaidMedia[] media;
+
+ public String payload;
+
+ public AffiliateInfo affiliate;
+
+ public StarTransactionTypeBotPaidMediaSale() {
+ }
+
+ public StarTransactionTypeBotPaidMediaSale(long userId, PaidMedia[] media, String payload, AffiliateInfo affiliate) {
+ this.userId = userId;
+ this.media = media;
+ this.payload = payload;
+ this.affiliate = affiliate;
+ }
+
+ public static final int CONSTRUCTOR = -1034408372;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeChannelPaidMediaPurchase extends StarTransactionType {
+
+ public long chatId;
+
+ public long messageId;
+
+ public PaidMedia[] media;
+
+ public StarTransactionTypeChannelPaidMediaPurchase() {
+ }
+
+ public StarTransactionTypeChannelPaidMediaPurchase(long chatId, long messageId, PaidMedia[] media) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.media = media;
+ }
+
+ public static final int CONSTRUCTOR = -1321281338;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeChannelPaidMediaSale extends StarTransactionType {
+
+ public long userId;
+
+ public long messageId;
+
+ public PaidMedia[] media;
+
+ public StarTransactionTypeChannelPaidMediaSale() {
+ }
+
+ public StarTransactionTypeChannelPaidMediaSale(long userId, long messageId, PaidMedia[] media) {
+ this.userId = userId;
+ this.messageId = messageId;
+ this.media = media;
+ }
+
+ public static final int CONSTRUCTOR = 52587085;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeBotInvoicePurchase extends StarTransactionType {
+
+ public long userId;
+
+ public ProductInfo productInfo;
+
+ public StarTransactionTypeBotInvoicePurchase() {
+ }
+
+ public StarTransactionTypeBotInvoicePurchase(long userId, ProductInfo productInfo) {
+ this.userId = userId;
+ this.productInfo = productInfo;
+ }
+
+ public static final int CONSTRUCTOR = 501066764;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeBotInvoiceSale extends StarTransactionType {
+
+ public long userId;
+
+ public ProductInfo productInfo;
+
+ public byte[] invoicePayload;
+
+ public AffiliateInfo affiliate;
+
+ public StarTransactionTypeBotInvoiceSale() {
+ }
+
+ public StarTransactionTypeBotInvoiceSale(long userId, ProductInfo productInfo, byte[] invoicePayload, AffiliateInfo affiliate) {
+ this.userId = userId;
+ this.productInfo = productInfo;
+ this.invoicePayload = invoicePayload;
+ this.affiliate = affiliate;
+ }
+
+ public static final int CONSTRUCTOR = 1534954799;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeBotSubscriptionPurchase extends StarTransactionType {
+
+ public long userId;
+
+ public int subscriptionPeriod;
+
+ public ProductInfo productInfo;
+
+ public StarTransactionTypeBotSubscriptionPurchase() {
+ }
+
+ public StarTransactionTypeBotSubscriptionPurchase(long userId, int subscriptionPeriod, ProductInfo productInfo) {
+ this.userId = userId;
+ this.subscriptionPeriod = subscriptionPeriod;
+ this.productInfo = productInfo;
+ }
+
+ public static final int CONSTRUCTOR = 1086264149;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeBotSubscriptionSale extends StarTransactionType {
+
+ public long userId;
+
+ public int subscriptionPeriod;
+
+ public ProductInfo productInfo;
+
+ public byte[] invoicePayload;
+
+ public AffiliateInfo affiliate;
+
+ public StarTransactionTypeBotSubscriptionSale() {
+ }
+
+ public StarTransactionTypeBotSubscriptionSale(long userId, int subscriptionPeriod, ProductInfo productInfo, byte[] invoicePayload, AffiliateInfo affiliate) {
+ this.userId = userId;
+ this.subscriptionPeriod = subscriptionPeriod;
+ this.productInfo = productInfo;
+ this.invoicePayload = invoicePayload;
+ this.affiliate = affiliate;
+ }
+
+ public static final int CONSTRUCTOR = 526936201;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeChannelSubscriptionPurchase extends StarTransactionType {
+
+ public long chatId;
+
+ public int subscriptionPeriod;
+
+ public StarTransactionTypeChannelSubscriptionPurchase() {
+ }
+
+ public StarTransactionTypeChannelSubscriptionPurchase(long chatId, int subscriptionPeriod) {
+ this.chatId = chatId;
+ this.subscriptionPeriod = subscriptionPeriod;
+ }
+
+ public static final int CONSTRUCTOR = 940487633;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeChannelSubscriptionSale extends StarTransactionType {
+
+ public long userId;
+
+ public int subscriptionPeriod;
+
+ public StarTransactionTypeChannelSubscriptionSale() {
+ }
+
+ public StarTransactionTypeChannelSubscriptionSale(long userId, int subscriptionPeriod) {
+ this.userId = userId;
+ this.subscriptionPeriod = subscriptionPeriod;
+ }
+
+ public static final int CONSTRUCTOR = -32342910;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeGiftPurchase extends StarTransactionType {
+
+ public long userId;
+
+ public Gift gift;
+
+ public StarTransactionTypeGiftPurchase() {
+ }
+
+ public StarTransactionTypeGiftPurchase(long userId, Gift gift) {
+ this.userId = userId;
+ this.gift = gift;
+ }
+
+ public static final int CONSTRUCTOR = -278979246;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeGiftSale extends StarTransactionType {
+
+ public long userId;
+
+ public Gift gift;
+
+ public StarTransactionTypeGiftSale() {
+ }
+
+ public StarTransactionTypeGiftSale(long userId, Gift gift) {
+ this.userId = userId;
+ this.gift = gift;
+ }
+
+ public static final int CONSTRUCTOR = 1691750743;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeChannelPaidReactionSend extends StarTransactionType {
+
+ public long chatId;
+
+ public long messageId;
+
+ public StarTransactionTypeChannelPaidReactionSend() {
+ }
+
+ public StarTransactionTypeChannelPaidReactionSend(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = -1071224896;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeChannelPaidReactionReceive extends StarTransactionType {
+
+ public long userId;
+
+ public long messageId;
+
+ public StarTransactionTypeChannelPaidReactionReceive() {
+ }
+
+ public StarTransactionTypeChannelPaidReactionReceive(long userId, long messageId) {
+ this.userId = userId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = 601291243;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeAffiliateProgramCommission extends StarTransactionType {
+
+ public long chatId;
+
+ public int commissionPerMille;
+
+ public StarTransactionTypeAffiliateProgramCommission() {
+ }
+
+ public StarTransactionTypeAffiliateProgramCommission(long chatId, int commissionPerMille) {
+ this.chatId = chatId;
+ this.commissionPerMille = commissionPerMille;
+ }
+
+ public static final int CONSTRUCTOR = -1704757901;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactionTypeUnsupported extends StarTransactionType {
+ public StarTransactionTypeUnsupported() {
+ }
+
+ public static final int CONSTRUCTOR = 1993329330;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StarTransactions extends Object {
+
+ public StarAmount starAmount;
+
+ public StarTransaction[] transactions;
+
+ public String nextOffset;
+
+ public StarTransactions() {
+ }
+
+ public StarTransactions(StarAmount starAmount, StarTransaction[] transactions, String nextOffset) {
+ this.starAmount = starAmount;
+ this.transactions = transactions;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 1218437859;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StatisticalGraph extends Object {
+
+ public StatisticalGraph() {
+ }
+ }
+
+ public static class StatisticalGraphData extends StatisticalGraph {
+
+ public String jsonData;
+
+ public String zoomToken;
+
+ public StatisticalGraphData() {
+ }
+
+ public StatisticalGraphData(String jsonData, String zoomToken) {
+ this.jsonData = jsonData;
+ this.zoomToken = zoomToken;
+ }
+
+ public static final int CONSTRUCTOR = -1988940244;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StatisticalGraphAsync extends StatisticalGraph {
+
+ public String token;
+
+ public StatisticalGraphAsync() {
+ }
+
+ public StatisticalGraphAsync(String token) {
+ this.token = token;
+ }
+
+ public static final int CONSTRUCTOR = 435891103;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StatisticalGraphError extends StatisticalGraph {
+
+ public String errorMessage;
+
+ public StatisticalGraphError() {
+ }
+
+ public StatisticalGraphError(String errorMessage) {
+ this.errorMessage = errorMessage;
+ }
+
+ public static final int CONSTRUCTOR = -1006788526;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StatisticalValue extends Object {
+
+ public double value;
+
+ public double previousValue;
+
+ public double growthRatePercentage;
+
+ public StatisticalValue() {
+ }
+
+ public StatisticalValue(double value, double previousValue, double growthRatePercentage) {
+ this.value = value;
+ this.previousValue = previousValue;
+ this.growthRatePercentage = growthRatePercentage;
+ }
+
+ public static final int CONSTRUCTOR = 1651337846;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Sticker extends Object {
+
+ public long id;
+
+ public long setId;
+
+ public int width;
+
+ public int height;
+
+ public String emoji;
+
+ public StickerFormat format;
+
+ public StickerFullType fullType;
+
+ public Thumbnail thumbnail;
+
+ public File sticker;
+
+ public Sticker() {
+ }
+
+ public Sticker(long id, long setId, int width, int height, String emoji, StickerFormat format, StickerFullType fullType, Thumbnail thumbnail, File sticker) {
+ this.id = id;
+ this.setId = setId;
+ this.width = width;
+ this.height = height;
+ this.emoji = emoji;
+ this.format = format;
+ this.fullType = fullType;
+ this.thumbnail = thumbnail;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -647013057;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StickerFormat extends Object {
+
+ public StickerFormat() {
+ }
+ }
+
+ public static class StickerFormatWebp extends StickerFormat {
+ public StickerFormatWebp() {
+ }
+
+ public static final int CONSTRUCTOR = -2123043040;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StickerFormatTgs extends StickerFormat {
+ public StickerFormatTgs() {
+ }
+
+ public static final int CONSTRUCTOR = 1614588662;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StickerFormatWebm extends StickerFormat {
+ public StickerFormatWebm() {
+ }
+
+ public static final int CONSTRUCTOR = -2070162097;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StickerFullType extends Object {
+
+ public StickerFullType() {
+ }
+ }
+
+ public static class StickerFullTypeRegular extends StickerFullType {
+
+ public File premiumAnimation;
+
+ public StickerFullTypeRegular() {
+ }
+
+ public StickerFullTypeRegular(File premiumAnimation) {
+ this.premiumAnimation = premiumAnimation;
+ }
+
+ public static final int CONSTRUCTOR = -2006425865;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StickerFullTypeMask extends StickerFullType {
+
+ public MaskPosition maskPosition;
+
+ public StickerFullTypeMask() {
+ }
+
+ public StickerFullTypeMask(MaskPosition maskPosition) {
+ this.maskPosition = maskPosition;
+ }
+
+ public static final int CONSTRUCTOR = 652197687;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StickerFullTypeCustomEmoji extends StickerFullType {
+
+ public long customEmojiId;
+
+ public boolean needsRepainting;
+
+ public StickerFullTypeCustomEmoji() {
+ }
+
+ public StickerFullTypeCustomEmoji(long customEmojiId, boolean needsRepainting) {
+ this.customEmojiId = customEmojiId;
+ this.needsRepainting = needsRepainting;
+ }
+
+ public static final int CONSTRUCTOR = -1015085653;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StickerSet extends Object {
+
+ public long id;
+
+ public String title;
+
+ public String name;
+
+ public Thumbnail thumbnail;
+
+ public Outline thumbnailOutline;
+
+ public boolean isOwned;
+
+ public boolean isInstalled;
+
+ public boolean isArchived;
+
+ public boolean isOfficial;
+
+ public StickerType stickerType;
+
+ public boolean needsRepainting;
+
+ public boolean isAllowedAsChatEmojiStatus;
+
+ public boolean isViewed;
+
+ public Sticker[] stickers;
+
+ public Emojis[] emojis;
+
+ public StickerSet() {
+ }
+
+ public StickerSet(long id, String title, String name, Thumbnail thumbnail, Outline thumbnailOutline, boolean isOwned, boolean isInstalled, boolean isArchived, boolean isOfficial, StickerType stickerType, boolean needsRepainting, boolean isAllowedAsChatEmojiStatus, boolean isViewed, Sticker[] stickers, Emojis[] emojis) {
+ this.id = id;
+ this.title = title;
+ this.name = name;
+ this.thumbnail = thumbnail;
+ this.thumbnailOutline = thumbnailOutline;
+ this.isOwned = isOwned;
+ this.isInstalled = isInstalled;
+ this.isArchived = isArchived;
+ this.isOfficial = isOfficial;
+ this.stickerType = stickerType;
+ this.needsRepainting = needsRepainting;
+ this.isAllowedAsChatEmojiStatus = isAllowedAsChatEmojiStatus;
+ this.isViewed = isViewed;
+ this.stickers = stickers;
+ this.emojis = emojis;
+ }
+
+ public static final int CONSTRUCTOR = -1783150210;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StickerSetInfo extends Object {
+
+ public long id;
+
+ public String title;
+
+ public String name;
+
+ public Thumbnail thumbnail;
+
+ public Outline thumbnailOutline;
+
+ public boolean isOwned;
+
+ public boolean isInstalled;
+
+ public boolean isArchived;
+
+ public boolean isOfficial;
+
+ public StickerType stickerType;
+
+ public boolean needsRepainting;
+
+ public boolean isAllowedAsChatEmojiStatus;
+
+ public boolean isViewed;
+
+ public int size;
+
+ public Sticker[] covers;
+
+ public StickerSetInfo() {
+ }
+
+ public StickerSetInfo(long id, String title, String name, Thumbnail thumbnail, Outline thumbnailOutline, boolean isOwned, boolean isInstalled, boolean isArchived, boolean isOfficial, StickerType stickerType, boolean needsRepainting, boolean isAllowedAsChatEmojiStatus, boolean isViewed, int size, Sticker[] covers) {
+ this.id = id;
+ this.title = title;
+ this.name = name;
+ this.thumbnail = thumbnail;
+ this.thumbnailOutline = thumbnailOutline;
+ this.isOwned = isOwned;
+ this.isInstalled = isInstalled;
+ this.isArchived = isArchived;
+ this.isOfficial = isOfficial;
+ this.stickerType = stickerType;
+ this.needsRepainting = needsRepainting;
+ this.isAllowedAsChatEmojiStatus = isAllowedAsChatEmojiStatus;
+ this.isViewed = isViewed;
+ this.size = size;
+ this.covers = covers;
+ }
+
+ public static final int CONSTRUCTOR = -1649074729;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StickerSets extends Object {
+
+ public int totalCount;
+
+ public StickerSetInfo[] sets;
+
+ public StickerSets() {
+ }
+
+ public StickerSets(int totalCount, StickerSetInfo[] sets) {
+ this.totalCount = totalCount;
+ this.sets = sets;
+ }
+
+ public static final int CONSTRUCTOR = -1883828812;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StickerType extends Object {
+
+ public StickerType() {
+ }
+ }
+
+ public static class StickerTypeRegular extends StickerType {
+ public StickerTypeRegular() {
+ }
+
+ public static final int CONSTRUCTOR = 56345973;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StickerTypeMask extends StickerType {
+ public StickerTypeMask() {
+ }
+
+ public static final int CONSTRUCTOR = -1765394796;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StickerTypeCustomEmoji extends StickerType {
+ public StickerTypeCustomEmoji() {
+ }
+
+ public static final int CONSTRUCTOR = -120752249;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Stickers extends Object {
+
+ public Sticker[] stickers;
+
+ public Stickers() {
+ }
+
+ public Stickers(Sticker[] stickers) {
+ this.stickers = stickers;
+ }
+
+ public static final int CONSTRUCTOR = 1974859260;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StorageStatistics extends Object {
+
+ public long size;
+
+ public int count;
+
+ public StorageStatisticsByChat[] byChat;
+
+ public StorageStatistics() {
+ }
+
+ public StorageStatistics(long size, int count, StorageStatisticsByChat[] byChat) {
+ this.size = size;
+ this.count = count;
+ this.byChat = byChat;
+ }
+
+ public static final int CONSTRUCTOR = 217237013;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StorageStatisticsByChat extends Object {
+
+ public long chatId;
+
+ public long size;
+
+ public int count;
+
+ public StorageStatisticsByFileType[] byFileType;
+
+ public StorageStatisticsByChat() {
+ }
+
+ public StorageStatisticsByChat(long chatId, long size, int count, StorageStatisticsByFileType[] byFileType) {
+ this.chatId = chatId;
+ this.size = size;
+ this.count = count;
+ this.byFileType = byFileType;
+ }
+
+ public static final int CONSTRUCTOR = 635434531;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StorageStatisticsByFileType extends Object {
+
+ public FileType fileType;
+
+ public long size;
+
+ public int count;
+
+ public StorageStatisticsByFileType() {
+ }
+
+ public StorageStatisticsByFileType(FileType fileType, long size, int count) {
+ this.fileType = fileType;
+ this.size = size;
+ this.count = count;
+ }
+
+ public static final int CONSTRUCTOR = 714012840;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StorageStatisticsFast extends Object {
+
+ public long filesSize;
+
+ public int fileCount;
+
+ public long databaseSize;
+
+ public long languagePackDatabaseSize;
+
+ public long logSize;
+
+ public StorageStatisticsFast() {
+ }
+
+ public StorageStatisticsFast(long filesSize, int fileCount, long databaseSize, long languagePackDatabaseSize, long logSize) {
+ this.filesSize = filesSize;
+ this.fileCount = fileCount;
+ this.databaseSize = databaseSize;
+ this.languagePackDatabaseSize = languagePackDatabaseSize;
+ this.logSize = logSize;
+ }
+
+ public static final int CONSTRUCTOR = -884922271;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StorePaymentPurpose extends Object {
+
+ public StorePaymentPurpose() {
+ }
+ }
+
+ public static class StorePaymentPurposePremiumSubscription extends StorePaymentPurpose {
+
+ public boolean isRestore;
+
+ public boolean isUpgrade;
+
+ public StorePaymentPurposePremiumSubscription() {
+ }
+
+ public StorePaymentPurposePremiumSubscription(boolean isRestore, boolean isUpgrade) {
+ this.isRestore = isRestore;
+ this.isUpgrade = isUpgrade;
+ }
+
+ public static final int CONSTRUCTOR = 1263894804;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StorePaymentPurposePremiumGiftCodes extends StorePaymentPurpose {
+
+ public long boostedChatId;
+
+ public String currency;
+
+ public long amount;
+
+ public long[] userIds;
+
+ public FormattedText text;
+
+ public StorePaymentPurposePremiumGiftCodes() {
+ }
+
+ public StorePaymentPurposePremiumGiftCodes(long boostedChatId, String currency, long amount, long[] userIds, FormattedText text) {
+ this.boostedChatId = boostedChatId;
+ this.currency = currency;
+ this.amount = amount;
+ this.userIds = userIds;
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = -1072286736;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StorePaymentPurposePremiumGiveaway extends StorePaymentPurpose {
+
+ public GiveawayParameters parameters;
+
+ public String currency;
+
+ public long amount;
+
+ public StorePaymentPurposePremiumGiveaway() {
+ }
+
+ public StorePaymentPurposePremiumGiveaway(GiveawayParameters parameters, String currency, long amount) {
+ this.parameters = parameters;
+ this.currency = currency;
+ this.amount = amount;
+ }
+
+ public static final int CONSTRUCTOR = 1302624938;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StorePaymentPurposeStarGiveaway extends StorePaymentPurpose {
+
+ public GiveawayParameters parameters;
+
+ public String currency;
+
+ public long amount;
+
+ public int winnerCount;
+
+ public long starCount;
+
+ public StorePaymentPurposeStarGiveaway() {
+ }
+
+ public StorePaymentPurposeStarGiveaway(GiveawayParameters parameters, String currency, long amount, int winnerCount, long starCount) {
+ this.parameters = parameters;
+ this.currency = currency;
+ this.amount = amount;
+ this.winnerCount = winnerCount;
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = 211212441;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StorePaymentPurposeStars extends StorePaymentPurpose {
+
+ public String currency;
+
+ public long amount;
+
+ public long starCount;
+
+ public StorePaymentPurposeStars() {
+ }
+
+ public StorePaymentPurposeStars(String currency, long amount, long starCount) {
+ this.currency = currency;
+ this.amount = amount;
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = -1803497708;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StorePaymentPurposeGiftedStars extends StorePaymentPurpose {
+
+ public long userId;
+
+ public String currency;
+
+ public long amount;
+
+ public long starCount;
+
+ public StorePaymentPurposeGiftedStars() {
+ }
+
+ public StorePaymentPurposeGiftedStars(long userId, String currency, long amount, long starCount) {
+ this.userId = userId;
+ this.currency = currency;
+ this.amount = amount;
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = 893691428;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Stories extends Object {
+
+ public int totalCount;
+
+ public Story[] stories;
+
+ public int[] pinnedStoryIds;
+
+ public Stories() {
+ }
+
+ public Stories(int totalCount, Story[] stories, int[] pinnedStoryIds) {
+ this.totalCount = totalCount;
+ this.stories = stories;
+ this.pinnedStoryIds = pinnedStoryIds;
+ }
+
+ public static final int CONSTRUCTOR = 670157595;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Story extends Object {
+
+ public int id;
+
+ public long senderChatId;
+
+ public MessageSender senderId;
+
+ public int date;
+
+ public boolean isBeingSent;
+
+ public boolean isBeingEdited;
+
+ public boolean isEdited;
+
+ public boolean isPostedToChatPage;
+
+ public boolean isVisibleOnlyForSelf;
+
+ public boolean canBeDeleted;
+
+ public boolean canBeEdited;
+
+ public boolean canBeForwarded;
+
+ public boolean canBeReplied;
+
+ public boolean canToggleIsPostedToChatPage;
+
+ public boolean canGetStatistics;
+
+ public boolean canGetInteractions;
+
+ public boolean hasExpiredViewers;
+
+ public StoryRepostInfo repostInfo;
+
+ public StoryInteractionInfo interactionInfo;
+
+ public ReactionType chosenReactionType;
+
+ public StoryPrivacySettings privacySettings;
+
+ public StoryContent content;
+
+ public StoryArea[] areas;
+
+ public FormattedText caption;
+
+ public Story() {
+ }
+
+ public Story(int id, long senderChatId, MessageSender senderId, int date, boolean isBeingSent, boolean isBeingEdited, boolean isEdited, boolean isPostedToChatPage, boolean isVisibleOnlyForSelf, boolean canBeDeleted, boolean canBeEdited, boolean canBeForwarded, boolean canBeReplied, boolean canToggleIsPostedToChatPage, boolean canGetStatistics, boolean canGetInteractions, boolean hasExpiredViewers, StoryRepostInfo repostInfo, StoryInteractionInfo interactionInfo, ReactionType chosenReactionType, StoryPrivacySettings privacySettings, StoryContent content, StoryArea[] areas, FormattedText caption) {
+ this.id = id;
+ this.senderChatId = senderChatId;
+ this.senderId = senderId;
+ this.date = date;
+ this.isBeingSent = isBeingSent;
+ this.isBeingEdited = isBeingEdited;
+ this.isEdited = isEdited;
+ this.isPostedToChatPage = isPostedToChatPage;
+ this.isVisibleOnlyForSelf = isVisibleOnlyForSelf;
+ this.canBeDeleted = canBeDeleted;
+ this.canBeEdited = canBeEdited;
+ this.canBeForwarded = canBeForwarded;
+ this.canBeReplied = canBeReplied;
+ this.canToggleIsPostedToChatPage = canToggleIsPostedToChatPage;
+ this.canGetStatistics = canGetStatistics;
+ this.canGetInteractions = canGetInteractions;
+ this.hasExpiredViewers = hasExpiredViewers;
+ this.repostInfo = repostInfo;
+ this.interactionInfo = interactionInfo;
+ this.chosenReactionType = chosenReactionType;
+ this.privacySettings = privacySettings;
+ this.content = content;
+ this.areas = areas;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = -294015331;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryArea extends Object {
+
+ public StoryAreaPosition position;
+
+ public StoryAreaType type;
+
+ public StoryArea() {
+ }
+
+ public StoryArea(StoryAreaPosition position, StoryAreaType type) {
+ this.position = position;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -906033314;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryAreaPosition extends Object {
+
+ public double xPercentage;
+
+ public double yPercentage;
+
+ public double widthPercentage;
+
+ public double heightPercentage;
+
+ public double rotationAngle;
+
+ public double cornerRadiusPercentage;
+
+ public StoryAreaPosition() {
+ }
+
+ public StoryAreaPosition(double xPercentage, double yPercentage, double widthPercentage, double heightPercentage, double rotationAngle, double cornerRadiusPercentage) {
+ this.xPercentage = xPercentage;
+ this.yPercentage = yPercentage;
+ this.widthPercentage = widthPercentage;
+ this.heightPercentage = heightPercentage;
+ this.rotationAngle = rotationAngle;
+ this.cornerRadiusPercentage = cornerRadiusPercentage;
+ }
+
+ public static final int CONSTRUCTOR = -1533023124;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StoryAreaType extends Object {
+
+ public StoryAreaType() {
+ }
+ }
+
+ public static class StoryAreaTypeLocation extends StoryAreaType {
+
+ public Location location;
+
+ public LocationAddress address;
+
+ public StoryAreaTypeLocation() {
+ }
+
+ public StoryAreaTypeLocation(Location location, LocationAddress address) {
+ this.location = location;
+ this.address = address;
+ }
+
+ public static final int CONSTRUCTOR = -1464612189;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryAreaTypeVenue extends StoryAreaType {
+
+ public Venue venue;
+
+ public StoryAreaTypeVenue() {
+ }
+
+ public StoryAreaTypeVenue(Venue venue) {
+ this.venue = venue;
+ }
+
+ public static final int CONSTRUCTOR = 414076166;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryAreaTypeSuggestedReaction extends StoryAreaType {
+
+ public ReactionType reactionType;
+
+ public int totalCount;
+
+ public boolean isDark;
+
+ public boolean isFlipped;
+
+ public StoryAreaTypeSuggestedReaction() {
+ }
+
+ public StoryAreaTypeSuggestedReaction(ReactionType reactionType, int totalCount, boolean isDark, boolean isFlipped) {
+ this.reactionType = reactionType;
+ this.totalCount = totalCount;
+ this.isDark = isDark;
+ this.isFlipped = isFlipped;
+ }
+
+ public static final int CONSTRUCTOR = -111177092;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryAreaTypeMessage extends StoryAreaType {
+
+ public long chatId;
+
+ public long messageId;
+
+ public StoryAreaTypeMessage() {
+ }
+
+ public StoryAreaTypeMessage(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = -1074825548;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryAreaTypeLink extends StoryAreaType {
+
+ public String url;
+
+ public StoryAreaTypeLink() {
+ }
+
+ public StoryAreaTypeLink(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -127770235;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryAreaTypeWeather extends StoryAreaType {
+
+ public double temperature;
+
+ public String emoji;
+
+ public int backgroundColor;
+
+ public StoryAreaTypeWeather() {
+ }
+
+ public StoryAreaTypeWeather(double temperature, String emoji, int backgroundColor) {
+ this.temperature = temperature;
+ this.emoji = emoji;
+ this.backgroundColor = backgroundColor;
+ }
+
+ public static final int CONSTRUCTOR = -1504150082;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StoryContent extends Object {
+
+ public StoryContent() {
+ }
+ }
+
+ public static class StoryContentPhoto extends StoryContent {
+
+ public Photo photo;
+
+ public StoryContentPhoto() {
+ }
+
+ public StoryContentPhoto(Photo photo) {
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -731971504;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryContentVideo extends StoryContent {
+
+ public StoryVideo video;
+
+ public StoryVideo alternativeVideo;
+
+ public StoryContentVideo() {
+ }
+
+ public StoryContentVideo(StoryVideo video, StoryVideo alternativeVideo) {
+ this.video = video;
+ this.alternativeVideo = alternativeVideo;
+ }
+
+ public static final int CONSTRUCTOR = -1291754842;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryContentUnsupported extends StoryContent {
+ public StoryContentUnsupported() {
+ }
+
+ public static final int CONSTRUCTOR = -2033715858;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryFullId extends Object {
+
+ public long senderChatId;
+
+ public int storyId;
+
+ public StoryFullId() {
+ }
+
+ public StoryFullId(long senderChatId, int storyId) {
+ this.senderChatId = senderChatId;
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = 1880961525;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryInfo extends Object {
+
+ public int storyId;
+
+ public int date;
+
+ public boolean isForCloseFriends;
+
+ public StoryInfo() {
+ }
+
+ public StoryInfo(int storyId, int date, boolean isForCloseFriends) {
+ this.storyId = storyId;
+ this.date = date;
+ this.isForCloseFriends = isForCloseFriends;
+ }
+
+ public static final int CONSTRUCTOR = -1986542766;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryInteraction extends Object {
+
+ public MessageSender actorId;
+
+ public int interactionDate;
+
+ public BlockList blockList;
+
+ public StoryInteractionType type;
+
+ public StoryInteraction() {
+ }
+
+ public StoryInteraction(MessageSender actorId, int interactionDate, BlockList blockList, StoryInteractionType type) {
+ this.actorId = actorId;
+ this.interactionDate = interactionDate;
+ this.blockList = blockList;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -702229982;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryInteractionInfo extends Object {
+
+ public int viewCount;
+
+ public int forwardCount;
+
+ public int reactionCount;
+
+ public long[] recentViewerUserIds;
+
+ public StoryInteractionInfo() {
+ }
+
+ public StoryInteractionInfo(int viewCount, int forwardCount, int reactionCount, long[] recentViewerUserIds) {
+ this.viewCount = viewCount;
+ this.forwardCount = forwardCount;
+ this.reactionCount = reactionCount;
+ this.recentViewerUserIds = recentViewerUserIds;
+ }
+
+ public static final int CONSTRUCTOR = -846542065;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StoryInteractionType extends Object {
+
+ public StoryInteractionType() {
+ }
+ }
+
+ public static class StoryInteractionTypeView extends StoryInteractionType {
+
+ public ReactionType chosenReactionType;
+
+ public StoryInteractionTypeView() {
+ }
+
+ public StoryInteractionTypeView(ReactionType chosenReactionType) {
+ this.chosenReactionType = chosenReactionType;
+ }
+
+ public static final int CONSTRUCTOR = 1407399888;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryInteractionTypeForward extends StoryInteractionType {
+
+ public Message message;
+
+ public StoryInteractionTypeForward() {
+ }
+
+ public StoryInteractionTypeForward(Message message) {
+ this.message = message;
+ }
+
+ public static final int CONSTRUCTOR = 668089599;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryInteractionTypeRepost extends StoryInteractionType {
+
+ public Story story;
+
+ public StoryInteractionTypeRepost() {
+ }
+
+ public StoryInteractionTypeRepost(Story story) {
+ this.story = story;
+ }
+
+ public static final int CONSTRUCTOR = -1021150780;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryInteractions extends Object {
+
+ public int totalCount;
+
+ public int totalForwardCount;
+
+ public int totalReactionCount;
+
+ public StoryInteraction[] interactions;
+
+ public String nextOffset;
+
+ public StoryInteractions() {
+ }
+
+ public StoryInteractions(int totalCount, int totalForwardCount, int totalReactionCount, StoryInteraction[] interactions, String nextOffset) {
+ this.totalCount = totalCount;
+ this.totalForwardCount = totalForwardCount;
+ this.totalReactionCount = totalReactionCount;
+ this.interactions = interactions;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 1537062962;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StoryList extends Object {
+
+ public StoryList() {
+ }
+ }
+
+ public static class StoryListMain extends StoryList {
+ public StoryListMain() {
+ }
+
+ public static final int CONSTRUCTOR = -672222209;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryListArchive extends StoryList {
+ public StoryListArchive() {
+ }
+
+ public static final int CONSTRUCTOR = -41900223;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StoryOrigin extends Object {
+
+ public StoryOrigin() {
+ }
+ }
+
+ public static class StoryOriginPublicStory extends StoryOrigin {
+
+ public long chatId;
+
+ public int storyId;
+
+ public StoryOriginPublicStory() {
+ }
+
+ public StoryOriginPublicStory(long chatId, int storyId) {
+ this.chatId = chatId;
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = 741842878;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryOriginHiddenUser extends StoryOrigin {
+
+ public String senderName;
+
+ public StoryOriginHiddenUser() {
+ }
+
+ public StoryOriginHiddenUser(String senderName) {
+ this.senderName = senderName;
+ }
+
+ public static final int CONSTRUCTOR = 1512016364;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class StoryPrivacySettings extends Object {
+
+ public StoryPrivacySettings() {
+ }
+ }
+
+ public static class StoryPrivacySettingsEveryone extends StoryPrivacySettings {
+
+ public long[] exceptUserIds;
+
+ public StoryPrivacySettingsEveryone() {
+ }
+
+ public StoryPrivacySettingsEveryone(long[] exceptUserIds) {
+ this.exceptUserIds = exceptUserIds;
+ }
+
+ public static final int CONSTRUCTOR = 890847843;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryPrivacySettingsContacts extends StoryPrivacySettings {
+
+ public long[] exceptUserIds;
+
+ public StoryPrivacySettingsContacts() {
+ }
+
+ public StoryPrivacySettingsContacts(long[] exceptUserIds) {
+ this.exceptUserIds = exceptUserIds;
+ }
+
+ public static final int CONSTRUCTOR = 50285309;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryPrivacySettingsCloseFriends extends StoryPrivacySettings {
+ public StoryPrivacySettingsCloseFriends() {
+ }
+
+ public static final int CONSTRUCTOR = 2097122144;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryPrivacySettingsSelectedUsers extends StoryPrivacySettings {
+
+ public long[] userIds;
+
+ public StoryPrivacySettingsSelectedUsers() {
+ }
+
+ public StoryPrivacySettingsSelectedUsers(long[] userIds) {
+ this.userIds = userIds;
+ }
+
+ public static final int CONSTRUCTOR = -1885772602;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryRepostInfo extends Object {
+
+ public StoryOrigin origin;
+
+ public boolean isContentModified;
+
+ public StoryRepostInfo() {
+ }
+
+ public StoryRepostInfo(StoryOrigin origin, boolean isContentModified) {
+ this.origin = origin;
+ this.isContentModified = isContentModified;
+ }
+
+ public static final int CONSTRUCTOR = -8412096;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryStatistics extends Object {
+
+ public StatisticalGraph storyInteractionGraph;
+
+ public StatisticalGraph storyReactionGraph;
+
+ public StoryStatistics() {
+ }
+
+ public StoryStatistics(StatisticalGraph storyInteractionGraph, StatisticalGraph storyReactionGraph) {
+ this.storyInteractionGraph = storyInteractionGraph;
+ this.storyReactionGraph = storyReactionGraph;
+ }
+
+ public static final int CONSTRUCTOR = 1178897259;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class StoryVideo extends Object {
+
+ public double duration;
+
+ public int width;
+
+ public int height;
+
+ public boolean hasStickers;
+
+ public boolean isAnimation;
+
+ public Minithumbnail minithumbnail;
+
+ public Thumbnail thumbnail;
+
+ public int preloadPrefixSize;
+
+ public double coverFrameTimestamp;
+
+ public File video;
+
+ public StoryVideo() {
+ }
+
+ public StoryVideo(double duration, int width, int height, boolean hasStickers, boolean isAnimation, Minithumbnail minithumbnail, Thumbnail thumbnail, int preloadPrefixSize, double coverFrameTimestamp, File video) {
+ this.duration = duration;
+ this.width = width;
+ this.height = height;
+ this.hasStickers = hasStickers;
+ this.isAnimation = isAnimation;
+ this.minithumbnail = minithumbnail;
+ this.thumbnail = thumbnail;
+ this.preloadPrefixSize = preloadPrefixSize;
+ this.coverFrameTimestamp = coverFrameTimestamp;
+ this.video = video;
+ }
+
+ public static final int CONSTRUCTOR = 1445661253;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class SuggestedAction extends Object {
+
+ public SuggestedAction() {
+ }
+ }
+
+ public static class SuggestedActionEnableArchiveAndMuteNewChats extends SuggestedAction {
+ public SuggestedActionEnableArchiveAndMuteNewChats() {
+ }
+
+ public static final int CONSTRUCTOR = 2017586255;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionCheckPassword extends SuggestedAction {
+ public SuggestedActionCheckPassword() {
+ }
+
+ public static final int CONSTRUCTOR = 1910534839;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionCheckPhoneNumber extends SuggestedAction {
+ public SuggestedActionCheckPhoneNumber() {
+ }
+
+ public static final int CONSTRUCTOR = 648771563;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionViewChecksHint extends SuggestedAction {
+ public SuggestedActionViewChecksHint() {
+ }
+
+ public static final int CONSTRUCTOR = 891303239;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionConvertToBroadcastGroup extends SuggestedAction {
+
+ public long supergroupId;
+
+ public SuggestedActionConvertToBroadcastGroup() {
+ }
+
+ public SuggestedActionConvertToBroadcastGroup(long supergroupId) {
+ this.supergroupId = supergroupId;
+ }
+
+ public static final int CONSTRUCTOR = -965071304;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionSetPassword extends SuggestedAction {
+
+ public int authorizationDelay;
+
+ public SuggestedActionSetPassword() {
+ }
+
+ public SuggestedActionSetPassword(int authorizationDelay) {
+ this.authorizationDelay = authorizationDelay;
+ }
+
+ public static final int CONSTRUCTOR = 1863613848;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionUpgradePremium extends SuggestedAction {
+ public SuggestedActionUpgradePremium() {
+ }
+
+ public static final int CONSTRUCTOR = 1890220539;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionRestorePremium extends SuggestedAction {
+ public SuggestedActionRestorePremium() {
+ }
+
+ public static final int CONSTRUCTOR = -385229468;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionSubscribeToAnnualPremium extends SuggestedAction {
+ public SuggestedActionSubscribeToAnnualPremium() {
+ }
+
+ public static final int CONSTRUCTOR = 373913787;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionGiftPremiumForChristmas extends SuggestedAction {
+ public SuggestedActionGiftPremiumForChristmas() {
+ }
+
+ public static final int CONSTRUCTOR = -1816924561;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionSetBirthdate extends SuggestedAction {
+ public SuggestedActionSetBirthdate() {
+ }
+
+ public static final int CONSTRUCTOR = -356672766;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionExtendPremium extends SuggestedAction {
+
+ public String managePremiumSubscriptionUrl;
+
+ public SuggestedActionExtendPremium() {
+ }
+
+ public SuggestedActionExtendPremium(String managePremiumSubscriptionUrl) {
+ this.managePremiumSubscriptionUrl = managePremiumSubscriptionUrl;
+ }
+
+ public static final int CONSTRUCTOR = -566207286;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SuggestedActionExtendStarSubscriptions extends SuggestedAction {
+ public SuggestedActionExtendStarSubscriptions() {
+ }
+
+ public static final int CONSTRUCTOR = -47000234;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Supergroup extends Object {
+
+ public long id;
+
+ public Usernames usernames;
+
+ public int date;
+
+ public ChatMemberStatus status;
+
+ public int memberCount;
+
+ public int boostLevel;
+
+ public boolean hasLinkedChat;
+
+ public boolean hasLocation;
+
+ public boolean signMessages;
+
+ public boolean showMessageSender;
+
+ public boolean joinToSendMessages;
+
+ public boolean joinByRequest;
+
+ public boolean isSlowModeEnabled;
+
+ public boolean isChannel;
+
+ public boolean isBroadcastGroup;
+
+ public boolean isForum;
+
+ public boolean isVerified;
+
+ public boolean hasSensitiveContent;
+
+ public String restrictionReason;
+
+ public boolean isScam;
+
+ public boolean isFake;
+
+ public boolean hasActiveStories;
+
+ public boolean hasUnreadActiveStories;
+
+ public Supergroup() {
+ }
+
+ public Supergroup(long id, Usernames usernames, int date, ChatMemberStatus status, int memberCount, int boostLevel, boolean hasLinkedChat, boolean hasLocation, boolean signMessages, boolean showMessageSender, boolean joinToSendMessages, boolean joinByRequest, boolean isSlowModeEnabled, boolean isChannel, boolean isBroadcastGroup, boolean isForum, boolean isVerified, boolean hasSensitiveContent, String restrictionReason, boolean isScam, boolean isFake, boolean hasActiveStories, boolean hasUnreadActiveStories) {
+ this.id = id;
+ this.usernames = usernames;
+ this.date = date;
+ this.status = status;
+ this.memberCount = memberCount;
+ this.boostLevel = boostLevel;
+ this.hasLinkedChat = hasLinkedChat;
+ this.hasLocation = hasLocation;
+ this.signMessages = signMessages;
+ this.showMessageSender = showMessageSender;
+ this.joinToSendMessages = joinToSendMessages;
+ this.joinByRequest = joinByRequest;
+ this.isSlowModeEnabled = isSlowModeEnabled;
+ this.isChannel = isChannel;
+ this.isBroadcastGroup = isBroadcastGroup;
+ this.isForum = isForum;
+ this.isVerified = isVerified;
+ this.hasSensitiveContent = hasSensitiveContent;
+ this.restrictionReason = restrictionReason;
+ this.isScam = isScam;
+ this.isFake = isFake;
+ this.hasActiveStories = hasActiveStories;
+ this.hasUnreadActiveStories = hasUnreadActiveStories;
+ }
+
+ public static final int CONSTRUCTOR = 212320974;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SupergroupFullInfo extends Object {
+
+ public ChatPhoto photo;
+
+ public String description;
+
+ public int memberCount;
+
+ public int administratorCount;
+
+ public int restrictedCount;
+
+ public int bannedCount;
+
+ public long linkedChatId;
+
+ public int slowModeDelay;
+
+ public double slowModeDelayExpiresIn;
+
+ public boolean canEnablePaidReaction;
+
+ public boolean canGetMembers;
+
+ public boolean hasHiddenMembers;
+
+ public boolean canHideMembers;
+
+ public boolean canSetStickerSet;
+
+ public boolean canSetLocation;
+
+ public boolean canGetStatistics;
+
+ public boolean canGetRevenueStatistics;
+
+ public boolean canGetStarRevenueStatistics;
+
+ public boolean canToggleAggressiveAntiSpam;
+
+ public boolean isAllHistoryAvailable;
+
+ public boolean canHaveSponsoredMessages;
+
+ public boolean hasAggressiveAntiSpamEnabled;
+
+ public boolean hasPaidMediaAllowed;
+
+ public boolean hasPinnedStories;
+
+ public int myBoostCount;
+
+ public int unrestrictBoostCount;
+
+ public long stickerSetId;
+
+ public long customEmojiStickerSetId;
+
+ public ChatLocation location;
+
+ public ChatInviteLink inviteLink;
+
+ public BotCommands[] botCommands;
+
+ public long upgradedFromBasicGroupId;
+
+ public long upgradedFromMaxMessageId;
+
+ public SupergroupFullInfo() {
+ }
+
+ public SupergroupFullInfo(ChatPhoto photo, String description, int memberCount, int administratorCount, int restrictedCount, int bannedCount, long linkedChatId, int slowModeDelay, double slowModeDelayExpiresIn, boolean canEnablePaidReaction, boolean canGetMembers, boolean hasHiddenMembers, boolean canHideMembers, boolean canSetStickerSet, boolean canSetLocation, boolean canGetStatistics, boolean canGetRevenueStatistics, boolean canGetStarRevenueStatistics, boolean canToggleAggressiveAntiSpam, boolean isAllHistoryAvailable, boolean canHaveSponsoredMessages, boolean hasAggressiveAntiSpamEnabled, boolean hasPaidMediaAllowed, boolean hasPinnedStories, int myBoostCount, int unrestrictBoostCount, long stickerSetId, long customEmojiStickerSetId, ChatLocation location, ChatInviteLink inviteLink, BotCommands[] botCommands, long upgradedFromBasicGroupId, long upgradedFromMaxMessageId) {
+ this.photo = photo;
+ this.description = description;
+ this.memberCount = memberCount;
+ this.administratorCount = administratorCount;
+ this.restrictedCount = restrictedCount;
+ this.bannedCount = bannedCount;
+ this.linkedChatId = linkedChatId;
+ this.slowModeDelay = slowModeDelay;
+ this.slowModeDelayExpiresIn = slowModeDelayExpiresIn;
+ this.canEnablePaidReaction = canEnablePaidReaction;
+ this.canGetMembers = canGetMembers;
+ this.hasHiddenMembers = hasHiddenMembers;
+ this.canHideMembers = canHideMembers;
+ this.canSetStickerSet = canSetStickerSet;
+ this.canSetLocation = canSetLocation;
+ this.canGetStatistics = canGetStatistics;
+ this.canGetRevenueStatistics = canGetRevenueStatistics;
+ this.canGetStarRevenueStatistics = canGetStarRevenueStatistics;
+ this.canToggleAggressiveAntiSpam = canToggleAggressiveAntiSpam;
+ this.isAllHistoryAvailable = isAllHistoryAvailable;
+ this.canHaveSponsoredMessages = canHaveSponsoredMessages;
+ this.hasAggressiveAntiSpamEnabled = hasAggressiveAntiSpamEnabled;
+ this.hasPaidMediaAllowed = hasPaidMediaAllowed;
+ this.hasPinnedStories = hasPinnedStories;
+ this.myBoostCount = myBoostCount;
+ this.unrestrictBoostCount = unrestrictBoostCount;
+ this.stickerSetId = stickerSetId;
+ this.customEmojiStickerSetId = customEmojiStickerSetId;
+ this.location = location;
+ this.inviteLink = inviteLink;
+ this.botCommands = botCommands;
+ this.upgradedFromBasicGroupId = upgradedFromBasicGroupId;
+ this.upgradedFromMaxMessageId = upgradedFromMaxMessageId;
+ }
+
+ public static final int CONSTRUCTOR = 1718501070;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class SupergroupMembersFilter extends Object {
+
+ public SupergroupMembersFilter() {
+ }
+ }
+
+ public static class SupergroupMembersFilterRecent extends SupergroupMembersFilter {
+ public SupergroupMembersFilterRecent() {
+ }
+
+ public static final int CONSTRUCTOR = 1178199509;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SupergroupMembersFilterContacts extends SupergroupMembersFilter {
+
+ public String query;
+
+ public SupergroupMembersFilterContacts() {
+ }
+
+ public SupergroupMembersFilterContacts(String query) {
+ this.query = query;
+ }
+
+ public static final int CONSTRUCTOR = -1282910856;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SupergroupMembersFilterAdministrators extends SupergroupMembersFilter {
+ public SupergroupMembersFilterAdministrators() {
+ }
+
+ public static final int CONSTRUCTOR = -2097380265;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SupergroupMembersFilterSearch extends SupergroupMembersFilter {
+
+ public String query;
+
+ public SupergroupMembersFilterSearch() {
+ }
+
+ public SupergroupMembersFilterSearch(String query) {
+ this.query = query;
+ }
+
+ public static final int CONSTRUCTOR = -1696358469;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SupergroupMembersFilterRestricted extends SupergroupMembersFilter {
+
+ public String query;
+
+ public SupergroupMembersFilterRestricted() {
+ }
+
+ public SupergroupMembersFilterRestricted(String query) {
+ this.query = query;
+ }
+
+ public static final int CONSTRUCTOR = -1107800034;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SupergroupMembersFilterBanned extends SupergroupMembersFilter {
+
+ public String query;
+
+ public SupergroupMembersFilterBanned() {
+ }
+
+ public SupergroupMembersFilterBanned(String query) {
+ this.query = query;
+ }
+
+ public static final int CONSTRUCTOR = -1210621683;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SupergroupMembersFilterMention extends SupergroupMembersFilter {
+
+ public String query;
+
+ public long messageThreadId;
+
+ public SupergroupMembersFilterMention() {
+ }
+
+ public SupergroupMembersFilterMention(String query, long messageThreadId) {
+ this.query = query;
+ this.messageThreadId = messageThreadId;
+ }
+
+ public static final int CONSTRUCTOR = 947915036;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class SupergroupMembersFilterBots extends SupergroupMembersFilter {
+ public SupergroupMembersFilterBots() {
+ }
+
+ public static final int CONSTRUCTOR = 492138918;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TMeUrl extends Object {
+
+ public String url;
+
+ public TMeUrlType type;
+
+ public TMeUrl() {
+ }
+
+ public TMeUrl(String url, TMeUrlType type) {
+ this.url = url;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -1140786622;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class TMeUrlType extends Object {
+
+ public TMeUrlType() {
+ }
+ }
+
+ public static class TMeUrlTypeUser extends TMeUrlType {
+
+ public long userId;
+
+ public TMeUrlTypeUser() {
+ }
+
+ public TMeUrlTypeUser(long userId) {
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = 125336602;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TMeUrlTypeSupergroup extends TMeUrlType {
+
+ public long supergroupId;
+
+ public TMeUrlTypeSupergroup() {
+ }
+
+ public TMeUrlTypeSupergroup(long supergroupId) {
+ this.supergroupId = supergroupId;
+ }
+
+ public static final int CONSTRUCTOR = -1353369944;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TMeUrlTypeChatInvite extends TMeUrlType {
+
+ public ChatInviteLinkInfo info;
+
+ public TMeUrlTypeChatInvite() {
+ }
+
+ public TMeUrlTypeChatInvite(ChatInviteLinkInfo info) {
+ this.info = info;
+ }
+
+ public static final int CONSTRUCTOR = 313907785;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TMeUrlTypeStickerSet extends TMeUrlType {
+
+ public long stickerSetId;
+
+ public TMeUrlTypeStickerSet() {
+ }
+
+ public TMeUrlTypeStickerSet(long stickerSetId) {
+ this.stickerSetId = stickerSetId;
+ }
+
+ public static final int CONSTRUCTOR = 1602473196;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TMeUrls extends Object {
+
+ public TMeUrl[] urls;
+
+ public TMeUrls() {
+ }
+
+ public TMeUrls(TMeUrl[] urls) {
+ this.urls = urls;
+ }
+
+ public static final int CONSTRUCTOR = -1130595098;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class TargetChat extends Object {
+
+ public TargetChat() {
+ }
+ }
+
+ public static class TargetChatCurrent extends TargetChat {
+ public TargetChatCurrent() {
+ }
+
+ public static final int CONSTRUCTOR = -416689904;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TargetChatChosen extends TargetChat {
+
+ public TargetChatTypes types;
+
+ public TargetChatChosen() {
+ }
+
+ public TargetChatChosen(TargetChatTypes types) {
+ this.types = types;
+ }
+
+ public static final int CONSTRUCTOR = -1392978522;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TargetChatInternalLink extends TargetChat {
+
+ public InternalLinkType link;
+
+ public TargetChatInternalLink() {
+ }
+
+ public TargetChatInternalLink(InternalLinkType link) {
+ this.link = link;
+ }
+
+ public static final int CONSTRUCTOR = -579301408;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TargetChatTypes extends Object {
+
+ public boolean allowUserChats;
+
+ public boolean allowBotChats;
+
+ public boolean allowGroupChats;
+
+ public boolean allowChannelChats;
+
+ public TargetChatTypes() {
+ }
+
+ public TargetChatTypes(boolean allowUserChats, boolean allowBotChats, boolean allowGroupChats, boolean allowChannelChats) {
+ this.allowUserChats = allowUserChats;
+ this.allowBotChats = allowBotChats;
+ this.allowGroupChats = allowGroupChats;
+ this.allowChannelChats = allowChannelChats;
+ }
+
+ public static final int CONSTRUCTOR = 1513098833;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class TelegramPaymentPurpose extends Object {
+
+ public TelegramPaymentPurpose() {
+ }
+ }
+
+ public static class TelegramPaymentPurposePremiumGiftCodes extends TelegramPaymentPurpose {
+
+ public long boostedChatId;
+
+ public String currency;
+
+ public long amount;
+
+ public long[] userIds;
+
+ public int monthCount;
+
+ public FormattedText text;
+
+ public TelegramPaymentPurposePremiumGiftCodes() {
+ }
+
+ public TelegramPaymentPurposePremiumGiftCodes(long boostedChatId, String currency, long amount, long[] userIds, int monthCount, FormattedText text) {
+ this.boostedChatId = boostedChatId;
+ this.currency = currency;
+ this.amount = amount;
+ this.userIds = userIds;
+ this.monthCount = monthCount;
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = -1863495348;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TelegramPaymentPurposePremiumGiveaway extends TelegramPaymentPurpose {
+
+ public GiveawayParameters parameters;
+
+ public String currency;
+
+ public long amount;
+
+ public int winnerCount;
+
+ public int monthCount;
+
+ public TelegramPaymentPurposePremiumGiveaway() {
+ }
+
+ public TelegramPaymentPurposePremiumGiveaway(GiveawayParameters parameters, String currency, long amount, int winnerCount, int monthCount) {
+ this.parameters = parameters;
+ this.currency = currency;
+ this.amount = amount;
+ this.winnerCount = winnerCount;
+ this.monthCount = monthCount;
+ }
+
+ public static final int CONSTRUCTOR = -760757441;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TelegramPaymentPurposeStars extends TelegramPaymentPurpose {
+
+ public String currency;
+
+ public long amount;
+
+ public long starCount;
+
+ public TelegramPaymentPurposeStars() {
+ }
+
+ public TelegramPaymentPurposeStars(String currency, long amount, long starCount) {
+ this.currency = currency;
+ this.amount = amount;
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = -495718830;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TelegramPaymentPurposeGiftedStars extends TelegramPaymentPurpose {
+
+ public long userId;
+
+ public String currency;
+
+ public long amount;
+
+ public long starCount;
+
+ public TelegramPaymentPurposeGiftedStars() {
+ }
+
+ public TelegramPaymentPurposeGiftedStars(long userId, String currency, long amount, long starCount) {
+ this.userId = userId;
+ this.currency = currency;
+ this.amount = amount;
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = -1850308042;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TelegramPaymentPurposeStarGiveaway extends TelegramPaymentPurpose {
+
+ public GiveawayParameters parameters;
+
+ public String currency;
+
+ public long amount;
+
+ public int winnerCount;
+
+ public long starCount;
+
+ public TelegramPaymentPurposeStarGiveaway() {
+ }
+
+ public TelegramPaymentPurposeStarGiveaway(GiveawayParameters parameters, String currency, long amount, int winnerCount, long starCount) {
+ this.parameters = parameters;
+ this.currency = currency;
+ this.amount = amount;
+ this.winnerCount = winnerCount;
+ this.starCount = starCount;
+ }
+
+ public static final int CONSTRUCTOR = 1014604689;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TelegramPaymentPurposeJoinChat extends TelegramPaymentPurpose {
+
+ public String inviteLink;
+
+ public TelegramPaymentPurposeJoinChat() {
+ }
+
+ public TelegramPaymentPurposeJoinChat(String inviteLink) {
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -1914869880;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TemporaryPasswordState extends Object {
+
+ public boolean hasPassword;
+
+ public int validFor;
+
+ public TemporaryPasswordState() {
+ }
+
+ public TemporaryPasswordState(boolean hasPassword, int validFor) {
+ this.hasPassword = hasPassword;
+ this.validFor = validFor;
+ }
+
+ public static final int CONSTRUCTOR = 939837410;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TermsOfService extends Object {
+
+ public FormattedText text;
+
+ public int minUserAge;
+
+ public boolean showPopup;
+
+ public TermsOfService() {
+ }
+
+ public TermsOfService(FormattedText text, int minUserAge, boolean showPopup) {
+ this.text = text;
+ this.minUserAge = minUserAge;
+ this.showPopup = showPopup;
+ }
+
+ public static final int CONSTRUCTOR = 739422597;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TestBytes extends Object {
+
+ public byte[] value;
+
+ public TestBytes() {
+ }
+
+ public TestBytes(byte[] value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = -1541225250;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TestInt extends Object {
+
+ public int value;
+
+ public TestInt() {
+ }
+
+ public TestInt(int value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = -574804983;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TestString extends Object {
+
+ public String value;
+
+ public TestString() {
+ }
+
+ public TestString(String value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = -27891572;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TestVectorInt extends Object {
+
+ public int[] value;
+
+ public TestVectorInt() {
+ }
+
+ public TestVectorInt(int[] value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = 593682027;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TestVectorIntObject extends Object {
+
+ public TestInt[] value;
+
+ public TestVectorIntObject() {
+ }
+
+ public TestVectorIntObject(TestInt[] value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = 125891546;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TestVectorString extends Object {
+
+ public String[] value;
+
+ public TestVectorString() {
+ }
+
+ public TestVectorString(String[] value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = 79339995;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TestVectorStringObject extends Object {
+
+ public TestString[] value;
+
+ public TestVectorStringObject() {
+ }
+
+ public TestVectorStringObject(TestString[] value) {
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = 80780537;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Text extends Object {
+
+ public String text;
+
+ public Text() {
+ }
+
+ public Text(String text) {
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = 578181272;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntities extends Object {
+
+ public TextEntity[] entities;
+
+ public TextEntities() {
+ }
+
+ public TextEntities(TextEntity[] entities) {
+ this.entities = entities;
+ }
+
+ public static final int CONSTRUCTOR = -933199172;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntity extends Object {
+
+ public int offset;
+
+ public int length;
+
+ public TextEntityType type;
+
+ public TextEntity() {
+ }
+
+ public TextEntity(int offset, int length, TextEntityType type) {
+ this.offset = offset;
+ this.length = length;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -1951688280;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class TextEntityType extends Object {
+
+ public TextEntityType() {
+ }
+ }
+
+ public static class TextEntityTypeMention extends TextEntityType {
+ public TextEntityTypeMention() {
+ }
+
+ public static final int CONSTRUCTOR = 934535013;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeHashtag extends TextEntityType {
+ public TextEntityTypeHashtag() {
+ }
+
+ public static final int CONSTRUCTOR = -1023958307;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeCashtag extends TextEntityType {
+ public TextEntityTypeCashtag() {
+ }
+
+ public static final int CONSTRUCTOR = 1222915915;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeBotCommand extends TextEntityType {
+ public TextEntityTypeBotCommand() {
+ }
+
+ public static final int CONSTRUCTOR = -1150997581;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeUrl extends TextEntityType {
+ public TextEntityTypeUrl() {
+ }
+
+ public static final int CONSTRUCTOR = -1312762756;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeEmailAddress extends TextEntityType {
+ public TextEntityTypeEmailAddress() {
+ }
+
+ public static final int CONSTRUCTOR = 1425545249;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypePhoneNumber extends TextEntityType {
+ public TextEntityTypePhoneNumber() {
+ }
+
+ public static final int CONSTRUCTOR = -1160140246;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeBankCardNumber extends TextEntityType {
+ public TextEntityTypeBankCardNumber() {
+ }
+
+ public static final int CONSTRUCTOR = 105986320;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeBold extends TextEntityType {
+ public TextEntityTypeBold() {
+ }
+
+ public static final int CONSTRUCTOR = -1128210000;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeItalic extends TextEntityType {
+ public TextEntityTypeItalic() {
+ }
+
+ public static final int CONSTRUCTOR = -118253987;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeUnderline extends TextEntityType {
+ public TextEntityTypeUnderline() {
+ }
+
+ public static final int CONSTRUCTOR = 792317842;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeStrikethrough extends TextEntityType {
+ public TextEntityTypeStrikethrough() {
+ }
+
+ public static final int CONSTRUCTOR = 961529082;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeSpoiler extends TextEntityType {
+ public TextEntityTypeSpoiler() {
+ }
+
+ public static final int CONSTRUCTOR = 544019899;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeCode extends TextEntityType {
+ public TextEntityTypeCode() {
+ }
+
+ public static final int CONSTRUCTOR = -974534326;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypePre extends TextEntityType {
+ public TextEntityTypePre() {
+ }
+
+ public static final int CONSTRUCTOR = 1648958606;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypePreCode extends TextEntityType {
+
+ public String language;
+
+ public TextEntityTypePreCode() {
+ }
+
+ public TextEntityTypePreCode(String language) {
+ this.language = language;
+ }
+
+ public static final int CONSTRUCTOR = -945325397;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeBlockQuote extends TextEntityType {
+ public TextEntityTypeBlockQuote() {
+ }
+
+ public static final int CONSTRUCTOR = -1003999032;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeExpandableBlockQuote extends TextEntityType {
+ public TextEntityTypeExpandableBlockQuote() {
+ }
+
+ public static final int CONSTRUCTOR = 36572261;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeTextUrl extends TextEntityType {
+
+ public String url;
+
+ public TextEntityTypeTextUrl() {
+ }
+
+ public TextEntityTypeTextUrl(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 445719651;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeMentionName extends TextEntityType {
+
+ public long userId;
+
+ public TextEntityTypeMentionName() {
+ }
+
+ public TextEntityTypeMentionName(long userId) {
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = -1570974289;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeCustomEmoji extends TextEntityType {
+
+ public long customEmojiId;
+
+ public TextEntityTypeCustomEmoji() {
+ }
+
+ public TextEntityTypeCustomEmoji(long customEmojiId) {
+ this.customEmojiId = customEmojiId;
+ }
+
+ public static final int CONSTRUCTOR = 1724820677;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextEntityTypeMediaTimestamp extends TextEntityType {
+
+ public int mediaTimestamp;
+
+ public TextEntityTypeMediaTimestamp() {
+ }
+
+ public TextEntityTypeMediaTimestamp(int mediaTimestamp) {
+ this.mediaTimestamp = mediaTimestamp;
+ }
+
+ public static final int CONSTRUCTOR = -1841898992;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class TextParseMode extends Object {
+
+ public TextParseMode() {
+ }
+ }
+
+ public static class TextParseModeMarkdown extends TextParseMode {
+
+ public int version;
+
+ public TextParseModeMarkdown() {
+ }
+
+ public TextParseModeMarkdown(int version) {
+ this.version = version;
+ }
+
+ public static final int CONSTRUCTOR = 360073407;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextParseModeHTML extends TextParseMode {
+ public TextParseModeHTML() {
+ }
+
+ public static final int CONSTRUCTOR = 1660208627;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TextQuote extends Object {
+
+ public FormattedText text;
+
+ public int position;
+
+ public boolean isManual;
+
+ public TextQuote() {
+ }
+
+ public TextQuote(FormattedText text, int position, boolean isManual) {
+ this.text = text;
+ this.position = position;
+ this.isManual = isManual;
+ }
+
+ public static final int CONSTRUCTOR = -2039105358;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ThemeParameters extends Object {
+
+ public int backgroundColor;
+
+ public int secondaryBackgroundColor;
+
+ public int headerBackgroundColor;
+
+ public int bottomBarBackgroundColor;
+
+ public int sectionBackgroundColor;
+
+ public int sectionSeparatorColor;
+
+ public int textColor;
+
+ public int accentTextColor;
+
+ public int sectionHeaderTextColor;
+
+ public int subtitleTextColor;
+
+ public int destructiveTextColor;
+
+ public int hintColor;
+
+ public int linkColor;
+
+ public int buttonColor;
+
+ public int buttonTextColor;
+
+ public ThemeParameters() {
+ }
+
+ public ThemeParameters(int backgroundColor, int secondaryBackgroundColor, int headerBackgroundColor, int bottomBarBackgroundColor, int sectionBackgroundColor, int sectionSeparatorColor, int textColor, int accentTextColor, int sectionHeaderTextColor, int subtitleTextColor, int destructiveTextColor, int hintColor, int linkColor, int buttonColor, int buttonTextColor) {
+ this.backgroundColor = backgroundColor;
+ this.secondaryBackgroundColor = secondaryBackgroundColor;
+ this.headerBackgroundColor = headerBackgroundColor;
+ this.bottomBarBackgroundColor = bottomBarBackgroundColor;
+ this.sectionBackgroundColor = sectionBackgroundColor;
+ this.sectionSeparatorColor = sectionSeparatorColor;
+ this.textColor = textColor;
+ this.accentTextColor = accentTextColor;
+ this.sectionHeaderTextColor = sectionHeaderTextColor;
+ this.subtitleTextColor = subtitleTextColor;
+ this.destructiveTextColor = destructiveTextColor;
+ this.hintColor = hintColor;
+ this.linkColor = linkColor;
+ this.buttonColor = buttonColor;
+ this.buttonTextColor = buttonTextColor;
+ }
+
+ public static final int CONSTRUCTOR = -276589137;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ThemeSettings extends Object {
+
+ public int accentColor;
+
+ public Background background;
+
+ public BackgroundFill outgoingMessageFill;
+
+ public boolean animateOutgoingMessageFill;
+
+ public int outgoingMessageAccentColor;
+
+ public ThemeSettings() {
+ }
+
+ public ThemeSettings(int accentColor, Background background, BackgroundFill outgoingMessageFill, boolean animateOutgoingMessageFill, int outgoingMessageAccentColor) {
+ this.accentColor = accentColor;
+ this.background = background;
+ this.outgoingMessageFill = outgoingMessageFill;
+ this.animateOutgoingMessageFill = animateOutgoingMessageFill;
+ this.outgoingMessageAccentColor = outgoingMessageAccentColor;
+ }
+
+ public static final int CONSTRUCTOR = -62120942;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Thumbnail extends Object {
+
+ public ThumbnailFormat format;
+
+ public int width;
+
+ public int height;
+
+ public File file;
+
+ public Thumbnail() {
+ }
+
+ public Thumbnail(ThumbnailFormat format, int width, int height, File file) {
+ this.format = format;
+ this.width = width;
+ this.height = height;
+ this.file = file;
+ }
+
+ public static final int CONSTRUCTOR = 1243275371;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class ThumbnailFormat extends Object {
+
+ public ThumbnailFormat() {
+ }
+ }
+
+ public static class ThumbnailFormatJpeg extends ThumbnailFormat {
+ public ThumbnailFormatJpeg() {
+ }
+
+ public static final int CONSTRUCTOR = -653503352;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ThumbnailFormatGif extends ThumbnailFormat {
+ public ThumbnailFormatGif() {
+ }
+
+ public static final int CONSTRUCTOR = 1252205962;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ThumbnailFormatMpeg4 extends ThumbnailFormat {
+ public ThumbnailFormatMpeg4() {
+ }
+
+ public static final int CONSTRUCTOR = 278616062;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ThumbnailFormatPng extends ThumbnailFormat {
+ public ThumbnailFormatPng() {
+ }
+
+ public static final int CONSTRUCTOR = 1577490421;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ThumbnailFormatTgs extends ThumbnailFormat {
+ public ThumbnailFormatTgs() {
+ }
+
+ public static final int CONSTRUCTOR = 1315522642;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ThumbnailFormatWebm extends ThumbnailFormat {
+ public ThumbnailFormatWebm() {
+ }
+
+ public static final int CONSTRUCTOR = -660084953;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ThumbnailFormatWebp extends ThumbnailFormat {
+ public ThumbnailFormatWebp() {
+ }
+
+ public static final int CONSTRUCTOR = -53588974;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TimeZone extends Object {
+
+ public String id;
+
+ public String name;
+
+ public int utcTimeOffset;
+
+ public TimeZone() {
+ }
+
+ public TimeZone(String id, String name, int utcTimeOffset) {
+ this.id = id;
+ this.name = name;
+ this.utcTimeOffset = utcTimeOffset;
+ }
+
+ public static final int CONSTRUCTOR = -1189481763;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TimeZones extends Object {
+
+ public TimeZone[] timeZones;
+
+ public TimeZones() {
+ }
+
+ public TimeZones(TimeZone[] timeZones) {
+ this.timeZones = timeZones;
+ }
+
+ public static final int CONSTRUCTOR = -334655570;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class TopChatCategory extends Object {
+
+ public TopChatCategory() {
+ }
+ }
+
+ public static class TopChatCategoryUsers extends TopChatCategory {
+ public TopChatCategoryUsers() {
+ }
+
+ public static final int CONSTRUCTOR = 1026706816;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TopChatCategoryBots extends TopChatCategory {
+ public TopChatCategoryBots() {
+ }
+
+ public static final int CONSTRUCTOR = -1577129195;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TopChatCategoryGroups extends TopChatCategory {
+ public TopChatCategoryGroups() {
+ }
+
+ public static final int CONSTRUCTOR = 1530056846;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TopChatCategoryChannels extends TopChatCategory {
+ public TopChatCategoryChannels() {
+ }
+
+ public static final int CONSTRUCTOR = -500825885;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TopChatCategoryInlineBots extends TopChatCategory {
+ public TopChatCategoryInlineBots() {
+ }
+
+ public static final int CONSTRUCTOR = 377023356;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TopChatCategoryWebAppBots extends TopChatCategory {
+ public TopChatCategoryWebAppBots() {
+ }
+
+ public static final int CONSTRUCTOR = 100062973;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TopChatCategoryCalls extends TopChatCategory {
+ public TopChatCategoryCalls() {
+ }
+
+ public static final int CONSTRUCTOR = 356208861;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TopChatCategoryForwardChats extends TopChatCategory {
+ public TopChatCategoryForwardChats() {
+ }
+
+ public static final int CONSTRUCTOR = 1695922133;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class TrendingStickerSets extends Object {
+
+ public int totalCount;
+
+ public StickerSetInfo[] sets;
+
+ public boolean isPremium;
+
+ public TrendingStickerSets() {
+ }
+
+ public TrendingStickerSets(int totalCount, StickerSetInfo[] sets, boolean isPremium) {
+ this.totalCount = totalCount;
+ this.sets = sets;
+ this.isPremium = isPremium;
+ }
+
+ public static final int CONSTRUCTOR = 41028940;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UnconfirmedSession extends Object {
+
+ public long id;
+
+ public int logInDate;
+
+ public String deviceModel;
+
+ public String location;
+
+ public UnconfirmedSession() {
+ }
+
+ public UnconfirmedSession(long id, int logInDate, String deviceModel, String location) {
+ this.id = id;
+ this.logInDate = logInDate;
+ this.deviceModel = deviceModel;
+ this.location = location;
+ }
+
+ public static final int CONSTRUCTOR = -2062726663;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UnreadReaction extends Object {
+
+ public ReactionType type;
+
+ public MessageSender senderId;
+
+ public boolean isBig;
+
+ public UnreadReaction() {
+ }
+
+ public UnreadReaction(ReactionType type, MessageSender senderId, boolean isBig) {
+ this.type = type;
+ this.senderId = senderId;
+ this.isBig = isBig;
+ }
+
+ public static final int CONSTRUCTOR = -1940178046;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class Update extends Object {
+
+ public Update() {
+ }
+ }
+
+ public static class UpdateAuthorizationState extends Update {
+
+ public AuthorizationState authorizationState;
+
+ public UpdateAuthorizationState() {
+ }
+
+ public UpdateAuthorizationState(AuthorizationState authorizationState) {
+ this.authorizationState = authorizationState;
+ }
+
+ public static final int CONSTRUCTOR = 1622347490;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewMessage extends Update {
+
+ public Message message;
+
+ public UpdateNewMessage() {
+ }
+
+ public UpdateNewMessage(Message message) {
+ this.message = message;
+ }
+
+ public static final int CONSTRUCTOR = -563105266;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageSendAcknowledged extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public UpdateMessageSendAcknowledged() {
+ }
+
+ public UpdateMessageSendAcknowledged(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = 1302843961;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageSendSucceeded extends Update {
+
+ public Message message;
+
+ public long oldMessageId;
+
+ public UpdateMessageSendSucceeded() {
+ }
+
+ public UpdateMessageSendSucceeded(Message message, long oldMessageId) {
+ this.message = message;
+ this.oldMessageId = oldMessageId;
+ }
+
+ public static final int CONSTRUCTOR = 1815715197;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageSendFailed extends Update {
+
+ public Message message;
+
+ public long oldMessageId;
+
+ public Error error;
+
+ public UpdateMessageSendFailed() {
+ }
+
+ public UpdateMessageSendFailed(Message message, long oldMessageId, Error error) {
+ this.message = message;
+ this.oldMessageId = oldMessageId;
+ this.error = error;
+ }
+
+ public static final int CONSTRUCTOR = -635701017;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageContent extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public MessageContent newContent;
+
+ public UpdateMessageContent() {
+ }
+
+ public UpdateMessageContent(long chatId, long messageId, MessageContent newContent) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.newContent = newContent;
+ }
+
+ public static final int CONSTRUCTOR = 506903332;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageEdited extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public int editDate;
+
+ public ReplyMarkup replyMarkup;
+
+ public UpdateMessageEdited() {
+ }
+
+ public UpdateMessageEdited(long chatId, long messageId, int editDate, ReplyMarkup replyMarkup) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.editDate = editDate;
+ this.replyMarkup = replyMarkup;
+ }
+
+ public static final int CONSTRUCTOR = -559545626;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageIsPinned extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public boolean isPinned;
+
+ public UpdateMessageIsPinned() {
+ }
+
+ public UpdateMessageIsPinned(long chatId, long messageId, boolean isPinned) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.isPinned = isPinned;
+ }
+
+ public static final int CONSTRUCTOR = 1102848829;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageInteractionInfo extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public MessageInteractionInfo interactionInfo;
+
+ public UpdateMessageInteractionInfo() {
+ }
+
+ public UpdateMessageInteractionInfo(long chatId, long messageId, MessageInteractionInfo interactionInfo) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.interactionInfo = interactionInfo;
+ }
+
+ public static final int CONSTRUCTOR = -1417659394;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageContentOpened extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public UpdateMessageContentOpened() {
+ }
+
+ public UpdateMessageContentOpened(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = -1520523131;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageMentionRead extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public int unreadMentionCount;
+
+ public UpdateMessageMentionRead() {
+ }
+
+ public UpdateMessageMentionRead(long chatId, long messageId, int unreadMentionCount) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.unreadMentionCount = unreadMentionCount;
+ }
+
+ public static final int CONSTRUCTOR = -252228282;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageUnreadReactions extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public UnreadReaction[] unreadReactions;
+
+ public int unreadReactionCount;
+
+ public UpdateMessageUnreadReactions() {
+ }
+
+ public UpdateMessageUnreadReactions(long chatId, long messageId, UnreadReaction[] unreadReactions, int unreadReactionCount) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.unreadReactions = unreadReactions;
+ this.unreadReactionCount = unreadReactionCount;
+ }
+
+ public static final int CONSTRUCTOR = 942840008;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageFactCheck extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public FactCheck factCheck;
+
+ public UpdateMessageFactCheck() {
+ }
+
+ public UpdateMessageFactCheck(long chatId, long messageId, FactCheck factCheck) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.factCheck = factCheck;
+ }
+
+ public static final int CONSTRUCTOR = 1014561538;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageLiveLocationViewed extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public UpdateMessageLiveLocationViewed() {
+ }
+
+ public UpdateMessageLiveLocationViewed(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = -1308260971;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateVideoPublished extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public UpdateVideoPublished() {
+ }
+
+ public UpdateVideoPublished(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = -352575406;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewChat extends Update {
+
+ public Chat chat;
+
+ public UpdateNewChat() {
+ }
+
+ public UpdateNewChat(Chat chat) {
+ this.chat = chat;
+ }
+
+ public static final int CONSTRUCTOR = 2075757773;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatTitle extends Update {
+
+ public long chatId;
+
+ public String title;
+
+ public UpdateChatTitle() {
+ }
+
+ public UpdateChatTitle(long chatId, String title) {
+ this.chatId = chatId;
+ this.title = title;
+ }
+
+ public static final int CONSTRUCTOR = -175405660;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatPhoto extends Update {
+
+ public long chatId;
+
+ public ChatPhotoInfo photo;
+
+ public UpdateChatPhoto() {
+ }
+
+ public UpdateChatPhoto(long chatId, ChatPhotoInfo photo) {
+ this.chatId = chatId;
+ this.photo = photo;
+ }
+
+ public static final int CONSTRUCTOR = -324713921;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatAccentColors extends Update {
+
+ public long chatId;
+
+ public int accentColorId;
+
+ public long backgroundCustomEmojiId;
+
+ public int profileAccentColorId;
+
+ public long profileBackgroundCustomEmojiId;
+
+ public UpdateChatAccentColors() {
+ }
+
+ public UpdateChatAccentColors(long chatId, int accentColorId, long backgroundCustomEmojiId, int profileAccentColorId, long profileBackgroundCustomEmojiId) {
+ this.chatId = chatId;
+ this.accentColorId = accentColorId;
+ this.backgroundCustomEmojiId = backgroundCustomEmojiId;
+ this.profileAccentColorId = profileAccentColorId;
+ this.profileBackgroundCustomEmojiId = profileBackgroundCustomEmojiId;
+ }
+
+ public static final int CONSTRUCTOR = -1212614407;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatPermissions extends Update {
+
+ public long chatId;
+
+ public ChatPermissions permissions;
+
+ public UpdateChatPermissions() {
+ }
+
+ public UpdateChatPermissions(long chatId, ChatPermissions permissions) {
+ this.chatId = chatId;
+ this.permissions = permissions;
+ }
+
+ public static final int CONSTRUCTOR = -1622010003;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatLastMessage extends Update {
+
+ public long chatId;
+
+ public Message lastMessage;
+
+ public ChatPosition[] positions;
+
+ public UpdateChatLastMessage() {
+ }
+
+ public UpdateChatLastMessage(long chatId, Message lastMessage, ChatPosition[] positions) {
+ this.chatId = chatId;
+ this.lastMessage = lastMessage;
+ this.positions = positions;
+ }
+
+ public static final int CONSTRUCTOR = -923244537;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatPosition extends Update {
+
+ public long chatId;
+
+ public ChatPosition position;
+
+ public UpdateChatPosition() {
+ }
+
+ public UpdateChatPosition(long chatId, ChatPosition position) {
+ this.chatId = chatId;
+ this.position = position;
+ }
+
+ public static final int CONSTRUCTOR = -8979849;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatAddedToList extends Update {
+
+ public long chatId;
+
+ public ChatList chatList;
+
+ public UpdateChatAddedToList() {
+ }
+
+ public UpdateChatAddedToList(long chatId, ChatList chatList) {
+ this.chatId = chatId;
+ this.chatList = chatList;
+ }
+
+ public static final int CONSTRUCTOR = -1418722068;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatRemovedFromList extends Update {
+
+ public long chatId;
+
+ public ChatList chatList;
+
+ public UpdateChatRemovedFromList() {
+ }
+
+ public UpdateChatRemovedFromList(long chatId, ChatList chatList) {
+ this.chatId = chatId;
+ this.chatList = chatList;
+ }
+
+ public static final int CONSTRUCTOR = 1294647836;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatReadInbox extends Update {
+
+ public long chatId;
+
+ public long lastReadInboxMessageId;
+
+ public int unreadCount;
+
+ public UpdateChatReadInbox() {
+ }
+
+ public UpdateChatReadInbox(long chatId, long lastReadInboxMessageId, int unreadCount) {
+ this.chatId = chatId;
+ this.lastReadInboxMessageId = lastReadInboxMessageId;
+ this.unreadCount = unreadCount;
+ }
+
+ public static final int CONSTRUCTOR = -797952281;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatReadOutbox extends Update {
+
+ public long chatId;
+
+ public long lastReadOutboxMessageId;
+
+ public UpdateChatReadOutbox() {
+ }
+
+ public UpdateChatReadOutbox(long chatId, long lastReadOutboxMessageId) {
+ this.chatId = chatId;
+ this.lastReadOutboxMessageId = lastReadOutboxMessageId;
+ }
+
+ public static final int CONSTRUCTOR = 708334213;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatActionBar extends Update {
+
+ public long chatId;
+
+ public ChatActionBar actionBar;
+
+ public UpdateChatActionBar() {
+ }
+
+ public UpdateChatActionBar(long chatId, ChatActionBar actionBar) {
+ this.chatId = chatId;
+ this.actionBar = actionBar;
+ }
+
+ public static final int CONSTRUCTOR = -643671870;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatBusinessBotManageBar extends Update {
+
+ public long chatId;
+
+ public BusinessBotManageBar businessBotManageBar;
+
+ public UpdateChatBusinessBotManageBar() {
+ }
+
+ public UpdateChatBusinessBotManageBar(long chatId, BusinessBotManageBar businessBotManageBar) {
+ this.chatId = chatId;
+ this.businessBotManageBar = businessBotManageBar;
+ }
+
+ public static final int CONSTRUCTOR = -1104091145;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatAvailableReactions extends Update {
+
+ public long chatId;
+
+ public ChatAvailableReactions availableReactions;
+
+ public UpdateChatAvailableReactions() {
+ }
+
+ public UpdateChatAvailableReactions(long chatId, ChatAvailableReactions availableReactions) {
+ this.chatId = chatId;
+ this.availableReactions = availableReactions;
+ }
+
+ public static final int CONSTRUCTOR = -1967909895;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatDraftMessage extends Update {
+
+ public long chatId;
+
+ public DraftMessage draftMessage;
+
+ public ChatPosition[] positions;
+
+ public UpdateChatDraftMessage() {
+ }
+
+ public UpdateChatDraftMessage(long chatId, DraftMessage draftMessage, ChatPosition[] positions) {
+ this.chatId = chatId;
+ this.draftMessage = draftMessage;
+ this.positions = positions;
+ }
+
+ public static final int CONSTRUCTOR = 1455190380;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatEmojiStatus extends Update {
+
+ public long chatId;
+
+ public EmojiStatus emojiStatus;
+
+ public UpdateChatEmojiStatus() {
+ }
+
+ public UpdateChatEmojiStatus(long chatId, EmojiStatus emojiStatus) {
+ this.chatId = chatId;
+ this.emojiStatus = emojiStatus;
+ }
+
+ public static final int CONSTRUCTOR = 2004444432;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatMessageSender extends Update {
+
+ public long chatId;
+
+ public MessageSender messageSenderId;
+
+ public UpdateChatMessageSender() {
+ }
+
+ public UpdateChatMessageSender(long chatId, MessageSender messageSenderId) {
+ this.chatId = chatId;
+ this.messageSenderId = messageSenderId;
+ }
+
+ public static final int CONSTRUCTOR = 2003849793;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatMessageAutoDeleteTime extends Update {
+
+ public long chatId;
+
+ public int messageAutoDeleteTime;
+
+ public UpdateChatMessageAutoDeleteTime() {
+ }
+
+ public UpdateChatMessageAutoDeleteTime(long chatId, int messageAutoDeleteTime) {
+ this.chatId = chatId;
+ this.messageAutoDeleteTime = messageAutoDeleteTime;
+ }
+
+ public static final int CONSTRUCTOR = 1900174821;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatNotificationSettings extends Update {
+
+ public long chatId;
+
+ public ChatNotificationSettings notificationSettings;
+
+ public UpdateChatNotificationSettings() {
+ }
+
+ public UpdateChatNotificationSettings(long chatId, ChatNotificationSettings notificationSettings) {
+ this.chatId = chatId;
+ this.notificationSettings = notificationSettings;
+ }
+
+ public static final int CONSTRUCTOR = -803163050;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatPendingJoinRequests extends Update {
+
+ public long chatId;
+
+ public ChatJoinRequestsInfo pendingJoinRequests;
+
+ public UpdateChatPendingJoinRequests() {
+ }
+
+ public UpdateChatPendingJoinRequests(long chatId, ChatJoinRequestsInfo pendingJoinRequests) {
+ this.chatId = chatId;
+ this.pendingJoinRequests = pendingJoinRequests;
+ }
+
+ public static final int CONSTRUCTOR = 348578785;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatReplyMarkup extends Update {
+
+ public long chatId;
+
+ public long replyMarkupMessageId;
+
+ public UpdateChatReplyMarkup() {
+ }
+
+ public UpdateChatReplyMarkup(long chatId, long replyMarkupMessageId) {
+ this.chatId = chatId;
+ this.replyMarkupMessageId = replyMarkupMessageId;
+ }
+
+ public static final int CONSTRUCTOR = 1309386144;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatBackground extends Update {
+
+ public long chatId;
+
+ public ChatBackground background;
+
+ public UpdateChatBackground() {
+ }
+
+ public UpdateChatBackground(long chatId, ChatBackground background) {
+ this.chatId = chatId;
+ this.background = background;
+ }
+
+ public static final int CONSTRUCTOR = -6473549;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatTheme extends Update {
+
+ public long chatId;
+
+ public String themeName;
+
+ public UpdateChatTheme() {
+ }
+
+ public UpdateChatTheme(long chatId, String themeName) {
+ this.chatId = chatId;
+ this.themeName = themeName;
+ }
+
+ public static final int CONSTRUCTOR = 838063205;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatUnreadMentionCount extends Update {
+
+ public long chatId;
+
+ public int unreadMentionCount;
+
+ public UpdateChatUnreadMentionCount() {
+ }
+
+ public UpdateChatUnreadMentionCount(long chatId, int unreadMentionCount) {
+ this.chatId = chatId;
+ this.unreadMentionCount = unreadMentionCount;
+ }
+
+ public static final int CONSTRUCTOR = -2131461348;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatUnreadReactionCount extends Update {
+
+ public long chatId;
+
+ public int unreadReactionCount;
+
+ public UpdateChatUnreadReactionCount() {
+ }
+
+ public UpdateChatUnreadReactionCount(long chatId, int unreadReactionCount) {
+ this.chatId = chatId;
+ this.unreadReactionCount = unreadReactionCount;
+ }
+
+ public static final int CONSTRUCTOR = -2124399395;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatVideoChat extends Update {
+
+ public long chatId;
+
+ public VideoChat videoChat;
+
+ public UpdateChatVideoChat() {
+ }
+
+ public UpdateChatVideoChat(long chatId, VideoChat videoChat) {
+ this.chatId = chatId;
+ this.videoChat = videoChat;
+ }
+
+ public static final int CONSTRUCTOR = 637226150;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatDefaultDisableNotification extends Update {
+
+ public long chatId;
+
+ public boolean defaultDisableNotification;
+
+ public UpdateChatDefaultDisableNotification() {
+ }
+
+ public UpdateChatDefaultDisableNotification(long chatId, boolean defaultDisableNotification) {
+ this.chatId = chatId;
+ this.defaultDisableNotification = defaultDisableNotification;
+ }
+
+ public static final int CONSTRUCTOR = 464087707;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatHasProtectedContent extends Update {
+
+ public long chatId;
+
+ public boolean hasProtectedContent;
+
+ public UpdateChatHasProtectedContent() {
+ }
+
+ public UpdateChatHasProtectedContent(long chatId, boolean hasProtectedContent) {
+ this.chatId = chatId;
+ this.hasProtectedContent = hasProtectedContent;
+ }
+
+ public static final int CONSTRUCTOR = 1800406811;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatIsTranslatable extends Update {
+
+ public long chatId;
+
+ public boolean isTranslatable;
+
+ public UpdateChatIsTranslatable() {
+ }
+
+ public UpdateChatIsTranslatable(long chatId, boolean isTranslatable) {
+ this.chatId = chatId;
+ this.isTranslatable = isTranslatable;
+ }
+
+ public static final int CONSTRUCTOR = 2063799831;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatIsMarkedAsUnread extends Update {
+
+ public long chatId;
+
+ public boolean isMarkedAsUnread;
+
+ public UpdateChatIsMarkedAsUnread() {
+ }
+
+ public UpdateChatIsMarkedAsUnread(long chatId, boolean isMarkedAsUnread) {
+ this.chatId = chatId;
+ this.isMarkedAsUnread = isMarkedAsUnread;
+ }
+
+ public static final int CONSTRUCTOR = 1468347188;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatViewAsTopics extends Update {
+
+ public long chatId;
+
+ public boolean viewAsTopics;
+
+ public UpdateChatViewAsTopics() {
+ }
+
+ public UpdateChatViewAsTopics(long chatId, boolean viewAsTopics) {
+ this.chatId = chatId;
+ this.viewAsTopics = viewAsTopics;
+ }
+
+ public static final int CONSTRUCTOR = 1543444029;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatBlockList extends Update {
+
+ public long chatId;
+
+ public BlockList blockList;
+
+ public UpdateChatBlockList() {
+ }
+
+ public UpdateChatBlockList(long chatId, BlockList blockList) {
+ this.chatId = chatId;
+ this.blockList = blockList;
+ }
+
+ public static final int CONSTRUCTOR = -2027228018;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatHasScheduledMessages extends Update {
+
+ public long chatId;
+
+ public boolean hasScheduledMessages;
+
+ public UpdateChatHasScheduledMessages() {
+ }
+
+ public UpdateChatHasScheduledMessages(long chatId, boolean hasScheduledMessages) {
+ this.chatId = chatId;
+ this.hasScheduledMessages = hasScheduledMessages;
+ }
+
+ public static final int CONSTRUCTOR = 2064958167;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatFolders extends Update {
+
+ public ChatFolderInfo[] chatFolders;
+
+ public int mainChatListPosition;
+
+ public boolean areTagsEnabled;
+
+ public UpdateChatFolders() {
+ }
+
+ public UpdateChatFolders(ChatFolderInfo[] chatFolders, int mainChatListPosition, boolean areTagsEnabled) {
+ this.chatFolders = chatFolders;
+ this.mainChatListPosition = mainChatListPosition;
+ this.areTagsEnabled = areTagsEnabled;
+ }
+
+ public static final int CONSTRUCTOR = 1998101395;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatOnlineMemberCount extends Update {
+
+ public long chatId;
+
+ public int onlineMemberCount;
+
+ public UpdateChatOnlineMemberCount() {
+ }
+
+ public UpdateChatOnlineMemberCount(long chatId, int onlineMemberCount) {
+ this.chatId = chatId;
+ this.onlineMemberCount = onlineMemberCount;
+ }
+
+ public static final int CONSTRUCTOR = 487369373;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSavedMessagesTopic extends Update {
+
+ public SavedMessagesTopic topic;
+
+ public UpdateSavedMessagesTopic() {
+ }
+
+ public UpdateSavedMessagesTopic(SavedMessagesTopic topic) {
+ this.topic = topic;
+ }
+
+ public static final int CONSTRUCTOR = -1618855120;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSavedMessagesTopicCount extends Update {
+
+ public int topicCount;
+
+ public UpdateSavedMessagesTopicCount() {
+ }
+
+ public UpdateSavedMessagesTopicCount(int topicCount) {
+ this.topicCount = topicCount;
+ }
+
+ public static final int CONSTRUCTOR = -70092335;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateQuickReplyShortcut extends Update {
+
+ public QuickReplyShortcut shortcut;
+
+ public UpdateQuickReplyShortcut() {
+ }
+
+ public UpdateQuickReplyShortcut(QuickReplyShortcut shortcut) {
+ this.shortcut = shortcut;
+ }
+
+ public static final int CONSTRUCTOR = -963430193;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateQuickReplyShortcutDeleted extends Update {
+
+ public int shortcutId;
+
+ public UpdateQuickReplyShortcutDeleted() {
+ }
+
+ public UpdateQuickReplyShortcutDeleted(int shortcutId) {
+ this.shortcutId = shortcutId;
+ }
+
+ public static final int CONSTRUCTOR = -390480838;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateQuickReplyShortcuts extends Update {
+
+ public int[] shortcutIds;
+
+ public UpdateQuickReplyShortcuts() {
+ }
+
+ public UpdateQuickReplyShortcuts(int[] shortcutIds) {
+ this.shortcutIds = shortcutIds;
+ }
+
+ public static final int CONSTRUCTOR = -1994849731;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateQuickReplyShortcutMessages extends Update {
+
+ public int shortcutId;
+
+ public QuickReplyMessage[] messages;
+
+ public UpdateQuickReplyShortcutMessages() {
+ }
+
+ public UpdateQuickReplyShortcutMessages(int shortcutId, QuickReplyMessage[] messages) {
+ this.shortcutId = shortcutId;
+ this.messages = messages;
+ }
+
+ public static final int CONSTRUCTOR = -1396685225;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateForumTopicInfo extends Update {
+
+ public long chatId;
+
+ public ForumTopicInfo info;
+
+ public UpdateForumTopicInfo() {
+ }
+
+ public UpdateForumTopicInfo(long chatId, ForumTopicInfo info) {
+ this.chatId = chatId;
+ this.info = info;
+ }
+
+ public static final int CONSTRUCTOR = 1802448073;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateScopeNotificationSettings extends Update {
+
+ public NotificationSettingsScope scope;
+
+ public ScopeNotificationSettings notificationSettings;
+
+ public UpdateScopeNotificationSettings() {
+ }
+
+ public UpdateScopeNotificationSettings(NotificationSettingsScope scope, ScopeNotificationSettings notificationSettings) {
+ this.scope = scope;
+ this.notificationSettings = notificationSettings;
+ }
+
+ public static final int CONSTRUCTOR = -1203975309;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateReactionNotificationSettings extends Update {
+
+ public ReactionNotificationSettings notificationSettings;
+
+ public UpdateReactionNotificationSettings() {
+ }
+
+ public UpdateReactionNotificationSettings(ReactionNotificationSettings notificationSettings) {
+ this.notificationSettings = notificationSettings;
+ }
+
+ public static final int CONSTRUCTOR = -447932436;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNotification extends Update {
+
+ public int notificationGroupId;
+
+ public Notification notification;
+
+ public UpdateNotification() {
+ }
+
+ public UpdateNotification(int notificationGroupId, Notification notification) {
+ this.notificationGroupId = notificationGroupId;
+ this.notification = notification;
+ }
+
+ public static final int CONSTRUCTOR = -1897496876;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNotificationGroup extends Update {
+
+ public int notificationGroupId;
+
+ public NotificationGroupType type;
+
+ public long chatId;
+
+ public long notificationSettingsChatId;
+
+ public long notificationSoundId;
+
+ public int totalCount;
+
+ public Notification[] addedNotifications;
+
+ public int[] removedNotificationIds;
+
+ public UpdateNotificationGroup() {
+ }
+
+ public UpdateNotificationGroup(int notificationGroupId, NotificationGroupType type, long chatId, long notificationSettingsChatId, long notificationSoundId, int totalCount, Notification[] addedNotifications, int[] removedNotificationIds) {
+ this.notificationGroupId = notificationGroupId;
+ this.type = type;
+ this.chatId = chatId;
+ this.notificationSettingsChatId = notificationSettingsChatId;
+ this.notificationSoundId = notificationSoundId;
+ this.totalCount = totalCount;
+ this.addedNotifications = addedNotifications;
+ this.removedNotificationIds = removedNotificationIds;
+ }
+
+ public static final int CONSTRUCTOR = 1381081378;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateActiveNotifications extends Update {
+
+ public NotificationGroup[] groups;
+
+ public UpdateActiveNotifications() {
+ }
+
+ public UpdateActiveNotifications(NotificationGroup[] groups) {
+ this.groups = groups;
+ }
+
+ public static final int CONSTRUCTOR = -1306672221;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateHavePendingNotifications extends Update {
+
+ public boolean haveDelayedNotifications;
+
+ public boolean haveUnreceivedNotifications;
+
+ public UpdateHavePendingNotifications() {
+ }
+
+ public UpdateHavePendingNotifications(boolean haveDelayedNotifications, boolean haveUnreceivedNotifications) {
+ this.haveDelayedNotifications = haveDelayedNotifications;
+ this.haveUnreceivedNotifications = haveUnreceivedNotifications;
+ }
+
+ public static final int CONSTRUCTOR = 179233243;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateDeleteMessages extends Update {
+
+ public long chatId;
+
+ public long[] messageIds;
+
+ public boolean isPermanent;
+
+ public boolean fromCache;
+
+ public UpdateDeleteMessages() {
+ }
+
+ public UpdateDeleteMessages(long chatId, long[] messageIds, boolean isPermanent, boolean fromCache) {
+ this.chatId = chatId;
+ this.messageIds = messageIds;
+ this.isPermanent = isPermanent;
+ this.fromCache = fromCache;
+ }
+
+ public static final int CONSTRUCTOR = 1669252686;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatAction extends Update {
+
+ public long chatId;
+
+ public long messageThreadId;
+
+ public MessageSender senderId;
+
+ public ChatAction action;
+
+ public UpdateChatAction() {
+ }
+
+ public UpdateChatAction(long chatId, long messageThreadId, MessageSender senderId, ChatAction action) {
+ this.chatId = chatId;
+ this.messageThreadId = messageThreadId;
+ this.senderId = senderId;
+ this.action = action;
+ }
+
+ public static final int CONSTRUCTOR = -1698703832;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateUserStatus extends Update {
+
+ public long userId;
+
+ public UserStatus status;
+
+ public UpdateUserStatus() {
+ }
+
+ public UpdateUserStatus(long userId, UserStatus status) {
+ this.userId = userId;
+ this.status = status;
+ }
+
+ public static final int CONSTRUCTOR = 958468625;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateUser extends Update {
+
+ public User user;
+
+ public UpdateUser() {
+ }
+
+ public UpdateUser(User user) {
+ this.user = user;
+ }
+
+ public static final int CONSTRUCTOR = 1183394041;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateBasicGroup extends Update {
+
+ public BasicGroup basicGroup;
+
+ public UpdateBasicGroup() {
+ }
+
+ public UpdateBasicGroup(BasicGroup basicGroup) {
+ this.basicGroup = basicGroup;
+ }
+
+ public static final int CONSTRUCTOR = -1003239581;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSupergroup extends Update {
+
+ public Supergroup supergroup;
+
+ public UpdateSupergroup() {
+ }
+
+ public UpdateSupergroup(Supergroup supergroup) {
+ this.supergroup = supergroup;
+ }
+
+ public static final int CONSTRUCTOR = -76782300;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSecretChat extends Update {
+
+ public SecretChat secretChat;
+
+ public UpdateSecretChat() {
+ }
+
+ public UpdateSecretChat(SecretChat secretChat) {
+ this.secretChat = secretChat;
+ }
+
+ public static final int CONSTRUCTOR = -1666903253;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateUserFullInfo extends Update {
+
+ public long userId;
+
+ public UserFullInfo userFullInfo;
+
+ public UpdateUserFullInfo() {
+ }
+
+ public UpdateUserFullInfo(long userId, UserFullInfo userFullInfo) {
+ this.userId = userId;
+ this.userFullInfo = userFullInfo;
+ }
+
+ public static final int CONSTRUCTOR = -51197161;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateBasicGroupFullInfo extends Update {
+
+ public long basicGroupId;
+
+ public BasicGroupFullInfo basicGroupFullInfo;
+
+ public UpdateBasicGroupFullInfo() {
+ }
+
+ public UpdateBasicGroupFullInfo(long basicGroupId, BasicGroupFullInfo basicGroupFullInfo) {
+ this.basicGroupId = basicGroupId;
+ this.basicGroupFullInfo = basicGroupFullInfo;
+ }
+
+ public static final int CONSTRUCTOR = 1391881151;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSupergroupFullInfo extends Update {
+
+ public long supergroupId;
+
+ public SupergroupFullInfo supergroupFullInfo;
+
+ public UpdateSupergroupFullInfo() {
+ }
+
+ public UpdateSupergroupFullInfo(long supergroupId, SupergroupFullInfo supergroupFullInfo) {
+ this.supergroupId = supergroupId;
+ this.supergroupFullInfo = supergroupFullInfo;
+ }
+
+ public static final int CONSTRUCTOR = 435539214;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateServiceNotification extends Update {
+
+ public String type;
+
+ public MessageContent content;
+
+ public UpdateServiceNotification() {
+ }
+
+ public UpdateServiceNotification(String type, MessageContent content) {
+ this.type = type;
+ this.content = content;
+ }
+
+ public static final int CONSTRUCTOR = 1318622637;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateFile extends Update {
+
+ public File file;
+
+ public UpdateFile() {
+ }
+
+ public UpdateFile(File file) {
+ this.file = file;
+ }
+
+ public static final int CONSTRUCTOR = 114132831;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateFileGenerationStart extends Update {
+
+ public long generationId;
+
+ public String originalPath;
+
+ public String destinationPath;
+
+ public String conversion;
+
+ public UpdateFileGenerationStart() {
+ }
+
+ public UpdateFileGenerationStart(long generationId, String originalPath, String destinationPath, String conversion) {
+ this.generationId = generationId;
+ this.originalPath = originalPath;
+ this.destinationPath = destinationPath;
+ this.conversion = conversion;
+ }
+
+ public static final int CONSTRUCTOR = 216817388;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateFileGenerationStop extends Update {
+
+ public long generationId;
+
+ public UpdateFileGenerationStop() {
+ }
+
+ public UpdateFileGenerationStop(long generationId) {
+ this.generationId = generationId;
+ }
+
+ public static final int CONSTRUCTOR = -1894449685;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateFileDownloads extends Update {
+
+ public long totalSize;
+
+ public int totalCount;
+
+ public long downloadedSize;
+
+ public UpdateFileDownloads() {
+ }
+
+ public UpdateFileDownloads(long totalSize, int totalCount, long downloadedSize) {
+ this.totalSize = totalSize;
+ this.totalCount = totalCount;
+ this.downloadedSize = downloadedSize;
+ }
+
+ public static final int CONSTRUCTOR = -389213497;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateFileAddedToDownloads extends Update {
+
+ public FileDownload fileDownload;
+
+ public DownloadedFileCounts counts;
+
+ public UpdateFileAddedToDownloads() {
+ }
+
+ public UpdateFileAddedToDownloads(FileDownload fileDownload, DownloadedFileCounts counts) {
+ this.fileDownload = fileDownload;
+ this.counts = counts;
+ }
+
+ public static final int CONSTRUCTOR = 1609929242;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateFileDownload extends Update {
+
+ public int fileId;
+
+ public int completeDate;
+
+ public boolean isPaused;
+
+ public DownloadedFileCounts counts;
+
+ public UpdateFileDownload() {
+ }
+
+ public UpdateFileDownload(int fileId, int completeDate, boolean isPaused, DownloadedFileCounts counts) {
+ this.fileId = fileId;
+ this.completeDate = completeDate;
+ this.isPaused = isPaused;
+ this.counts = counts;
+ }
+
+ public static final int CONSTRUCTOR = 875529162;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateFileRemovedFromDownloads extends Update {
+
+ public int fileId;
+
+ public DownloadedFileCounts counts;
+
+ public UpdateFileRemovedFromDownloads() {
+ }
+
+ public UpdateFileRemovedFromDownloads(int fileId, DownloadedFileCounts counts) {
+ this.fileId = fileId;
+ this.counts = counts;
+ }
+
+ public static final int CONSTRUCTOR = 1853625576;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateApplicationVerificationRequired extends Update {
+
+ public long verificationId;
+
+ public String nonce;
+
+ public long cloudProjectNumber;
+
+ public UpdateApplicationVerificationRequired() {
+ }
+
+ public UpdateApplicationVerificationRequired(long verificationId, String nonce, long cloudProjectNumber) {
+ this.verificationId = verificationId;
+ this.nonce = nonce;
+ this.cloudProjectNumber = cloudProjectNumber;
+ }
+
+ public static final int CONSTRUCTOR = -979607081;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateCall extends Update {
+
+ public Call call;
+
+ public UpdateCall() {
+ }
+
+ public UpdateCall(Call call) {
+ this.call = call;
+ }
+
+ public static final int CONSTRUCTOR = 1337184477;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateGroupCall extends Update {
+
+ public GroupCall groupCall;
+
+ public UpdateGroupCall() {
+ }
+
+ public UpdateGroupCall(GroupCall groupCall) {
+ this.groupCall = groupCall;
+ }
+
+ public static final int CONSTRUCTOR = 808603136;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateGroupCallParticipant extends Update {
+
+ public int groupCallId;
+
+ public GroupCallParticipant participant;
+
+ public UpdateGroupCallParticipant() {
+ }
+
+ public UpdateGroupCallParticipant(int groupCallId, GroupCallParticipant participant) {
+ this.groupCallId = groupCallId;
+ this.participant = participant;
+ }
+
+ public static final int CONSTRUCTOR = -803128071;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewCallSignalingData extends Update {
+
+ public int callId;
+
+ public byte[] data;
+
+ public UpdateNewCallSignalingData() {
+ }
+
+ public UpdateNewCallSignalingData(int callId, byte[] data) {
+ this.callId = callId;
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = 583634317;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateUserPrivacySettingRules extends Update {
+
+ public UserPrivacySetting setting;
+
+ public UserPrivacySettingRules rules;
+
+ public UpdateUserPrivacySettingRules() {
+ }
+
+ public UpdateUserPrivacySettingRules(UserPrivacySetting setting, UserPrivacySettingRules rules) {
+ this.setting = setting;
+ this.rules = rules;
+ }
+
+ public static final int CONSTRUCTOR = -912960778;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateUnreadMessageCount extends Update {
+
+ public ChatList chatList;
+
+ public int unreadCount;
+
+ public int unreadUnmutedCount;
+
+ public UpdateUnreadMessageCount() {
+ }
+
+ public UpdateUnreadMessageCount(ChatList chatList, int unreadCount, int unreadUnmutedCount) {
+ this.chatList = chatList;
+ this.unreadCount = unreadCount;
+ this.unreadUnmutedCount = unreadUnmutedCount;
+ }
+
+ public static final int CONSTRUCTOR = 78987721;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateUnreadChatCount extends Update {
+
+ public ChatList chatList;
+
+ public int totalCount;
+
+ public int unreadCount;
+
+ public int unreadUnmutedCount;
+
+ public int markedAsUnreadCount;
+
+ public int markedAsUnreadUnmutedCount;
+
+ public UpdateUnreadChatCount() {
+ }
+
+ public UpdateUnreadChatCount(ChatList chatList, int totalCount, int unreadCount, int unreadUnmutedCount, int markedAsUnreadCount, int markedAsUnreadUnmutedCount) {
+ this.chatList = chatList;
+ this.totalCount = totalCount;
+ this.unreadCount = unreadCount;
+ this.unreadUnmutedCount = unreadUnmutedCount;
+ this.markedAsUnreadCount = markedAsUnreadCount;
+ this.markedAsUnreadUnmutedCount = markedAsUnreadUnmutedCount;
+ }
+
+ public static final int CONSTRUCTOR = 1994494530;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateStory extends Update {
+
+ public Story story;
+
+ public UpdateStory() {
+ }
+
+ public UpdateStory(Story story) {
+ this.story = story;
+ }
+
+ public static final int CONSTRUCTOR = 419845935;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateStoryDeleted extends Update {
+
+ public long storySenderChatId;
+
+ public int storyId;
+
+ public UpdateStoryDeleted() {
+ }
+
+ public UpdateStoryDeleted(long storySenderChatId, int storyId) {
+ this.storySenderChatId = storySenderChatId;
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = 1879567261;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateStorySendSucceeded extends Update {
+
+ public Story story;
+
+ public int oldStoryId;
+
+ public UpdateStorySendSucceeded() {
+ }
+
+ public UpdateStorySendSucceeded(Story story, int oldStoryId) {
+ this.story = story;
+ this.oldStoryId = oldStoryId;
+ }
+
+ public static final int CONSTRUCTOR = -1188651433;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateStorySendFailed extends Update {
+
+ public Story story;
+
+ public Error error;
+
+ public CanSendStoryResult errorType;
+
+ public UpdateStorySendFailed() {
+ }
+
+ public UpdateStorySendFailed(Story story, Error error, CanSendStoryResult errorType) {
+ this.story = story;
+ this.error = error;
+ this.errorType = errorType;
+ }
+
+ public static final int CONSTRUCTOR = -532221543;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatActiveStories extends Update {
+
+ public ChatActiveStories activeStories;
+
+ public UpdateChatActiveStories() {
+ }
+
+ public UpdateChatActiveStories(ChatActiveStories activeStories) {
+ this.activeStories = activeStories;
+ }
+
+ public static final int CONSTRUCTOR = 2037935148;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateStoryListChatCount extends Update {
+
+ public StoryList storyList;
+
+ public int chatCount;
+
+ public UpdateStoryListChatCount() {
+ }
+
+ public UpdateStoryListChatCount(StoryList storyList, int chatCount) {
+ this.storyList = storyList;
+ this.chatCount = chatCount;
+ }
+
+ public static final int CONSTRUCTOR = -2009871041;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateStoryStealthMode extends Update {
+
+ public int activeUntilDate;
+
+ public int cooldownUntilDate;
+
+ public UpdateStoryStealthMode() {
+ }
+
+ public UpdateStoryStealthMode(int activeUntilDate, int cooldownUntilDate) {
+ this.activeUntilDate = activeUntilDate;
+ this.cooldownUntilDate = cooldownUntilDate;
+ }
+
+ public static final int CONSTRUCTOR = 1878506778;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateOption extends Update {
+
+ public String name;
+
+ public OptionValue value;
+
+ public UpdateOption() {
+ }
+
+ public UpdateOption(String name, OptionValue value) {
+ this.name = name;
+ this.value = value;
+ }
+
+ public static final int CONSTRUCTOR = 900822020;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateStickerSet extends Update {
+
+ public StickerSet stickerSet;
+
+ public UpdateStickerSet() {
+ }
+
+ public UpdateStickerSet(StickerSet stickerSet) {
+ this.stickerSet = stickerSet;
+ }
+
+ public static final int CONSTRUCTOR = 1879268812;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateInstalledStickerSets extends Update {
+
+ public StickerType stickerType;
+
+ public long[] stickerSetIds;
+
+ public UpdateInstalledStickerSets() {
+ }
+
+ public UpdateInstalledStickerSets(StickerType stickerType, long[] stickerSetIds) {
+ this.stickerType = stickerType;
+ this.stickerSetIds = stickerSetIds;
+ }
+
+ public static final int CONSTRUCTOR = -1735084182;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateTrendingStickerSets extends Update {
+
+ public StickerType stickerType;
+
+ public TrendingStickerSets stickerSets;
+
+ public UpdateTrendingStickerSets() {
+ }
+
+ public UpdateTrendingStickerSets(StickerType stickerType, TrendingStickerSets stickerSets) {
+ this.stickerType = stickerType;
+ this.stickerSets = stickerSets;
+ }
+
+ public static final int CONSTRUCTOR = 1266307239;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateRecentStickers extends Update {
+
+ public boolean isAttached;
+
+ public int[] stickerIds;
+
+ public UpdateRecentStickers() {
+ }
+
+ public UpdateRecentStickers(boolean isAttached, int[] stickerIds) {
+ this.isAttached = isAttached;
+ this.stickerIds = stickerIds;
+ }
+
+ public static final int CONSTRUCTOR = 1906403540;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateFavoriteStickers extends Update {
+
+ public int[] stickerIds;
+
+ public UpdateFavoriteStickers() {
+ }
+
+ public UpdateFavoriteStickers(int[] stickerIds) {
+ this.stickerIds = stickerIds;
+ }
+
+ public static final int CONSTRUCTOR = 1662240999;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSavedAnimations extends Update {
+
+ public int[] animationIds;
+
+ public UpdateSavedAnimations() {
+ }
+
+ public UpdateSavedAnimations(int[] animationIds) {
+ this.animationIds = animationIds;
+ }
+
+ public static final int CONSTRUCTOR = 65563814;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSavedNotificationSounds extends Update {
+
+ public long[] notificationSoundIds;
+
+ public UpdateSavedNotificationSounds() {
+ }
+
+ public UpdateSavedNotificationSounds(long[] notificationSoundIds) {
+ this.notificationSoundIds = notificationSoundIds;
+ }
+
+ public static final int CONSTRUCTOR = 1052725698;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateDefaultBackground extends Update {
+
+ public boolean forDarkTheme;
+
+ public Background background;
+
+ public UpdateDefaultBackground() {
+ }
+
+ public UpdateDefaultBackground(boolean forDarkTheme, Background background) {
+ this.forDarkTheme = forDarkTheme;
+ this.background = background;
+ }
+
+ public static final int CONSTRUCTOR = -716139217;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatThemes extends Update {
+
+ public ChatTheme[] chatThemes;
+
+ public UpdateChatThemes() {
+ }
+
+ public UpdateChatThemes(ChatTheme[] chatThemes) {
+ this.chatThemes = chatThemes;
+ }
+
+ public static final int CONSTRUCTOR = -1588098376;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateAccentColors extends Update {
+
+ public AccentColor[] colors;
+
+ public int[] availableAccentColorIds;
+
+ public UpdateAccentColors() {
+ }
+
+ public UpdateAccentColors(AccentColor[] colors, int[] availableAccentColorIds) {
+ this.colors = colors;
+ this.availableAccentColorIds = availableAccentColorIds;
+ }
+
+ public static final int CONSTRUCTOR = -1197047738;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateProfileAccentColors extends Update {
+
+ public ProfileAccentColor[] colors;
+
+ public int[] availableAccentColorIds;
+
+ public UpdateProfileAccentColors() {
+ }
+
+ public UpdateProfileAccentColors(ProfileAccentColor[] colors, int[] availableAccentColorIds) {
+ this.colors = colors;
+ this.availableAccentColorIds = availableAccentColorIds;
+ }
+
+ public static final int CONSTRUCTOR = 605202104;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateLanguagePackStrings extends Update {
+
+ public String localizationTarget;
+
+ public String languagePackId;
+
+ public LanguagePackString[] strings;
+
+ public UpdateLanguagePackStrings() {
+ }
+
+ public UpdateLanguagePackStrings(String localizationTarget, String languagePackId, LanguagePackString[] strings) {
+ this.localizationTarget = localizationTarget;
+ this.languagePackId = languagePackId;
+ this.strings = strings;
+ }
+
+ public static final int CONSTRUCTOR = -1056319886;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateConnectionState extends Update {
+
+ public ConnectionState state;
+
+ public UpdateConnectionState() {
+ }
+
+ public UpdateConnectionState(ConnectionState state) {
+ this.state = state;
+ }
+
+ public static final int CONSTRUCTOR = 1469292078;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateTermsOfService extends Update {
+
+ public String termsOfServiceId;
+
+ public TermsOfService termsOfService;
+
+ public UpdateTermsOfService() {
+ }
+
+ public UpdateTermsOfService(String termsOfServiceId, TermsOfService termsOfService) {
+ this.termsOfServiceId = termsOfServiceId;
+ this.termsOfService = termsOfService;
+ }
+
+ public static final int CONSTRUCTOR = -1304640162;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateUnconfirmedSession extends Update {
+
+ public UnconfirmedSession session;
+
+ public UpdateUnconfirmedSession() {
+ }
+
+ public UpdateUnconfirmedSession(UnconfirmedSession session) {
+ this.session = session;
+ }
+
+ public static final int CONSTRUCTOR = -22673268;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateAttachmentMenuBots extends Update {
+
+ public AttachmentMenuBot[] bots;
+
+ public UpdateAttachmentMenuBots() {
+ }
+
+ public UpdateAttachmentMenuBots(AttachmentMenuBot[] bots) {
+ this.bots = bots;
+ }
+
+ public static final int CONSTRUCTOR = 291369922;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateWebAppMessageSent extends Update {
+
+ public long webAppLaunchId;
+
+ public UpdateWebAppMessageSent() {
+ }
+
+ public UpdateWebAppMessageSent(long webAppLaunchId) {
+ this.webAppLaunchId = webAppLaunchId;
+ }
+
+ public static final int CONSTRUCTOR = 1480790569;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateActiveEmojiReactions extends Update {
+
+ public String[] emojis;
+
+ public UpdateActiveEmojiReactions() {
+ }
+
+ public UpdateActiveEmojiReactions(String[] emojis) {
+ this.emojis = emojis;
+ }
+
+ public static final int CONSTRUCTOR = 77556818;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateAvailableMessageEffects extends Update {
+
+ public long[] reactionEffectIds;
+
+ public long[] stickerEffectIds;
+
+ public UpdateAvailableMessageEffects() {
+ }
+
+ public UpdateAvailableMessageEffects(long[] reactionEffectIds, long[] stickerEffectIds) {
+ this.reactionEffectIds = reactionEffectIds;
+ this.stickerEffectIds = stickerEffectIds;
+ }
+
+ public static final int CONSTRUCTOR = 1964701061;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateDefaultReactionType extends Update {
+
+ public ReactionType reactionType;
+
+ public UpdateDefaultReactionType() {
+ }
+
+ public UpdateDefaultReactionType(ReactionType reactionType) {
+ this.reactionType = reactionType;
+ }
+
+ public static final int CONSTRUCTOR = 1264668933;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSavedMessagesTags extends Update {
+
+ public long savedMessagesTopicId;
+
+ public SavedMessagesTags tags;
+
+ public UpdateSavedMessagesTags() {
+ }
+
+ public UpdateSavedMessagesTags(long savedMessagesTopicId, SavedMessagesTags tags) {
+ this.savedMessagesTopicId = savedMessagesTopicId;
+ this.tags = tags;
+ }
+
+ public static final int CONSTRUCTOR = 1938178634;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateActiveLiveLocationMessages extends Update {
+
+ public Message[] messages;
+
+ public UpdateActiveLiveLocationMessages() {
+ }
+
+ public UpdateActiveLiveLocationMessages(Message[] messages) {
+ this.messages = messages;
+ }
+
+ public static final int CONSTRUCTOR = -1308142440;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateOwnedStarCount extends Update {
+
+ public StarAmount starAmount;
+
+ public UpdateOwnedStarCount() {
+ }
+
+ public UpdateOwnedStarCount(StarAmount starAmount) {
+ this.starAmount = starAmount;
+ }
+
+ public static final int CONSTRUCTOR = -1350647928;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatRevenueAmount extends Update {
+
+ public long chatId;
+
+ public ChatRevenueAmount revenueAmount;
+
+ public UpdateChatRevenueAmount() {
+ }
+
+ public UpdateChatRevenueAmount(long chatId, ChatRevenueAmount revenueAmount) {
+ this.chatId = chatId;
+ this.revenueAmount = revenueAmount;
+ }
+
+ public static final int CONSTRUCTOR = -959857468;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateStarRevenueStatus extends Update {
+
+ public MessageSender ownerId;
+
+ public StarRevenueStatus status;
+
+ public UpdateStarRevenueStatus() {
+ }
+
+ public UpdateStarRevenueStatus(MessageSender ownerId, StarRevenueStatus status) {
+ this.ownerId = ownerId;
+ this.status = status;
+ }
+
+ public static final int CONSTRUCTOR = -280232757;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSpeechRecognitionTrial extends Update {
+
+ public int maxMediaDuration;
+
+ public int weeklyCount;
+
+ public int leftCount;
+
+ public int nextResetDate;
+
+ public UpdateSpeechRecognitionTrial() {
+ }
+
+ public UpdateSpeechRecognitionTrial(int maxMediaDuration, int weeklyCount, int leftCount, int nextResetDate) {
+ this.maxMediaDuration = maxMediaDuration;
+ this.weeklyCount = weeklyCount;
+ this.leftCount = leftCount;
+ this.nextResetDate = nextResetDate;
+ }
+
+ public static final int CONSTRUCTOR = -11600703;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateDiceEmojis extends Update {
+
+ public String[] emojis;
+
+ public UpdateDiceEmojis() {
+ }
+
+ public UpdateDiceEmojis(String[] emojis) {
+ this.emojis = emojis;
+ }
+
+ public static final int CONSTRUCTOR = -1069066940;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateAnimatedEmojiMessageClicked extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public Sticker sticker;
+
+ public UpdateAnimatedEmojiMessageClicked() {
+ }
+
+ public UpdateAnimatedEmojiMessageClicked(long chatId, long messageId, Sticker sticker) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -1558809595;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateAnimationSearchParameters extends Update {
+
+ public String provider;
+
+ public String[] emojis;
+
+ public UpdateAnimationSearchParameters() {
+ }
+
+ public UpdateAnimationSearchParameters(String provider, String[] emojis) {
+ this.provider = provider;
+ this.emojis = emojis;
+ }
+
+ public static final int CONSTRUCTOR = -1144983202;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSuggestedActions extends Update {
+
+ public SuggestedAction[] addedActions;
+
+ public SuggestedAction[] removedActions;
+
+ public UpdateSuggestedActions() {
+ }
+
+ public UpdateSuggestedActions(SuggestedAction[] addedActions, SuggestedAction[] removedActions) {
+ this.addedActions = addedActions;
+ this.removedActions = removedActions;
+ }
+
+ public static final int CONSTRUCTOR = 1459452346;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateSpeedLimitNotification extends Update {
+
+ public boolean isUpload;
+
+ public UpdateSpeedLimitNotification() {
+ }
+
+ public UpdateSpeedLimitNotification(boolean isUpload) {
+ this.isUpload = isUpload;
+ }
+
+ public static final int CONSTRUCTOR = -964437912;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateContactCloseBirthdays extends Update {
+
+ public CloseBirthdayUser[] closeBirthdayUsers;
+
+ public UpdateContactCloseBirthdays() {
+ }
+
+ public UpdateContactCloseBirthdays(CloseBirthdayUser[] closeBirthdayUsers) {
+ this.closeBirthdayUsers = closeBirthdayUsers;
+ }
+
+ public static final int CONSTRUCTOR = -36007873;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateAutosaveSettings extends Update {
+
+ public AutosaveSettingsScope scope;
+
+ public ScopeAutosaveSettings settings;
+
+ public UpdateAutosaveSettings() {
+ }
+
+ public UpdateAutosaveSettings(AutosaveSettingsScope scope, ScopeAutosaveSettings settings) {
+ this.scope = scope;
+ this.settings = settings;
+ }
+
+ public static final int CONSTRUCTOR = -634958069;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateBusinessConnection extends Update {
+
+ public BusinessConnection connection;
+
+ public UpdateBusinessConnection() {
+ }
+
+ public UpdateBusinessConnection(BusinessConnection connection) {
+ this.connection = connection;
+ }
+
+ public static final int CONSTRUCTOR = -2043480970;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewBusinessMessage extends Update {
+
+ public String connectionId;
+
+ public BusinessMessage message;
+
+ public UpdateNewBusinessMessage() {
+ }
+
+ public UpdateNewBusinessMessage(String connectionId, BusinessMessage message) {
+ this.connectionId = connectionId;
+ this.message = message;
+ }
+
+ public static final int CONSTRUCTOR = -2034350524;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateBusinessMessageEdited extends Update {
+
+ public String connectionId;
+
+ public BusinessMessage message;
+
+ public UpdateBusinessMessageEdited() {
+ }
+
+ public UpdateBusinessMessageEdited(String connectionId, BusinessMessage message) {
+ this.connectionId = connectionId;
+ this.message = message;
+ }
+
+ public static final int CONSTRUCTOR = -2119799415;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateBusinessMessagesDeleted extends Update {
+
+ public String connectionId;
+
+ public long chatId;
+
+ public long[] messageIds;
+
+ public UpdateBusinessMessagesDeleted() {
+ }
+
+ public UpdateBusinessMessagesDeleted(String connectionId, long chatId, long[] messageIds) {
+ this.connectionId = connectionId;
+ this.chatId = chatId;
+ this.messageIds = messageIds;
+ }
+
+ public static final int CONSTRUCTOR = -1106703050;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewInlineQuery extends Update {
+
+ public long id;
+
+ public long senderUserId;
+
+ public Location userLocation;
+
+ public ChatType chatType;
+
+ public String query;
+
+ public String offset;
+
+ public UpdateNewInlineQuery() {
+ }
+
+ public UpdateNewInlineQuery(long id, long senderUserId, Location userLocation, ChatType chatType, String query, String offset) {
+ this.id = id;
+ this.senderUserId = senderUserId;
+ this.userLocation = userLocation;
+ this.chatType = chatType;
+ this.query = query;
+ this.offset = offset;
+ }
+
+ public static final int CONSTRUCTOR = 1903279924;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewChosenInlineResult extends Update {
+
+ public long senderUserId;
+
+ public Location userLocation;
+
+ public String query;
+
+ public String resultId;
+
+ public String inlineMessageId;
+
+ public UpdateNewChosenInlineResult() {
+ }
+
+ public UpdateNewChosenInlineResult(long senderUserId, Location userLocation, String query, String resultId, String inlineMessageId) {
+ this.senderUserId = senderUserId;
+ this.userLocation = userLocation;
+ this.query = query;
+ this.resultId = resultId;
+ this.inlineMessageId = inlineMessageId;
+ }
+
+ public static final int CONSTRUCTOR = -884191395;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewCallbackQuery extends Update {
+
+ public long id;
+
+ public long senderUserId;
+
+ public long chatId;
+
+ public long messageId;
+
+ public long chatInstance;
+
+ public CallbackQueryPayload payload;
+
+ public UpdateNewCallbackQuery() {
+ }
+
+ public UpdateNewCallbackQuery(long id, long senderUserId, long chatId, long messageId, long chatInstance, CallbackQueryPayload payload) {
+ this.id = id;
+ this.senderUserId = senderUserId;
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.chatInstance = chatInstance;
+ this.payload = payload;
+ }
+
+ public static final int CONSTRUCTOR = -1989881762;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewInlineCallbackQuery extends Update {
+
+ public long id;
+
+ public long senderUserId;
+
+ public String inlineMessageId;
+
+ public long chatInstance;
+
+ public CallbackQueryPayload payload;
+
+ public UpdateNewInlineCallbackQuery() {
+ }
+
+ public UpdateNewInlineCallbackQuery(long id, long senderUserId, String inlineMessageId, long chatInstance, CallbackQueryPayload payload) {
+ this.id = id;
+ this.senderUserId = senderUserId;
+ this.inlineMessageId = inlineMessageId;
+ this.chatInstance = chatInstance;
+ this.payload = payload;
+ }
+
+ public static final int CONSTRUCTOR = -319212358;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewBusinessCallbackQuery extends Update {
+
+ public long id;
+
+ public long senderUserId;
+
+ public String connectionId;
+
+ public BusinessMessage message;
+
+ public long chatInstance;
+
+ public CallbackQueryPayload payload;
+
+ public UpdateNewBusinessCallbackQuery() {
+ }
+
+ public UpdateNewBusinessCallbackQuery(long id, long senderUserId, String connectionId, BusinessMessage message, long chatInstance, CallbackQueryPayload payload) {
+ this.id = id;
+ this.senderUserId = senderUserId;
+ this.connectionId = connectionId;
+ this.message = message;
+ this.chatInstance = chatInstance;
+ this.payload = payload;
+ }
+
+ public static final int CONSTRUCTOR = 336745316;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewShippingQuery extends Update {
+
+ public long id;
+
+ public long senderUserId;
+
+ public String invoicePayload;
+
+ public Address shippingAddress;
+
+ public UpdateNewShippingQuery() {
+ }
+
+ public UpdateNewShippingQuery(long id, long senderUserId, String invoicePayload, Address shippingAddress) {
+ this.id = id;
+ this.senderUserId = senderUserId;
+ this.invoicePayload = invoicePayload;
+ this.shippingAddress = shippingAddress;
+ }
+
+ public static final int CONSTRUCTOR = 693651058;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewPreCheckoutQuery extends Update {
+
+ public long id;
+
+ public long senderUserId;
+
+ public String currency;
+
+ public long totalAmount;
+
+ public byte[] invoicePayload;
+
+ public String shippingOptionId;
+
+ public OrderInfo orderInfo;
+
+ public UpdateNewPreCheckoutQuery() {
+ }
+
+ public UpdateNewPreCheckoutQuery(long id, long senderUserId, String currency, long totalAmount, byte[] invoicePayload, String shippingOptionId, OrderInfo orderInfo) {
+ this.id = id;
+ this.senderUserId = senderUserId;
+ this.currency = currency;
+ this.totalAmount = totalAmount;
+ this.invoicePayload = invoicePayload;
+ this.shippingOptionId = shippingOptionId;
+ this.orderInfo = orderInfo;
+ }
+
+ public static final int CONSTRUCTOR = 708342217;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewCustomEvent extends Update {
+
+ public String event;
+
+ public UpdateNewCustomEvent() {
+ }
+
+ public UpdateNewCustomEvent(String event) {
+ this.event = event;
+ }
+
+ public static final int CONSTRUCTOR = 1994222092;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewCustomQuery extends Update {
+
+ public long id;
+
+ public String data;
+
+ public int timeout;
+
+ public UpdateNewCustomQuery() {
+ }
+
+ public UpdateNewCustomQuery(long id, String data, int timeout) {
+ this.id = id;
+ this.data = data;
+ this.timeout = timeout;
+ }
+
+ public static final int CONSTRUCTOR = -687670874;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdatePoll extends Update {
+
+ public Poll poll;
+
+ public UpdatePoll() {
+ }
+
+ public UpdatePoll(Poll poll) {
+ this.poll = poll;
+ }
+
+ public static final int CONSTRUCTOR = -1771342902;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdatePollAnswer extends Update {
+
+ public long pollId;
+
+ public MessageSender voterId;
+
+ public int[] optionIds;
+
+ public UpdatePollAnswer() {
+ }
+
+ public UpdatePollAnswer(long pollId, MessageSender voterId, int[] optionIds) {
+ this.pollId = pollId;
+ this.voterId = voterId;
+ this.optionIds = optionIds;
+ }
+
+ public static final int CONSTRUCTOR = 1104905219;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatMember extends Update {
+
+ public long chatId;
+
+ public long actorUserId;
+
+ public int date;
+
+ public ChatInviteLink inviteLink;
+
+ public boolean viaJoinRequest;
+
+ public boolean viaChatFolderInviteLink;
+
+ public ChatMember oldChatMember;
+
+ public ChatMember newChatMember;
+
+ public UpdateChatMember() {
+ }
+
+ public UpdateChatMember(long chatId, long actorUserId, int date, ChatInviteLink inviteLink, boolean viaJoinRequest, boolean viaChatFolderInviteLink, ChatMember oldChatMember, ChatMember newChatMember) {
+ this.chatId = chatId;
+ this.actorUserId = actorUserId;
+ this.date = date;
+ this.inviteLink = inviteLink;
+ this.viaJoinRequest = viaJoinRequest;
+ this.viaChatFolderInviteLink = viaChatFolderInviteLink;
+ this.oldChatMember = oldChatMember;
+ this.newChatMember = newChatMember;
+ }
+
+ public static final int CONSTRUCTOR = -1736025145;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateNewChatJoinRequest extends Update {
+
+ public long chatId;
+
+ public ChatJoinRequest request;
+
+ public long userChatId;
+
+ public ChatInviteLink inviteLink;
+
+ public UpdateNewChatJoinRequest() {
+ }
+
+ public UpdateNewChatJoinRequest(long chatId, ChatJoinRequest request, long userChatId, ChatInviteLink inviteLink) {
+ this.chatId = chatId;
+ this.request = request;
+ this.userChatId = userChatId;
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = 2118694979;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateChatBoost extends Update {
+
+ public long chatId;
+
+ public ChatBoost boost;
+
+ public UpdateChatBoost() {
+ }
+
+ public UpdateChatBoost(long chatId, ChatBoost boost) {
+ this.chatId = chatId;
+ this.boost = boost;
+ }
+
+ public static final int CONSTRUCTOR = 1349680676;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageReaction extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public MessageSender actorId;
+
+ public int date;
+
+ public ReactionType[] oldReactionTypes;
+
+ public ReactionType[] newReactionTypes;
+
+ public UpdateMessageReaction() {
+ }
+
+ public UpdateMessageReaction(long chatId, long messageId, MessageSender actorId, int date, ReactionType[] oldReactionTypes, ReactionType[] newReactionTypes) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.actorId = actorId;
+ this.date = date;
+ this.oldReactionTypes = oldReactionTypes;
+ this.newReactionTypes = newReactionTypes;
+ }
+
+ public static final int CONSTRUCTOR = 1084895706;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdateMessageReactions extends Update {
+
+ public long chatId;
+
+ public long messageId;
+
+ public int date;
+
+ public MessageReaction[] reactions;
+
+ public UpdateMessageReactions() {
+ }
+
+ public UpdateMessageReactions(long chatId, long messageId, int date, MessageReaction[] reactions) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.date = date;
+ this.reactions = reactions;
+ }
+
+ public static final int CONSTRUCTOR = 955237189;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UpdatePaidMediaPurchased extends Update {
+
+ public long userId;
+
+ public String payload;
+
+ public UpdatePaidMediaPurchased() {
+ }
+
+ public UpdatePaidMediaPurchased(long userId, String payload) {
+ this.userId = userId;
+ this.payload = payload;
+ }
+
+ public static final int CONSTRUCTOR = -1542396325;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Updates extends Object {
+
+ public Update[] updates;
+
+ public Updates() {
+ }
+
+ public Updates(Update[] updates) {
+ this.updates = updates;
+ }
+
+ public static final int CONSTRUCTOR = 475842347;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class User extends Object {
+
+ public long id;
+
+ public String firstName;
+
+ public String lastName;
+
+ public Usernames usernames;
+
+ public String phoneNumber;
+
+ public UserStatus status;
+
+ public ProfilePhoto profilePhoto;
+
+ public int accentColorId;
+
+ public long backgroundCustomEmojiId;
+
+ public int profileAccentColorId;
+
+ public long profileBackgroundCustomEmojiId;
+
+ public EmojiStatus emojiStatus;
+
+ public boolean isContact;
+
+ public boolean isMutualContact;
+
+ public boolean isCloseFriend;
+
+ public boolean isVerified;
+
+ public boolean isPremium;
+
+ public boolean isSupport;
+
+ public String restrictionReason;
+
+ public boolean isScam;
+
+ public boolean isFake;
+
+ public boolean hasActiveStories;
+
+ public boolean hasUnreadActiveStories;
+
+ public boolean restrictsNewChats;
+
+ public boolean haveAccess;
+
+ public UserType type;
+
+ public String languageCode;
+
+ public boolean addedToAttachmentMenu;
+
+ public User() {
+ }
+
+ public User(long id, String firstName, String lastName, Usernames usernames, String phoneNumber, UserStatus status, ProfilePhoto profilePhoto, int accentColorId, long backgroundCustomEmojiId, int profileAccentColorId, long profileBackgroundCustomEmojiId, EmojiStatus emojiStatus, boolean isContact, boolean isMutualContact, boolean isCloseFriend, boolean isVerified, boolean isPremium, boolean isSupport, String restrictionReason, boolean isScam, boolean isFake, boolean hasActiveStories, boolean hasUnreadActiveStories, boolean restrictsNewChats, boolean haveAccess, UserType type, String languageCode, boolean addedToAttachmentMenu) {
+ this.id = id;
+ this.firstName = firstName;
+ this.lastName = lastName;
+ this.usernames = usernames;
+ this.phoneNumber = phoneNumber;
+ this.status = status;
+ this.profilePhoto = profilePhoto;
+ this.accentColorId = accentColorId;
+ this.backgroundCustomEmojiId = backgroundCustomEmojiId;
+ this.profileAccentColorId = profileAccentColorId;
+ this.profileBackgroundCustomEmojiId = profileBackgroundCustomEmojiId;
+ this.emojiStatus = emojiStatus;
+ this.isContact = isContact;
+ this.isMutualContact = isMutualContact;
+ this.isCloseFriend = isCloseFriend;
+ this.isVerified = isVerified;
+ this.isPremium = isPremium;
+ this.isSupport = isSupport;
+ this.restrictionReason = restrictionReason;
+ this.isScam = isScam;
+ this.isFake = isFake;
+ this.hasActiveStories = hasActiveStories;
+ this.hasUnreadActiveStories = hasUnreadActiveStories;
+ this.restrictsNewChats = restrictsNewChats;
+ this.haveAccess = haveAccess;
+ this.type = type;
+ this.languageCode = languageCode;
+ this.addedToAttachmentMenu = addedToAttachmentMenu;
+ }
+
+ public static final int CONSTRUCTOR = 408235106;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserFullInfo extends Object {
+
+ public ChatPhoto personalPhoto;
+
+ public ChatPhoto photo;
+
+ public ChatPhoto publicPhoto;
+
+ public BlockList blockList;
+
+ public boolean canBeCalled;
+
+ public boolean supportsVideoCalls;
+
+ public boolean hasPrivateCalls;
+
+ public boolean hasPrivateForwards;
+
+ public boolean hasRestrictedVoiceAndVideoNoteMessages;
+
+ public boolean hasPostedToProfileStories;
+
+ public boolean hasSponsoredMessagesEnabled;
+
+ public boolean needPhoneNumberPrivacyException;
+
+ public boolean setChatBackground;
+
+ public FormattedText bio;
+
+ public Birthdate birthdate;
+
+ public long personalChatId;
+
+ public int giftCount;
+
+ public int groupInCommonCount;
+
+ public BusinessInfo businessInfo;
+
+ public BotInfo botInfo;
+
+ public UserFullInfo() {
+ }
+
+ public UserFullInfo(ChatPhoto personalPhoto, ChatPhoto photo, ChatPhoto publicPhoto, BlockList blockList, boolean canBeCalled, boolean supportsVideoCalls, boolean hasPrivateCalls, boolean hasPrivateForwards, boolean hasRestrictedVoiceAndVideoNoteMessages, boolean hasPostedToProfileStories, boolean hasSponsoredMessagesEnabled, boolean needPhoneNumberPrivacyException, boolean setChatBackground, FormattedText bio, Birthdate birthdate, long personalChatId, int giftCount, int groupInCommonCount, BusinessInfo businessInfo, BotInfo botInfo) {
+ this.personalPhoto = personalPhoto;
+ this.photo = photo;
+ this.publicPhoto = publicPhoto;
+ this.blockList = blockList;
+ this.canBeCalled = canBeCalled;
+ this.supportsVideoCalls = supportsVideoCalls;
+ this.hasPrivateCalls = hasPrivateCalls;
+ this.hasPrivateForwards = hasPrivateForwards;
+ this.hasRestrictedVoiceAndVideoNoteMessages = hasRestrictedVoiceAndVideoNoteMessages;
+ this.hasPostedToProfileStories = hasPostedToProfileStories;
+ this.hasSponsoredMessagesEnabled = hasSponsoredMessagesEnabled;
+ this.needPhoneNumberPrivacyException = needPhoneNumberPrivacyException;
+ this.setChatBackground = setChatBackground;
+ this.bio = bio;
+ this.birthdate = birthdate;
+ this.personalChatId = personalChatId;
+ this.giftCount = giftCount;
+ this.groupInCommonCount = groupInCommonCount;
+ this.businessInfo = businessInfo;
+ this.botInfo = botInfo;
+ }
+
+ public static final int CONSTRUCTOR = -2049914619;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserGift extends Object {
+
+ public long senderUserId;
+
+ public FormattedText text;
+
+ public boolean isPrivate;
+
+ public boolean isSaved;
+
+ public int date;
+
+ public Gift gift;
+
+ public long messageId;
+
+ public long sellStarCount;
+
+ public UserGift() {
+ }
+
+ public UserGift(long senderUserId, FormattedText text, boolean isPrivate, boolean isSaved, int date, Gift gift, long messageId, long sellStarCount) {
+ this.senderUserId = senderUserId;
+ this.text = text;
+ this.isPrivate = isPrivate;
+ this.isSaved = isSaved;
+ this.date = date;
+ this.gift = gift;
+ this.messageId = messageId;
+ this.sellStarCount = sellStarCount;
+ }
+
+ public static final int CONSTRUCTOR = 1229895457;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserGifts extends Object {
+
+ public int totalCount;
+
+ public UserGift[] gifts;
+
+ public String nextOffset;
+
+ public UserGifts() {
+ }
+
+ public UserGifts(int totalCount, UserGift[] gifts, String nextOffset) {
+ this.totalCount = totalCount;
+ this.gifts = gifts;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 1125548230;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserLink extends Object {
+
+ public String url;
+
+ public int expiresIn;
+
+ public UserLink() {
+ }
+
+ public UserLink(String url, int expiresIn) {
+ this.url = url;
+ this.expiresIn = expiresIn;
+ }
+
+ public static final int CONSTRUCTOR = 498138872;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class UserPrivacySetting extends Object {
+
+ public UserPrivacySetting() {
+ }
+ }
+
+ public static class UserPrivacySettingShowStatus extends UserPrivacySetting {
+ public UserPrivacySettingShowStatus() {
+ }
+
+ public static final int CONSTRUCTOR = 1862829310;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingShowProfilePhoto extends UserPrivacySetting {
+ public UserPrivacySettingShowProfilePhoto() {
+ }
+
+ public static final int CONSTRUCTOR = 1408485877;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingShowLinkInForwardedMessages extends UserPrivacySetting {
+ public UserPrivacySettingShowLinkInForwardedMessages() {
+ }
+
+ public static final int CONSTRUCTOR = 592688870;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingShowPhoneNumber extends UserPrivacySetting {
+ public UserPrivacySettingShowPhoneNumber() {
+ }
+
+ public static final int CONSTRUCTOR = -791567831;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingShowBio extends UserPrivacySetting {
+ public UserPrivacySettingShowBio() {
+ }
+
+ public static final int CONSTRUCTOR = 959981409;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingShowBirthdate extends UserPrivacySetting {
+ public UserPrivacySettingShowBirthdate() {
+ }
+
+ public static final int CONSTRUCTOR = 1167504607;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingAllowChatInvites extends UserPrivacySetting {
+ public UserPrivacySettingAllowChatInvites() {
+ }
+
+ public static final int CONSTRUCTOR = 1271668007;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingAllowCalls extends UserPrivacySetting {
+ public UserPrivacySettingAllowCalls() {
+ }
+
+ public static final int CONSTRUCTOR = -906967291;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingAllowPeerToPeerCalls extends UserPrivacySetting {
+ public UserPrivacySettingAllowPeerToPeerCalls() {
+ }
+
+ public static final int CONSTRUCTOR = 352500032;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingAllowFindingByPhoneNumber extends UserPrivacySetting {
+ public UserPrivacySettingAllowFindingByPhoneNumber() {
+ }
+
+ public static final int CONSTRUCTOR = -1846645423;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages extends UserPrivacySetting {
+ public UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages() {
+ }
+
+ public static final int CONSTRUCTOR = 338112060;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingAutosaveGifts extends UserPrivacySetting {
+ public UserPrivacySettingAutosaveGifts() {
+ }
+
+ public static final int CONSTRUCTOR = 1889167821;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class UserPrivacySettingRule extends Object {
+
+ public UserPrivacySettingRule() {
+ }
+ }
+
+ public static class UserPrivacySettingRuleAllowAll extends UserPrivacySettingRule {
+ public UserPrivacySettingRuleAllowAll() {
+ }
+
+ public static final int CONSTRUCTOR = -1967186881;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRuleAllowContacts extends UserPrivacySettingRule {
+ public UserPrivacySettingRuleAllowContacts() {
+ }
+
+ public static final int CONSTRUCTOR = -1892733680;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRuleAllowBots extends UserPrivacySettingRule {
+ public UserPrivacySettingRuleAllowBots() {
+ }
+
+ public static final int CONSTRUCTOR = 1404208925;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRuleAllowPremiumUsers extends UserPrivacySettingRule {
+ public UserPrivacySettingRuleAllowPremiumUsers() {
+ }
+
+ public static final int CONSTRUCTOR = 1624147265;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRuleAllowUsers extends UserPrivacySettingRule {
+
+ public long[] userIds;
+
+ public UserPrivacySettingRuleAllowUsers() {
+ }
+
+ public UserPrivacySettingRuleAllowUsers(long[] userIds) {
+ this.userIds = userIds;
+ }
+
+ public static final int CONSTRUCTOR = 1110988334;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRuleAllowChatMembers extends UserPrivacySettingRule {
+
+ public long[] chatIds;
+
+ public UserPrivacySettingRuleAllowChatMembers() {
+ }
+
+ public UserPrivacySettingRuleAllowChatMembers(long[] chatIds) {
+ this.chatIds = chatIds;
+ }
+
+ public static final int CONSTRUCTOR = -2048749863;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRuleRestrictAll extends UserPrivacySettingRule {
+ public UserPrivacySettingRuleRestrictAll() {
+ }
+
+ public static final int CONSTRUCTOR = -1406495408;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRuleRestrictContacts extends UserPrivacySettingRule {
+ public UserPrivacySettingRuleRestrictContacts() {
+ }
+
+ public static final int CONSTRUCTOR = 1008389378;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRuleRestrictBots extends UserPrivacySettingRule {
+ public UserPrivacySettingRuleRestrictBots() {
+ }
+
+ public static final int CONSTRUCTOR = -1902547363;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRuleRestrictUsers extends UserPrivacySettingRule {
+
+ public long[] userIds;
+
+ public UserPrivacySettingRuleRestrictUsers() {
+ }
+
+ public UserPrivacySettingRuleRestrictUsers(long[] userIds) {
+ this.userIds = userIds;
+ }
+
+ public static final int CONSTRUCTOR = 622796522;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRuleRestrictChatMembers extends UserPrivacySettingRule {
+
+ public long[] chatIds;
+
+ public UserPrivacySettingRuleRestrictChatMembers() {
+ }
+
+ public UserPrivacySettingRuleRestrictChatMembers(long[] chatIds) {
+ this.chatIds = chatIds;
+ }
+
+ public static final int CONSTRUCTOR = 392530897;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserPrivacySettingRules extends Object {
+
+ public UserPrivacySettingRule[] rules;
+
+ public UserPrivacySettingRules() {
+ }
+
+ public UserPrivacySettingRules(UserPrivacySettingRule[] rules) {
+ this.rules = rules;
+ }
+
+ public static final int CONSTRUCTOR = 322477541;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class UserStatus extends Object {
+
+ public UserStatus() {
+ }
+ }
+
+ public static class UserStatusEmpty extends UserStatus {
+ public UserStatusEmpty() {
+ }
+
+ public static final int CONSTRUCTOR = 164646985;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserStatusOnline extends UserStatus {
+
+ public int expires;
+
+ public UserStatusOnline() {
+ }
+
+ public UserStatusOnline(int expires) {
+ this.expires = expires;
+ }
+
+ public static final int CONSTRUCTOR = -1529460876;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserStatusOffline extends UserStatus {
+
+ public int wasOnline;
+
+ public UserStatusOffline() {
+ }
+
+ public UserStatusOffline(int wasOnline) {
+ this.wasOnline = wasOnline;
+ }
+
+ public static final int CONSTRUCTOR = -759984891;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserStatusRecently extends UserStatus {
+
+ public boolean byMyPrivacySettings;
+
+ public UserStatusRecently() {
+ }
+
+ public UserStatusRecently(boolean byMyPrivacySettings) {
+ this.byMyPrivacySettings = byMyPrivacySettings;
+ }
+
+ public static final int CONSTRUCTOR = 262824117;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserStatusLastWeek extends UserStatus {
+
+ public boolean byMyPrivacySettings;
+
+ public UserStatusLastWeek() {
+ }
+
+ public UserStatusLastWeek(boolean byMyPrivacySettings) {
+ this.byMyPrivacySettings = byMyPrivacySettings;
+ }
+
+ public static final int CONSTRUCTOR = 310385495;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserStatusLastMonth extends UserStatus {
+
+ public boolean byMyPrivacySettings;
+
+ public UserStatusLastMonth() {
+ }
+
+ public UserStatusLastMonth(boolean byMyPrivacySettings) {
+ this.byMyPrivacySettings = byMyPrivacySettings;
+ }
+
+ public static final int CONSTRUCTOR = -1194644996;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserSupportInfo extends Object {
+
+ public FormattedText message;
+
+ public String author;
+
+ public int date;
+
+ public UserSupportInfo() {
+ }
+
+ public UserSupportInfo(FormattedText message, String author, int date) {
+ this.message = message;
+ this.author = author;
+ this.date = date;
+ }
+
+ public static final int CONSTRUCTOR = -1257366487;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class UserType extends Object {
+
+ public UserType() {
+ }
+ }
+
+ public static class UserTypeRegular extends UserType {
+ public UserTypeRegular() {
+ }
+
+ public static final int CONSTRUCTOR = -598644325;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserTypeDeleted extends UserType {
+ public UserTypeDeleted() {
+ }
+
+ public static final int CONSTRUCTOR = -1807729372;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserTypeBot extends UserType {
+
+ public boolean canBeEdited;
+
+ public boolean canJoinGroups;
+
+ public boolean canReadAllGroupMessages;
+
+ public boolean hasMainWebApp;
+
+ public boolean isInline;
+
+ public String inlineQueryPlaceholder;
+
+ public boolean needLocation;
+
+ public boolean canConnectToBusiness;
+
+ public boolean canBeAddedToAttachmentMenu;
+
+ public int activeUserCount;
+
+ public UserTypeBot() {
+ }
+
+ public UserTypeBot(boolean canBeEdited, boolean canJoinGroups, boolean canReadAllGroupMessages, boolean hasMainWebApp, boolean isInline, String inlineQueryPlaceholder, boolean needLocation, boolean canConnectToBusiness, boolean canBeAddedToAttachmentMenu, int activeUserCount) {
+ this.canBeEdited = canBeEdited;
+ this.canJoinGroups = canJoinGroups;
+ this.canReadAllGroupMessages = canReadAllGroupMessages;
+ this.hasMainWebApp = hasMainWebApp;
+ this.isInline = isInline;
+ this.inlineQueryPlaceholder = inlineQueryPlaceholder;
+ this.needLocation = needLocation;
+ this.canConnectToBusiness = canConnectToBusiness;
+ this.canBeAddedToAttachmentMenu = canBeAddedToAttachmentMenu;
+ this.activeUserCount = activeUserCount;
+ }
+
+ public static final int CONSTRUCTOR = -1952199642;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class UserTypeUnknown extends UserType {
+ public UserTypeUnknown() {
+ }
+
+ public static final int CONSTRUCTOR = -724541123;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Usernames extends Object {
+
+ public String[] activeUsernames;
+
+ public String[] disabledUsernames;
+
+ public String editableUsername;
+
+ public Usernames() {
+ }
+
+ public Usernames(String[] activeUsernames, String[] disabledUsernames, String editableUsername) {
+ this.activeUsernames = activeUsernames;
+ this.disabledUsernames = disabledUsernames;
+ this.editableUsername = editableUsername;
+ }
+
+ public static final int CONSTRUCTOR = 799608565;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Users extends Object {
+
+ public int totalCount;
+
+ public long[] userIds;
+
+ public Users() {
+ }
+
+ public Users(int totalCount, long[] userIds) {
+ this.totalCount = totalCount;
+ this.userIds = userIds;
+ }
+
+ public static final int CONSTRUCTOR = 171203420;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ValidatedOrderInfo extends Object {
+
+ public String orderInfoId;
+
+ public ShippingOption[] shippingOptions;
+
+ public ValidatedOrderInfo() {
+ }
+
+ public ValidatedOrderInfo(String orderInfoId, ShippingOption[] shippingOptions) {
+ this.orderInfoId = orderInfoId;
+ this.shippingOptions = shippingOptions;
+ }
+
+ public static final int CONSTRUCTOR = 1511451484;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class VectorPathCommand extends Object {
+
+ public VectorPathCommand() {
+ }
+ }
+
+ public static class VectorPathCommandLine extends VectorPathCommand {
+
+ public Point endPoint;
+
+ public VectorPathCommandLine() {
+ }
+
+ public VectorPathCommandLine(Point endPoint) {
+ this.endPoint = endPoint;
+ }
+
+ public static final int CONSTRUCTOR = -614056822;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class VectorPathCommandCubicBezierCurve extends VectorPathCommand {
+
+ public Point startControlPoint;
+
+ public Point endControlPoint;
+
+ public Point endPoint;
+
+ public VectorPathCommandCubicBezierCurve() {
+ }
+
+ public VectorPathCommandCubicBezierCurve(Point startControlPoint, Point endControlPoint, Point endPoint) {
+ this.startControlPoint = startControlPoint;
+ this.endControlPoint = endControlPoint;
+ this.endPoint = endPoint;
+ }
+
+ public static final int CONSTRUCTOR = 1229733434;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Venue extends Object {
+
+ public Location location;
+
+ public String title;
+
+ public String address;
+
+ public String provider;
+
+ public String id;
+
+ public String type;
+
+ public Venue() {
+ }
+
+ public Venue(Location location, String title, String address, String provider, String id, String type) {
+ this.location = location;
+ this.title = title;
+ this.address = address;
+ this.provider = provider;
+ this.id = id;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 1070406393;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Video extends Object {
+
+ public int duration;
+
+ public int width;
+
+ public int height;
+
+ public String fileName;
+
+ public String mimeType;
+
+ public boolean hasStickers;
+
+ public boolean supportsStreaming;
+
+ public Minithumbnail minithumbnail;
+
+ public Thumbnail thumbnail;
+
+ public File video;
+
+ public Video() {
+ }
+
+ public Video(int duration, int width, int height, String fileName, String mimeType, boolean hasStickers, boolean supportsStreaming, Minithumbnail minithumbnail, Thumbnail thumbnail, File video) {
+ this.duration = duration;
+ this.width = width;
+ this.height = height;
+ this.fileName = fileName;
+ this.mimeType = mimeType;
+ this.hasStickers = hasStickers;
+ this.supportsStreaming = supportsStreaming;
+ this.minithumbnail = minithumbnail;
+ this.thumbnail = thumbnail;
+ this.video = video;
+ }
+
+ public static final int CONSTRUCTOR = 832856268;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class VideoChat extends Object {
+
+ public int groupCallId;
+
+ public boolean hasParticipants;
+
+ public MessageSender defaultParticipantId;
+
+ public VideoChat() {
+ }
+
+ public VideoChat(int groupCallId, boolean hasParticipants, MessageSender defaultParticipantId) {
+ this.groupCallId = groupCallId;
+ this.hasParticipants = hasParticipants;
+ this.defaultParticipantId = defaultParticipantId;
+ }
+
+ public static final int CONSTRUCTOR = -1374319320;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class VideoNote extends Object {
+
+ public int duration;
+
+ public byte[] waveform;
+
+ public int length;
+
+ public Minithumbnail minithumbnail;
+
+ public Thumbnail thumbnail;
+
+ public SpeechRecognitionResult speechRecognitionResult;
+
+ public File video;
+
+ public VideoNote() {
+ }
+
+ public VideoNote(int duration, byte[] waveform, int length, Minithumbnail minithumbnail, Thumbnail thumbnail, SpeechRecognitionResult speechRecognitionResult, File video) {
+ this.duration = duration;
+ this.waveform = waveform;
+ this.length = length;
+ this.minithumbnail = minithumbnail;
+ this.thumbnail = thumbnail;
+ this.speechRecognitionResult = speechRecognitionResult;
+ this.video = video;
+ }
+
+ public static final int CONSTRUCTOR = 2062096581;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class VoiceNote extends Object {
+
+ public int duration;
+
+ public byte[] waveform;
+
+ public String mimeType;
+
+ public SpeechRecognitionResult speechRecognitionResult;
+
+ public File voice;
+
+ public VoiceNote() {
+ }
+
+ public VoiceNote(int duration, byte[] waveform, String mimeType, SpeechRecognitionResult speechRecognitionResult, File voice) {
+ this.duration = duration;
+ this.waveform = waveform;
+ this.mimeType = mimeType;
+ this.speechRecognitionResult = speechRecognitionResult;
+ this.voice = voice;
+ }
+
+ public static final int CONSTRUCTOR = -1175302923;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class WebApp extends Object {
+
+ public String shortName;
+
+ public String title;
+
+ public String description;
+
+ public Photo photo;
+
+ public Animation animation;
+
+ public WebApp() {
+ }
+
+ public WebApp(String shortName, String title, String description, Photo photo, Animation animation) {
+ this.shortName = shortName;
+ this.title = title;
+ this.description = description;
+ this.photo = photo;
+ this.animation = animation;
+ }
+
+ public static final int CONSTRUCTOR = 1616619763;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class WebAppInfo extends Object {
+
+ public long launchId;
+
+ public String url;
+
+ public WebAppInfo() {
+ }
+
+ public WebAppInfo(long launchId, String url) {
+ this.launchId = launchId;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 788378344;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public abstract static class WebAppOpenMode extends Object {
+
+ public WebAppOpenMode() {
+ }
+ }
+
+ public static class WebAppOpenModeCompact extends WebAppOpenMode {
+ public WebAppOpenModeCompact() {
+ }
+
+ public static final int CONSTRUCTOR = 1711603675;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class WebAppOpenModeFullSize extends WebAppOpenMode {
+ public WebAppOpenModeFullSize() {
+ }
+
+ public static final int CONSTRUCTOR = 189320513;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class WebAppOpenModeFullScreen extends WebAppOpenMode {
+ public WebAppOpenModeFullScreen() {
+ }
+
+ public static final int CONSTRUCTOR = 1871315357;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class WebAppOpenParameters extends Object {
+
+ public ThemeParameters theme;
+
+ public String applicationName;
+
+ public WebAppOpenMode mode;
+
+ public WebAppOpenParameters() {
+ }
+
+ public WebAppOpenParameters(ThemeParameters theme, String applicationName, WebAppOpenMode mode) {
+ this.theme = theme;
+ this.applicationName = applicationName;
+ this.mode = mode;
+ }
+
+ public static final int CONSTRUCTOR = 1375356527;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class WebPageInstantView extends Object {
+
+ public PageBlock[] pageBlocks;
+
+ public int viewCount;
+
+ public int version;
+
+ public boolean isRtl;
+
+ public boolean isFull;
+
+ public InternalLinkType feedbackLink;
+
+ public WebPageInstantView() {
+ }
+
+ public WebPageInstantView(PageBlock[] pageBlocks, int viewCount, int version, boolean isRtl, boolean isFull, InternalLinkType feedbackLink) {
+ this.pageBlocks = pageBlocks;
+ this.viewCount = viewCount;
+ this.version = version;
+ this.isRtl = isRtl;
+ this.isFull = isFull;
+ this.feedbackLink = feedbackLink;
+ }
+
+ public static final int CONSTRUCTOR = 778202453;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AcceptCall extends Function {
+
+ public int callId;
+
+ public CallProtocol protocol;
+
+ public AcceptCall() {
+ }
+
+ public AcceptCall(int callId, CallProtocol protocol) {
+ this.callId = callId;
+ this.protocol = protocol;
+ }
+
+ public static final int CONSTRUCTOR = -646618416;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AcceptTermsOfService extends Function {
+
+ public String termsOfServiceId;
+
+ public AcceptTermsOfService() {
+ }
+
+ public AcceptTermsOfService(String termsOfServiceId) {
+ this.termsOfServiceId = termsOfServiceId;
+ }
+
+ public static final int CONSTRUCTOR = 2130576356;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ActivateStoryStealthMode extends Function {
+ public ActivateStoryStealthMode() {
+ }
+
+ public static final int CONSTRUCTOR = -1009023855;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddBotMediaPreview extends Function {
+
+ public long botUserId;
+
+ public String languageCode;
+
+ public InputStoryContent content;
+
+ public AddBotMediaPreview() {
+ }
+
+ public AddBotMediaPreview(long botUserId, String languageCode, InputStoryContent content) {
+ this.botUserId = botUserId;
+ this.languageCode = languageCode;
+ this.content = content;
+ }
+
+ public static final int CONSTRUCTOR = 1347126571;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddChatFolderByInviteLink extends Function {
+
+ public String inviteLink;
+
+ public long[] chatIds;
+
+ public AddChatFolderByInviteLink() {
+ }
+
+ public AddChatFolderByInviteLink(String inviteLink, long[] chatIds) {
+ this.inviteLink = inviteLink;
+ this.chatIds = chatIds;
+ }
+
+ public static final int CONSTRUCTOR = -858593816;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddChatMember extends Function {
+
+ public long chatId;
+
+ public long userId;
+
+ public int forwardLimit;
+
+ public AddChatMember() {
+ }
+
+ public AddChatMember(long chatId, long userId, int forwardLimit) {
+ this.chatId = chatId;
+ this.userId = userId;
+ this.forwardLimit = forwardLimit;
+ }
+
+ public static final int CONSTRUCTOR = 1720144407;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddChatMembers extends Function {
+
+ public long chatId;
+
+ public long[] userIds;
+
+ public AddChatMembers() {
+ }
+
+ public AddChatMembers(long chatId, long[] userIds) {
+ this.chatId = chatId;
+ this.userIds = userIds;
+ }
+
+ public static final int CONSTRUCTOR = -1675991329;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddChatToList extends Function {
+
+ public long chatId;
+
+ public ChatList chatList;
+
+ public AddChatToList() {
+ }
+
+ public AddChatToList(long chatId, ChatList chatList) {
+ this.chatId = chatId;
+ this.chatList = chatList;
+ }
+
+ public static final int CONSTRUCTOR = -80523595;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddContact extends Function {
+
+ public Contact contact;
+
+ public boolean sharePhoneNumber;
+
+ public AddContact() {
+ }
+
+ public AddContact(Contact contact, boolean sharePhoneNumber) {
+ this.contact = contact;
+ this.sharePhoneNumber = sharePhoneNumber;
+ }
+
+ public static final int CONSTRUCTOR = 1869640000;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddCustomServerLanguagePack extends Function {
+
+ public String languagePackId;
+
+ public AddCustomServerLanguagePack() {
+ }
+
+ public AddCustomServerLanguagePack(String languagePackId) {
+ this.languagePackId = languagePackId;
+ }
+
+ public static final int CONSTRUCTOR = 4492771;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddFavoriteSticker extends Function {
+
+ public InputFile sticker;
+
+ public AddFavoriteSticker() {
+ }
+
+ public AddFavoriteSticker(InputFile sticker) {
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = 324504799;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddFileToDownloads extends Function {
+
+ public int fileId;
+
+ public long chatId;
+
+ public long messageId;
+
+ public int priority;
+
+ public AddFileToDownloads() {
+ }
+
+ public AddFileToDownloads(int fileId, long chatId, long messageId, int priority) {
+ this.fileId = fileId;
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.priority = priority;
+ }
+
+ public static final int CONSTRUCTOR = 867533751;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddLocalMessage extends Function {
+
+ public long chatId;
+
+ public MessageSender senderId;
+
+ public InputMessageReplyTo replyTo;
+
+ public boolean disableNotification;
+
+ public InputMessageContent inputMessageContent;
+
+ public AddLocalMessage() {
+ }
+
+ public AddLocalMessage(long chatId, MessageSender senderId, InputMessageReplyTo replyTo, boolean disableNotification, InputMessageContent inputMessageContent) {
+ this.chatId = chatId;
+ this.senderId = senderId;
+ this.replyTo = replyTo;
+ this.disableNotification = disableNotification;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = -166217823;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddLogMessage extends Function {
+
+ public int verbosityLevel;
+
+ public String text;
+
+ public AddLogMessage() {
+ }
+
+ public AddLogMessage(int verbosityLevel, String text) {
+ this.verbosityLevel = verbosityLevel;
+ this.text = text;
+ }
+
+ public static final int CONSTRUCTOR = 1597427692;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddMessageReaction extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReactionType reactionType;
+
+ public boolean isBig;
+
+ public boolean updateRecentReactions;
+
+ public AddMessageReaction() {
+ }
+
+ public AddMessageReaction(long chatId, long messageId, ReactionType reactionType, boolean isBig, boolean updateRecentReactions) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.reactionType = reactionType;
+ this.isBig = isBig;
+ this.updateRecentReactions = updateRecentReactions;
+ }
+
+ public static final int CONSTRUCTOR = 1419269613;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddNetworkStatistics extends Function {
+
+ public NetworkStatisticsEntry entry;
+
+ public AddNetworkStatistics() {
+ }
+
+ public AddNetworkStatistics(NetworkStatisticsEntry entry) {
+ this.entry = entry;
+ }
+
+ public static final int CONSTRUCTOR = 1264825305;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddPendingPaidMessageReaction extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public long starCount;
+
+ public boolean useDefaultIsAnonymous;
+
+ public boolean isAnonymous;
+
+ public AddPendingPaidMessageReaction() {
+ }
+
+ public AddPendingPaidMessageReaction(long chatId, long messageId, long starCount, boolean useDefaultIsAnonymous, boolean isAnonymous) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.starCount = starCount;
+ this.useDefaultIsAnonymous = useDefaultIsAnonymous;
+ this.isAnonymous = isAnonymous;
+ }
+
+ public static final int CONSTRUCTOR = 1716816153;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddProxy extends Function {
+
+ public String server;
+
+ public int port;
+
+ public boolean enable;
+
+ public ProxyType type;
+
+ public AddProxy() {
+ }
+
+ public AddProxy(String server, int port, boolean enable, ProxyType type) {
+ this.server = server;
+ this.port = port;
+ this.enable = enable;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 331529432;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddQuickReplyShortcutInlineQueryResultMessage extends Function {
+
+ public String shortcutName;
+
+ public long replyToMessageId;
+
+ public long queryId;
+
+ public String resultId;
+
+ public boolean hideViaBot;
+
+ public AddQuickReplyShortcutInlineQueryResultMessage() {
+ }
+
+ public AddQuickReplyShortcutInlineQueryResultMessage(String shortcutName, long replyToMessageId, long queryId, String resultId, boolean hideViaBot) {
+ this.shortcutName = shortcutName;
+ this.replyToMessageId = replyToMessageId;
+ this.queryId = queryId;
+ this.resultId = resultId;
+ this.hideViaBot = hideViaBot;
+ }
+
+ public static final int CONSTRUCTOR = -2017449468;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddQuickReplyShortcutMessage extends Function {
+
+ public String shortcutName;
+
+ public long replyToMessageId;
+
+ public InputMessageContent inputMessageContent;
+
+ public AddQuickReplyShortcutMessage() {
+ }
+
+ public AddQuickReplyShortcutMessage(String shortcutName, long replyToMessageId, InputMessageContent inputMessageContent) {
+ this.shortcutName = shortcutName;
+ this.replyToMessageId = replyToMessageId;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 1058573098;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddQuickReplyShortcutMessageAlbum extends Function {
+
+ public String shortcutName;
+
+ public long replyToMessageId;
+
+ public InputMessageContent[] inputMessageContents;
+
+ public AddQuickReplyShortcutMessageAlbum() {
+ }
+
+ public AddQuickReplyShortcutMessageAlbum(String shortcutName, long replyToMessageId, InputMessageContent[] inputMessageContents) {
+ this.shortcutName = shortcutName;
+ this.replyToMessageId = replyToMessageId;
+ this.inputMessageContents = inputMessageContents;
+ }
+
+ public static final int CONSTRUCTOR = 1348436244;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddRecentSticker extends Function {
+
+ public boolean isAttached;
+
+ public InputFile sticker;
+
+ public AddRecentSticker() {
+ }
+
+ public AddRecentSticker(boolean isAttached, InputFile sticker) {
+ this.isAttached = isAttached;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = -1478109026;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddRecentlyFoundChat extends Function {
+
+ public long chatId;
+
+ public AddRecentlyFoundChat() {
+ }
+
+ public AddRecentlyFoundChat(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = -1746396787;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddSavedAnimation extends Function {
+
+ public InputFile animation;
+
+ public AddSavedAnimation() {
+ }
+
+ public AddSavedAnimation(InputFile animation) {
+ this.animation = animation;
+ }
+
+ public static final int CONSTRUCTOR = -1538525088;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddSavedNotificationSound extends Function {
+
+ public InputFile sound;
+
+ public AddSavedNotificationSound() {
+ }
+
+ public AddSavedNotificationSound(InputFile sound) {
+ this.sound = sound;
+ }
+
+ public static final int CONSTRUCTOR = 1043956975;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AddStickerToSet extends Function {
+
+ public long userId;
+
+ public String name;
+
+ public InputSticker sticker;
+
+ public AddStickerToSet() {
+ }
+
+ public AddStickerToSet(long userId, String name, InputSticker sticker) {
+ this.userId = userId;
+ this.name = name;
+ this.sticker = sticker;
+ }
+
+ public static final int CONSTRUCTOR = 1457266235;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AllowBotToSendMessages extends Function {
+
+ public long botUserId;
+
+ public AllowBotToSendMessages() {
+ }
+
+ public AllowBotToSendMessages(long botUserId) {
+ this.botUserId = botUserId;
+ }
+
+ public static final int CONSTRUCTOR = 1776928142;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AnswerCallbackQuery extends Function {
+
+ public long callbackQueryId;
+
+ public String text;
+
+ public boolean showAlert;
+
+ public String url;
+
+ public int cacheTime;
+
+ public AnswerCallbackQuery() {
+ }
+
+ public AnswerCallbackQuery(long callbackQueryId, String text, boolean showAlert, String url, int cacheTime) {
+ this.callbackQueryId = callbackQueryId;
+ this.text = text;
+ this.showAlert = showAlert;
+ this.url = url;
+ this.cacheTime = cacheTime;
+ }
+
+ public static final int CONSTRUCTOR = -1153028490;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AnswerCustomQuery extends Function {
+
+ public long customQueryId;
+
+ public String data;
+
+ public AnswerCustomQuery() {
+ }
+
+ public AnswerCustomQuery(long customQueryId, String data) {
+ this.customQueryId = customQueryId;
+ this.data = data;
+ }
+
+ public static final int CONSTRUCTOR = -1293603521;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AnswerInlineQuery extends Function {
+
+ public long inlineQueryId;
+
+ public boolean isPersonal;
+
+ public InlineQueryResultsButton button;
+
+ public InputInlineQueryResult[] results;
+
+ public int cacheTime;
+
+ public String nextOffset;
+
+ public AnswerInlineQuery() {
+ }
+
+ public AnswerInlineQuery(long inlineQueryId, boolean isPersonal, InlineQueryResultsButton button, InputInlineQueryResult[] results, int cacheTime, String nextOffset) {
+ this.inlineQueryId = inlineQueryId;
+ this.isPersonal = isPersonal;
+ this.button = button;
+ this.results = results;
+ this.cacheTime = cacheTime;
+ this.nextOffset = nextOffset;
+ }
+
+ public static final int CONSTRUCTOR = 1343853844;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AnswerPreCheckoutQuery extends Function {
+
+ public long preCheckoutQueryId;
+
+ public String errorMessage;
+
+ public AnswerPreCheckoutQuery() {
+ }
+
+ public AnswerPreCheckoutQuery(long preCheckoutQueryId, String errorMessage) {
+ this.preCheckoutQueryId = preCheckoutQueryId;
+ this.errorMessage = errorMessage;
+ }
+
+ public static final int CONSTRUCTOR = -1486789653;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AnswerShippingQuery extends Function {
+
+ public long shippingQueryId;
+
+ public ShippingOption[] shippingOptions;
+
+ public String errorMessage;
+
+ public AnswerShippingQuery() {
+ }
+
+ public AnswerShippingQuery(long shippingQueryId, ShippingOption[] shippingOptions, String errorMessage) {
+ this.shippingQueryId = shippingQueryId;
+ this.shippingOptions = shippingOptions;
+ this.errorMessage = errorMessage;
+ }
+
+ public static final int CONSTRUCTOR = -434601324;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AnswerWebAppQuery extends Function {
+
+ public String webAppQueryId;
+
+ public InputInlineQueryResult result;
+
+ public AnswerWebAppQuery() {
+ }
+
+ public AnswerWebAppQuery(String webAppQueryId, InputInlineQueryResult result) {
+ this.webAppQueryId = webAppQueryId;
+ this.result = result;
+ }
+
+ public static final int CONSTRUCTOR = -1598776079;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ApplyPremiumGiftCode extends Function {
+
+ public String code;
+
+ public ApplyPremiumGiftCode() {
+ }
+
+ public ApplyPremiumGiftCode(String code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -1347138530;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AssignAppStoreTransaction extends Function {
+
+ public byte[] receipt;
+
+ public StorePaymentPurpose purpose;
+
+ public AssignAppStoreTransaction() {
+ }
+
+ public AssignAppStoreTransaction(byte[] receipt, StorePaymentPurpose purpose) {
+ this.receipt = receipt;
+ this.purpose = purpose;
+ }
+
+ public static final int CONSTRUCTOR = -2030892112;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class AssignGooglePlayTransaction extends Function {
+
+ public String packageName;
+
+ public String storeProductId;
+
+ public String purchaseToken;
+
+ public StorePaymentPurpose purpose;
+
+ public AssignGooglePlayTransaction() {
+ }
+
+ public AssignGooglePlayTransaction(String packageName, String storeProductId, String purchaseToken, StorePaymentPurpose purpose) {
+ this.packageName = packageName;
+ this.storeProductId = storeProductId;
+ this.purchaseToken = purchaseToken;
+ this.purpose = purpose;
+ }
+
+ public static final int CONSTRUCTOR = -1992704860;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BanChatMember extends Function {
+
+ public long chatId;
+
+ public MessageSender memberId;
+
+ public int bannedUntilDate;
+
+ public boolean revokeMessages;
+
+ public BanChatMember() {
+ }
+
+ public BanChatMember(long chatId, MessageSender memberId, int bannedUntilDate, boolean revokeMessages) {
+ this.chatId = chatId;
+ this.memberId = memberId;
+ this.bannedUntilDate = bannedUntilDate;
+ this.revokeMessages = revokeMessages;
+ }
+
+ public static final int CONSTRUCTOR = -888111748;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BlockMessageSenderFromReplies extends Function {
+
+ public long messageId;
+
+ public boolean deleteMessage;
+
+ public boolean deleteAllMessages;
+
+ public boolean reportSpam;
+
+ public BlockMessageSenderFromReplies() {
+ }
+
+ public BlockMessageSenderFromReplies(long messageId, boolean deleteMessage, boolean deleteAllMessages, boolean reportSpam) {
+ this.messageId = messageId;
+ this.deleteMessage = deleteMessage;
+ this.deleteAllMessages = deleteAllMessages;
+ this.reportSpam = reportSpam;
+ }
+
+ public static final int CONSTRUCTOR = -1214384757;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class BoostChat extends Function {
+
+ public long chatId;
+
+ public int[] slotIds;
+
+ public BoostChat() {
+ }
+
+ public BoostChat(long chatId, int[] slotIds) {
+ this.chatId = chatId;
+ this.slotIds = slotIds;
+ }
+
+ public static final int CONSTRUCTOR = 1945750252;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanBotSendMessages extends Function {
+
+ public long botUserId;
+
+ public CanBotSendMessages() {
+ }
+
+ public CanBotSendMessages(long botUserId) {
+ this.botUserId = botUserId;
+ }
+
+ public static final int CONSTRUCTOR = 544052364;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanPurchaseFromStore extends Function {
+
+ public StorePaymentPurpose purpose;
+
+ public CanPurchaseFromStore() {
+ }
+
+ public CanPurchaseFromStore(StorePaymentPurpose purpose) {
+ this.purpose = purpose;
+ }
+
+ public static final int CONSTRUCTOR = 1017811816;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanSendMessageToUser extends Function {
+
+ public long userId;
+
+ public boolean onlyLocal;
+
+ public CanSendMessageToUser() {
+ }
+
+ public CanSendMessageToUser(long userId, boolean onlyLocal) {
+ this.userId = userId;
+ this.onlyLocal = onlyLocal;
+ }
+
+ public static final int CONSTRUCTOR = 1529489462;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanSendStory extends Function {
+
+ public long chatId;
+
+ public CanSendStory() {
+ }
+
+ public CanSendStory(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = -1226825365;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CanTransferOwnership extends Function {
+ public CanTransferOwnership() {
+ }
+
+ public static final int CONSTRUCTOR = 634602508;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CancelDownloadFile extends Function {
+
+ public int fileId;
+
+ public boolean onlyIfPending;
+
+ public CancelDownloadFile() {
+ }
+
+ public CancelDownloadFile(int fileId, boolean onlyIfPending) {
+ this.fileId = fileId;
+ this.onlyIfPending = onlyIfPending;
+ }
+
+ public static final int CONSTRUCTOR = -1954524450;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CancelPasswordReset extends Function {
+ public CancelPasswordReset() {
+ }
+
+ public static final int CONSTRUCTOR = 940733538;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CancelPreliminaryUploadFile extends Function {
+
+ public int fileId;
+
+ public CancelPreliminaryUploadFile() {
+ }
+
+ public CancelPreliminaryUploadFile(int fileId) {
+ this.fileId = fileId;
+ }
+
+ public static final int CONSTRUCTOR = 823412414;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CancelRecoveryEmailAddressVerification extends Function {
+ public CancelRecoveryEmailAddressVerification() {
+ }
+
+ public static final int CONSTRUCTOR = -1516728691;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChangeImportedContacts extends Function {
+
+ public Contact[] contacts;
+
+ public ChangeImportedContacts() {
+ }
+
+ public ChangeImportedContacts(Contact[] contacts) {
+ this.contacts = contacts;
+ }
+
+ public static final int CONSTRUCTOR = 1968207955;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ChangeStickerSet extends Function {
+
+ public long setId;
+
+ public boolean isInstalled;
+
+ public boolean isArchived;
+
+ public ChangeStickerSet() {
+ }
+
+ public ChangeStickerSet(long setId, boolean isInstalled, boolean isArchived) {
+ this.setId = setId;
+ this.isInstalled = isInstalled;
+ this.isArchived = isArchived;
+ }
+
+ public static final int CONSTRUCTOR = 449357293;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckAuthenticationBotToken extends Function {
+
+ public String token;
+
+ public CheckAuthenticationBotToken() {
+ }
+
+ public CheckAuthenticationBotToken(String token) {
+ this.token = token;
+ }
+
+ public static final int CONSTRUCTOR = 639321206;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckAuthenticationCode extends Function {
+
+ public String code;
+
+ public CheckAuthenticationCode() {
+ }
+
+ public CheckAuthenticationCode(String code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -302103382;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckAuthenticationEmailCode extends Function {
+
+ public EmailAddressAuthentication code;
+
+ public CheckAuthenticationEmailCode() {
+ }
+
+ public CheckAuthenticationEmailCode(EmailAddressAuthentication code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -582827361;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckAuthenticationPassword extends Function {
+
+ public String password;
+
+ public CheckAuthenticationPassword() {
+ }
+
+ public CheckAuthenticationPassword(String password) {
+ this.password = password;
+ }
+
+ public static final int CONSTRUCTOR = -2025698400;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckAuthenticationPasswordRecoveryCode extends Function {
+
+ public String recoveryCode;
+
+ public CheckAuthenticationPasswordRecoveryCode() {
+ }
+
+ public CheckAuthenticationPasswordRecoveryCode(String recoveryCode) {
+ this.recoveryCode = recoveryCode;
+ }
+
+ public static final int CONSTRUCTOR = -603309083;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckChatFolderInviteLink extends Function {
+
+ public String inviteLink;
+
+ public CheckChatFolderInviteLink() {
+ }
+
+ public CheckChatFolderInviteLink(String inviteLink) {
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = 522557851;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckChatInviteLink extends Function {
+
+ public String inviteLink;
+
+ public CheckChatInviteLink() {
+ }
+
+ public CheckChatInviteLink(String inviteLink) {
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -496940997;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckChatUsername extends Function {
+
+ public long chatId;
+
+ public String username;
+
+ public CheckChatUsername() {
+ }
+
+ public CheckChatUsername(long chatId, String username) {
+ this.chatId = chatId;
+ this.username = username;
+ }
+
+ public static final int CONSTRUCTOR = -119119344;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckCreatedPublicChatsLimit extends Function {
+
+ public PublicChatType type;
+
+ public CheckCreatedPublicChatsLimit() {
+ }
+
+ public CheckCreatedPublicChatsLimit(PublicChatType type) {
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -445546591;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckEmailAddressVerificationCode extends Function {
+
+ public String code;
+
+ public CheckEmailAddressVerificationCode() {
+ }
+
+ public CheckEmailAddressVerificationCode(String code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -426386685;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckLoginEmailAddressCode extends Function {
+
+ public EmailAddressAuthentication code;
+
+ public CheckLoginEmailAddressCode() {
+ }
+
+ public CheckLoginEmailAddressCode(EmailAddressAuthentication code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -1454244766;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckPasswordRecoveryCode extends Function {
+
+ public String recoveryCode;
+
+ public CheckPasswordRecoveryCode() {
+ }
+
+ public CheckPasswordRecoveryCode(String recoveryCode) {
+ this.recoveryCode = recoveryCode;
+ }
+
+ public static final int CONSTRUCTOR = -200794600;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckPhoneNumberCode extends Function {
+
+ public String code;
+
+ public CheckPhoneNumberCode() {
+ }
+
+ public CheckPhoneNumberCode(String code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -603626079;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckPremiumGiftCode extends Function {
+
+ public String code;
+
+ public CheckPremiumGiftCode() {
+ }
+
+ public CheckPremiumGiftCode(String code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -1786063260;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckQuickReplyShortcutName extends Function {
+
+ public String name;
+
+ public CheckQuickReplyShortcutName() {
+ }
+
+ public CheckQuickReplyShortcutName(String name) {
+ this.name = name;
+ }
+
+ public static final int CONSTRUCTOR = 2101203241;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckRecoveryEmailAddressCode extends Function {
+
+ public String code;
+
+ public CheckRecoveryEmailAddressCode() {
+ }
+
+ public CheckRecoveryEmailAddressCode(String code) {
+ this.code = code;
+ }
+
+ public static final int CONSTRUCTOR = -1997039589;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckStickerSetName extends Function {
+
+ public String name;
+
+ public CheckStickerSetName() {
+ }
+
+ public CheckStickerSetName(String name) {
+ this.name = name;
+ }
+
+ public static final int CONSTRUCTOR = -1789392642;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CheckWebAppFileDownload extends Function {
+
+ public long botUserId;
+
+ public String fileName;
+
+ public String url;
+
+ public CheckWebAppFileDownload() {
+ }
+
+ public CheckWebAppFileDownload(long botUserId, String fileName, String url) {
+ this.botUserId = botUserId;
+ this.fileName = fileName;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = -389397278;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CleanFileName extends Function {
+
+ public String fileName;
+
+ public CleanFileName() {
+ }
+
+ public CleanFileName(String fileName) {
+ this.fileName = fileName;
+ }
+
+ public static final int CONSTRUCTOR = 967964667;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClearAllDraftMessages extends Function {
+
+ public boolean excludeSecretChats;
+
+ public ClearAllDraftMessages() {
+ }
+
+ public ClearAllDraftMessages(boolean excludeSecretChats) {
+ this.excludeSecretChats = excludeSecretChats;
+ }
+
+ public static final int CONSTRUCTOR = -46369573;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClearAutosaveSettingsExceptions extends Function {
+ public ClearAutosaveSettingsExceptions() {
+ }
+
+ public static final int CONSTRUCTOR = 1475109874;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClearImportedContacts extends Function {
+ public ClearImportedContacts() {
+ }
+
+ public static final int CONSTRUCTOR = 869503298;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClearRecentEmojiStatuses extends Function {
+ public ClearRecentEmojiStatuses() {
+ }
+
+ public static final int CONSTRUCTOR = -428749986;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClearRecentReactions extends Function {
+ public ClearRecentReactions() {
+ }
+
+ public static final int CONSTRUCTOR = 1298253650;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClearRecentStickers extends Function {
+
+ public boolean isAttached;
+
+ public ClearRecentStickers() {
+ }
+
+ public ClearRecentStickers(boolean isAttached) {
+ this.isAttached = isAttached;
+ }
+
+ public static final int CONSTRUCTOR = -321242684;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClearRecentlyFoundChats extends Function {
+ public ClearRecentlyFoundChats() {
+ }
+
+ public static final int CONSTRUCTOR = -285582542;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClearSearchedForTags extends Function {
+
+ public boolean clearCashtags;
+
+ public ClearSearchedForTags() {
+ }
+
+ public ClearSearchedForTags(boolean clearCashtags) {
+ this.clearCashtags = clearCashtags;
+ }
+
+ public static final int CONSTRUCTOR = 512017238;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClickAnimatedEmojiMessage extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public ClickAnimatedEmojiMessage() {
+ }
+
+ public ClickAnimatedEmojiMessage(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = 196179554;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClickChatSponsoredMessage extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public boolean isMediaClick;
+
+ public boolean fromFullscreen;
+
+ public ClickChatSponsoredMessage() {
+ }
+
+ public ClickChatSponsoredMessage(long chatId, long messageId, boolean isMediaClick, boolean fromFullscreen) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.isMediaClick = isMediaClick;
+ this.fromFullscreen = fromFullscreen;
+ }
+
+ public static final int CONSTRUCTOR = 971995671;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ClickPremiumSubscriptionButton extends Function {
+ public ClickPremiumSubscriptionButton() {
+ }
+
+ public static final int CONSTRUCTOR = -369319162;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Close extends Function {
+ public Close() {
+ }
+
+ public static final int CONSTRUCTOR = -1187782273;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CloseChat extends Function {
+
+ public long chatId;
+
+ public CloseChat() {
+ }
+
+ public CloseChat(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = 39749353;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CloseSecretChat extends Function {
+
+ public int secretChatId;
+
+ public CloseSecretChat() {
+ }
+
+ public CloseSecretChat(int secretChatId) {
+ this.secretChatId = secretChatId;
+ }
+
+ public static final int CONSTRUCTOR = -471006133;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CloseStory extends Function {
+
+ public long storySenderChatId;
+
+ public int storyId;
+
+ public CloseStory() {
+ }
+
+ public CloseStory(long storySenderChatId, int storyId) {
+ this.storySenderChatId = storySenderChatId;
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = 1144852309;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CloseWebApp extends Function {
+
+ public long webAppLaunchId;
+
+ public CloseWebApp() {
+ }
+
+ public CloseWebApp(long webAppLaunchId) {
+ this.webAppLaunchId = webAppLaunchId;
+ }
+
+ public static final int CONSTRUCTOR = 1755391174;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CommitPendingPaidMessageReactions extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public CommitPendingPaidMessageReactions() {
+ }
+
+ public CommitPendingPaidMessageReactions(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = -171354618;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ConfirmQrCodeAuthentication extends Function {
+
+ public String link;
+
+ public ConfirmQrCodeAuthentication() {
+ }
+
+ public ConfirmQrCodeAuthentication(String link) {
+ this.link = link;
+ }
+
+ public static final int CONSTRUCTOR = -376199379;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ConfirmSession extends Function {
+
+ public long sessionId;
+
+ public ConfirmSession() {
+ }
+
+ public ConfirmSession(long sessionId) {
+ this.sessionId = sessionId;
+ }
+
+ public static final int CONSTRUCTOR = -674647009;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ConnectChatAffiliateProgram extends Function {
+
+ public long chatId;
+
+ public long botUserId;
+
+ public ConnectChatAffiliateProgram() {
+ }
+
+ public ConnectChatAffiliateProgram(long chatId, long botUserId) {
+ this.chatId = chatId;
+ this.botUserId = botUserId;
+ }
+
+ public static final int CONSTRUCTOR = 1974559684;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateBasicGroupChat extends Function {
+
+ public long basicGroupId;
+
+ public boolean force;
+
+ public CreateBasicGroupChat() {
+ }
+
+ public CreateBasicGroupChat(long basicGroupId, boolean force) {
+ this.basicGroupId = basicGroupId;
+ this.force = force;
+ }
+
+ public static final int CONSTRUCTOR = 1972024548;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateBusinessChatLink extends Function {
+
+ public InputBusinessChatLink linkInfo;
+
+ public CreateBusinessChatLink() {
+ }
+
+ public CreateBusinessChatLink(InputBusinessChatLink linkInfo) {
+ this.linkInfo = linkInfo;
+ }
+
+ public static final int CONSTRUCTOR = -1861018304;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateCall extends Function {
+
+ public long userId;
+
+ public CallProtocol protocol;
+
+ public boolean isVideo;
+
+ public CreateCall() {
+ }
+
+ public CreateCall(long userId, CallProtocol protocol, boolean isVideo) {
+ this.userId = userId;
+ this.protocol = protocol;
+ this.isVideo = isVideo;
+ }
+
+ public static final int CONSTRUCTOR = -1104663024;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateChatFolder extends Function {
+
+ public ChatFolder folder;
+
+ public CreateChatFolder() {
+ }
+
+ public CreateChatFolder(ChatFolder folder) {
+ this.folder = folder;
+ }
+
+ public static final int CONSTRUCTOR = 1015399680;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateChatFolderInviteLink extends Function {
+
+ public int chatFolderId;
+
+ public String name;
+
+ public long[] chatIds;
+
+ public CreateChatFolderInviteLink() {
+ }
+
+ public CreateChatFolderInviteLink(int chatFolderId, String name, long[] chatIds) {
+ this.chatFolderId = chatFolderId;
+ this.name = name;
+ this.chatIds = chatIds;
+ }
+
+ public static final int CONSTRUCTOR = -2037911099;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateChatInviteLink extends Function {
+
+ public long chatId;
+
+ public String name;
+
+ public int expirationDate;
+
+ public int memberLimit;
+
+ public boolean createsJoinRequest;
+
+ public CreateChatInviteLink() {
+ }
+
+ public CreateChatInviteLink(long chatId, String name, int expirationDate, int memberLimit, boolean createsJoinRequest) {
+ this.chatId = chatId;
+ this.name = name;
+ this.expirationDate = expirationDate;
+ this.memberLimit = memberLimit;
+ this.createsJoinRequest = createsJoinRequest;
+ }
+
+ public static final int CONSTRUCTOR = 287744833;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateChatSubscriptionInviteLink extends Function {
+
+ public long chatId;
+
+ public String name;
+
+ public StarSubscriptionPricing subscriptionPricing;
+
+ public CreateChatSubscriptionInviteLink() {
+ }
+
+ public CreateChatSubscriptionInviteLink(long chatId, String name, StarSubscriptionPricing subscriptionPricing) {
+ this.chatId = chatId;
+ this.name = name;
+ this.subscriptionPricing = subscriptionPricing;
+ }
+
+ public static final int CONSTRUCTOR = 2255717;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateForumTopic extends Function {
+
+ public long chatId;
+
+ public String name;
+
+ public ForumTopicIcon icon;
+
+ public CreateForumTopic() {
+ }
+
+ public CreateForumTopic(long chatId, String name, ForumTopicIcon icon) {
+ this.chatId = chatId;
+ this.name = name;
+ this.icon = icon;
+ }
+
+ public static final int CONSTRUCTOR = -1040570140;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateInvoiceLink extends Function {
+
+ public String businessConnectionId;
+
+ public InputMessageContent invoice;
+
+ public CreateInvoiceLink() {
+ }
+
+ public CreateInvoiceLink(String businessConnectionId, InputMessageContent invoice) {
+ this.businessConnectionId = businessConnectionId;
+ this.invoice = invoice;
+ }
+
+ public static final int CONSTRUCTOR = -814692249;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateNewBasicGroupChat extends Function {
+
+ public long[] userIds;
+
+ public String title;
+
+ public int messageAutoDeleteTime;
+
+ public CreateNewBasicGroupChat() {
+ }
+
+ public CreateNewBasicGroupChat(long[] userIds, String title, int messageAutoDeleteTime) {
+ this.userIds = userIds;
+ this.title = title;
+ this.messageAutoDeleteTime = messageAutoDeleteTime;
+ }
+
+ public static final int CONSTRUCTOR = 1806454709;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateNewSecretChat extends Function {
+
+ public long userId;
+
+ public CreateNewSecretChat() {
+ }
+
+ public CreateNewSecretChat(long userId) {
+ this.userId = userId;
+ }
+
+ public static final int CONSTRUCTOR = -620682651;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateNewStickerSet extends Function {
+
+ public long userId;
+
+ public String title;
+
+ public String name;
+
+ public StickerType stickerType;
+
+ public boolean needsRepainting;
+
+ public InputSticker[] stickers;
+
+ public String source;
+
+ public CreateNewStickerSet() {
+ }
+
+ public CreateNewStickerSet(long userId, String title, String name, StickerType stickerType, boolean needsRepainting, InputSticker[] stickers, String source) {
+ this.userId = userId;
+ this.title = title;
+ this.name = name;
+ this.stickerType = stickerType;
+ this.needsRepainting = needsRepainting;
+ this.stickers = stickers;
+ this.source = source;
+ }
+
+ public static final int CONSTRUCTOR = -481065727;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateNewSupergroupChat extends Function {
+
+ public String title;
+
+ public boolean isForum;
+
+ public boolean isChannel;
+
+ public String description;
+
+ public ChatLocation location;
+
+ public int messageAutoDeleteTime;
+
+ public boolean forImport;
+
+ public CreateNewSupergroupChat() {
+ }
+
+ public CreateNewSupergroupChat(String title, boolean isForum, boolean isChannel, String description, ChatLocation location, int messageAutoDeleteTime, boolean forImport) {
+ this.title = title;
+ this.isForum = isForum;
+ this.isChannel = isChannel;
+ this.description = description;
+ this.location = location;
+ this.messageAutoDeleteTime = messageAutoDeleteTime;
+ this.forImport = forImport;
+ }
+
+ public static final int CONSTRUCTOR = 804058822;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreatePrivateChat extends Function {
+
+ public long userId;
+
+ public boolean force;
+
+ public CreatePrivateChat() {
+ }
+
+ public CreatePrivateChat(long userId, boolean force) {
+ this.userId = userId;
+ this.force = force;
+ }
+
+ public static final int CONSTRUCTOR = -947758327;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateSecretChat extends Function {
+
+ public int secretChatId;
+
+ public CreateSecretChat() {
+ }
+
+ public CreateSecretChat(int secretChatId) {
+ this.secretChatId = secretChatId;
+ }
+
+ public static final int CONSTRUCTOR = 1930285615;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateSupergroupChat extends Function {
+
+ public long supergroupId;
+
+ public boolean force;
+
+ public CreateSupergroupChat() {
+ }
+
+ public CreateSupergroupChat(long supergroupId, boolean force) {
+ this.supergroupId = supergroupId;
+ this.force = force;
+ }
+
+ public static final int CONSTRUCTOR = 1187475691;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateTemporaryPassword extends Function {
+
+ public String password;
+
+ public int validFor;
+
+ public CreateTemporaryPassword() {
+ }
+
+ public CreateTemporaryPassword(String password, int validFor) {
+ this.password = password;
+ this.validFor = validFor;
+ }
+
+ public static final int CONSTRUCTOR = -1626509434;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class CreateVideoChat extends Function {
+
+ public long chatId;
+
+ public String title;
+
+ public int startDate;
+
+ public boolean isRtmpStream;
+
+ public CreateVideoChat() {
+ }
+
+ public CreateVideoChat(long chatId, String title, int startDate, boolean isRtmpStream) {
+ this.chatId = chatId;
+ this.title = title;
+ this.startDate = startDate;
+ this.isRtmpStream = isRtmpStream;
+ }
+
+ public static final int CONSTRUCTOR = 2124715405;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteAccount extends Function {
+
+ public String reason;
+
+ public String password;
+
+ public DeleteAccount() {
+ }
+
+ public DeleteAccount(String reason, String password) {
+ this.reason = reason;
+ this.password = password;
+ }
+
+ public static final int CONSTRUCTOR = 1395816134;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteAllCallMessages extends Function {
+
+ public boolean revoke;
+
+ public DeleteAllCallMessages() {
+ }
+
+ public DeleteAllCallMessages(boolean revoke) {
+ this.revoke = revoke;
+ }
+
+ public static final int CONSTRUCTOR = -1466445325;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteAllRevokedChatInviteLinks extends Function {
+
+ public long chatId;
+
+ public long creatorUserId;
+
+ public DeleteAllRevokedChatInviteLinks() {
+ }
+
+ public DeleteAllRevokedChatInviteLinks(long chatId, long creatorUserId) {
+ this.chatId = chatId;
+ this.creatorUserId = creatorUserId;
+ }
+
+ public static final int CONSTRUCTOR = 1112020698;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteBotMediaPreviews extends Function {
+
+ public long botUserId;
+
+ public String languageCode;
+
+ public int[] fileIds;
+
+ public DeleteBotMediaPreviews() {
+ }
+
+ public DeleteBotMediaPreviews(long botUserId, String languageCode, int[] fileIds) {
+ this.botUserId = botUserId;
+ this.languageCode = languageCode;
+ this.fileIds = fileIds;
+ }
+
+ public static final int CONSTRUCTOR = -1397512722;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteBusinessChatLink extends Function {
+
+ public String link;
+
+ public DeleteBusinessChatLink() {
+ }
+
+ public DeleteBusinessChatLink(String link) {
+ this.link = link;
+ }
+
+ public static final int CONSTRUCTOR = -1101895865;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteBusinessConnectedBot extends Function {
+
+ public long botUserId;
+
+ public DeleteBusinessConnectedBot() {
+ }
+
+ public DeleteBusinessConnectedBot(long botUserId) {
+ this.botUserId = botUserId;
+ }
+
+ public static final int CONSTRUCTOR = -1633976747;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteChat extends Function {
+
+ public long chatId;
+
+ public DeleteChat() {
+ }
+
+ public DeleteChat(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = -171253666;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteChatBackground extends Function {
+
+ public long chatId;
+
+ public boolean restorePrevious;
+
+ public DeleteChatBackground() {
+ }
+
+ public DeleteChatBackground(long chatId, boolean restorePrevious) {
+ this.chatId = chatId;
+ this.restorePrevious = restorePrevious;
+ }
+
+ public static final int CONSTRUCTOR = 320267896;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteChatFolder extends Function {
+
+ public int chatFolderId;
+
+ public long[] leaveChatIds;
+
+ public DeleteChatFolder() {
+ }
+
+ public DeleteChatFolder(int chatFolderId, long[] leaveChatIds) {
+ this.chatFolderId = chatFolderId;
+ this.leaveChatIds = leaveChatIds;
+ }
+
+ public static final int CONSTRUCTOR = -1956364551;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteChatFolderInviteLink extends Function {
+
+ public int chatFolderId;
+
+ public String inviteLink;
+
+ public DeleteChatFolderInviteLink() {
+ }
+
+ public DeleteChatFolderInviteLink(int chatFolderId, String inviteLink) {
+ this.chatFolderId = chatFolderId;
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -930057858;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteChatHistory extends Function {
+
+ public long chatId;
+
+ public boolean removeFromChatList;
+
+ public boolean revoke;
+
+ public DeleteChatHistory() {
+ }
+
+ public DeleteChatHistory(long chatId, boolean removeFromChatList, boolean revoke) {
+ this.chatId = chatId;
+ this.removeFromChatList = removeFromChatList;
+ this.revoke = revoke;
+ }
+
+ public static final int CONSTRUCTOR = -1472081761;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteChatMessagesByDate extends Function {
+
+ public long chatId;
+
+ public int minDate;
+
+ public int maxDate;
+
+ public boolean revoke;
+
+ public DeleteChatMessagesByDate() {
+ }
+
+ public DeleteChatMessagesByDate(long chatId, int minDate, int maxDate, boolean revoke) {
+ this.chatId = chatId;
+ this.minDate = minDate;
+ this.maxDate = maxDate;
+ this.revoke = revoke;
+ }
+
+ public static final int CONSTRUCTOR = -1639653185;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteChatMessagesBySender extends Function {
+
+ public long chatId;
+
+ public MessageSender senderId;
+
+ public DeleteChatMessagesBySender() {
+ }
+
+ public DeleteChatMessagesBySender(long chatId, MessageSender senderId) {
+ this.chatId = chatId;
+ this.senderId = senderId;
+ }
+
+ public static final int CONSTRUCTOR = -1164235161;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteChatReplyMarkup extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public DeleteChatReplyMarkup() {
+ }
+
+ public DeleteChatReplyMarkup(long chatId, long messageId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ }
+
+ public static final int CONSTRUCTOR = 100637531;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteCommands extends Function {
+
+ public BotCommandScope scope;
+
+ public String languageCode;
+
+ public DeleteCommands() {
+ }
+
+ public DeleteCommands(BotCommandScope scope, String languageCode) {
+ this.scope = scope;
+ this.languageCode = languageCode;
+ }
+
+ public static final int CONSTRUCTOR = 1002732586;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteDefaultBackground extends Function {
+
+ public boolean forDarkTheme;
+
+ public DeleteDefaultBackground() {
+ }
+
+ public DeleteDefaultBackground(boolean forDarkTheme) {
+ this.forDarkTheme = forDarkTheme;
+ }
+
+ public static final int CONSTRUCTOR = -1297814210;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteFile extends Function {
+
+ public int fileId;
+
+ public DeleteFile() {
+ }
+
+ public DeleteFile(int fileId) {
+ this.fileId = fileId;
+ }
+
+ public static final int CONSTRUCTOR = 1807653676;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteForumTopic extends Function {
+
+ public long chatId;
+
+ public long messageThreadId;
+
+ public DeleteForumTopic() {
+ }
+
+ public DeleteForumTopic(long chatId, long messageThreadId) {
+ this.chatId = chatId;
+ this.messageThreadId = messageThreadId;
+ }
+
+ public static final int CONSTRUCTOR = 1864916152;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteLanguagePack extends Function {
+
+ public String languagePackId;
+
+ public DeleteLanguagePack() {
+ }
+
+ public DeleteLanguagePack(String languagePackId) {
+ this.languagePackId = languagePackId;
+ }
+
+ public static final int CONSTRUCTOR = -2108761026;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteMessages extends Function {
+
+ public long chatId;
+
+ public long[] messageIds;
+
+ public boolean revoke;
+
+ public DeleteMessages() {
+ }
+
+ public DeleteMessages(long chatId, long[] messageIds, boolean revoke) {
+ this.chatId = chatId;
+ this.messageIds = messageIds;
+ this.revoke = revoke;
+ }
+
+ public static final int CONSTRUCTOR = 1130090173;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeletePassportElement extends Function {
+
+ public PassportElementType type;
+
+ public DeletePassportElement() {
+ }
+
+ public DeletePassportElement(PassportElementType type) {
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -1719555468;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteProfilePhoto extends Function {
+
+ public long profilePhotoId;
+
+ public DeleteProfilePhoto() {
+ }
+
+ public DeleteProfilePhoto(long profilePhotoId) {
+ this.profilePhotoId = profilePhotoId;
+ }
+
+ public static final int CONSTRUCTOR = 1319794625;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteQuickReplyShortcut extends Function {
+
+ public int shortcutId;
+
+ public DeleteQuickReplyShortcut() {
+ }
+
+ public DeleteQuickReplyShortcut(int shortcutId) {
+ this.shortcutId = shortcutId;
+ }
+
+ public static final int CONSTRUCTOR = -246911978;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteQuickReplyShortcutMessages extends Function {
+
+ public int shortcutId;
+
+ public long[] messageIds;
+
+ public DeleteQuickReplyShortcutMessages() {
+ }
+
+ public DeleteQuickReplyShortcutMessages(int shortcutId, long[] messageIds) {
+ this.shortcutId = shortcutId;
+ this.messageIds = messageIds;
+ }
+
+ public static final int CONSTRUCTOR = -40522947;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteRevokedChatInviteLink extends Function {
+
+ public long chatId;
+
+ public String inviteLink;
+
+ public DeleteRevokedChatInviteLink() {
+ }
+
+ public DeleteRevokedChatInviteLink(long chatId, String inviteLink) {
+ this.chatId = chatId;
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -1859711873;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteSavedCredentials extends Function {
+ public DeleteSavedCredentials() {
+ }
+
+ public static final int CONSTRUCTOR = 826300114;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteSavedMessagesTopicHistory extends Function {
+
+ public long savedMessagesTopicId;
+
+ public DeleteSavedMessagesTopicHistory() {
+ }
+
+ public DeleteSavedMessagesTopicHistory(long savedMessagesTopicId) {
+ this.savedMessagesTopicId = savedMessagesTopicId;
+ }
+
+ public static final int CONSTRUCTOR = 1776237930;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteSavedMessagesTopicMessagesByDate extends Function {
+
+ public long savedMessagesTopicId;
+
+ public int minDate;
+
+ public int maxDate;
+
+ public DeleteSavedMessagesTopicMessagesByDate() {
+ }
+
+ public DeleteSavedMessagesTopicMessagesByDate(long savedMessagesTopicId, int minDate, int maxDate) {
+ this.savedMessagesTopicId = savedMessagesTopicId;
+ this.minDate = minDate;
+ this.maxDate = maxDate;
+ }
+
+ public static final int CONSTRUCTOR = 1444389;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteSavedOrderInfo extends Function {
+ public DeleteSavedOrderInfo() {
+ }
+
+ public static final int CONSTRUCTOR = 1629058164;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteStickerSet extends Function {
+
+ public String name;
+
+ public DeleteStickerSet() {
+ }
+
+ public DeleteStickerSet(String name) {
+ this.name = name;
+ }
+
+ public static final int CONSTRUCTOR = 1577745325;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DeleteStory extends Function {
+
+ public long storySenderChatId;
+
+ public int storyId;
+
+ public DeleteStory() {
+ }
+
+ public DeleteStory(long storySenderChatId, int storyId) {
+ this.storySenderChatId = storySenderChatId;
+ this.storyId = storyId;
+ }
+
+ public static final int CONSTRUCTOR = -1623871722;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class Destroy extends Function {
+ public Destroy() {
+ }
+
+ public static final int CONSTRUCTOR = 685331274;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DisableAllSupergroupUsernames extends Function {
+
+ public long supergroupId;
+
+ public DisableAllSupergroupUsernames() {
+ }
+
+ public DisableAllSupergroupUsernames(long supergroupId) {
+ this.supergroupId = supergroupId;
+ }
+
+ public static final int CONSTRUCTOR = 843511216;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DisableProxy extends Function {
+ public DisableProxy() {
+ }
+
+ public static final int CONSTRUCTOR = -2100095102;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DiscardCall extends Function {
+
+ public int callId;
+
+ public boolean isDisconnected;
+
+ public int duration;
+
+ public boolean isVideo;
+
+ public long connectionId;
+
+ public DiscardCall() {
+ }
+
+ public DiscardCall(int callId, boolean isDisconnected, int duration, boolean isVideo, long connectionId) {
+ this.callId = callId;
+ this.isDisconnected = isDisconnected;
+ this.duration = duration;
+ this.isVideo = isVideo;
+ this.connectionId = connectionId;
+ }
+
+ public static final int CONSTRUCTOR = -1784044162;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DisconnectAllWebsites extends Function {
+ public DisconnectAllWebsites() {
+ }
+
+ public static final int CONSTRUCTOR = -1082985981;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DisconnectChatAffiliateProgram extends Function {
+
+ public long chatId;
+
+ public String url;
+
+ public DisconnectChatAffiliateProgram() {
+ }
+
+ public DisconnectChatAffiliateProgram(long chatId, String url) {
+ this.chatId = chatId;
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 1223651927;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DisconnectWebsite extends Function {
+
+ public long websiteId;
+
+ public DisconnectWebsite() {
+ }
+
+ public DisconnectWebsite(long websiteId) {
+ this.websiteId = websiteId;
+ }
+
+ public static final int CONSTRUCTOR = -778767395;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class DownloadFile extends Function {
+
+ public int fileId;
+
+ public int priority;
+
+ public long offset;
+
+ public long limit;
+
+ public boolean synchronous;
+
+ public DownloadFile() {
+ }
+
+ public DownloadFile(int fileId, int priority, long offset, long limit, boolean synchronous) {
+ this.fileId = fileId;
+ this.priority = priority;
+ this.offset = offset;
+ this.limit = limit;
+ this.synchronous = synchronous;
+ }
+
+ public static final int CONSTRUCTOR = 1059402292;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditBotMediaPreview extends Function {
+
+ public long botUserId;
+
+ public String languageCode;
+
+ public int fileId;
+
+ public InputStoryContent content;
+
+ public EditBotMediaPreview() {
+ }
+
+ public EditBotMediaPreview(long botUserId, String languageCode, int fileId, InputStoryContent content) {
+ this.botUserId = botUserId;
+ this.languageCode = languageCode;
+ this.fileId = fileId;
+ this.content = content;
+ }
+
+ public static final int CONSTRUCTOR = -2037031582;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditBusinessChatLink extends Function {
+
+ public String link;
+
+ public InputBusinessChatLink linkInfo;
+
+ public EditBusinessChatLink() {
+ }
+
+ public EditBusinessChatLink(String link, InputBusinessChatLink linkInfo) {
+ this.link = link;
+ this.linkInfo = linkInfo;
+ }
+
+ public static final int CONSTRUCTOR = 1594947110;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditBusinessMessageCaption extends Function {
+
+ public String businessConnectionId;
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public EditBusinessMessageCaption() {
+ }
+
+ public EditBusinessMessageCaption(String businessConnectionId, long chatId, long messageId, ReplyMarkup replyMarkup, FormattedText caption, boolean showCaptionAboveMedia) {
+ this.businessConnectionId = businessConnectionId;
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.replyMarkup = replyMarkup;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ }
+
+ public static final int CONSTRUCTOR = -1071562045;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditBusinessMessageLiveLocation extends Function {
+
+ public String businessConnectionId;
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public Location location;
+
+ public int livePeriod;
+
+ public int heading;
+
+ public int proximityAlertRadius;
+
+ public EditBusinessMessageLiveLocation() {
+ }
+
+ public EditBusinessMessageLiveLocation(String businessConnectionId, long chatId, long messageId, ReplyMarkup replyMarkup, Location location, int livePeriod, int heading, int proximityAlertRadius) {
+ this.businessConnectionId = businessConnectionId;
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.replyMarkup = replyMarkup;
+ this.location = location;
+ this.livePeriod = livePeriod;
+ this.heading = heading;
+ this.proximityAlertRadius = proximityAlertRadius;
+ }
+
+ public static final int CONSTRUCTOR = 494972447;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditBusinessMessageMedia extends Function {
+
+ public String businessConnectionId;
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public EditBusinessMessageMedia() {
+ }
+
+ public EditBusinessMessageMedia(String businessConnectionId, long chatId, long messageId, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.businessConnectionId = businessConnectionId;
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = -60733576;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditBusinessMessageReplyMarkup extends Function {
+
+ public String businessConnectionId;
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public EditBusinessMessageReplyMarkup() {
+ }
+
+ public EditBusinessMessageReplyMarkup(String businessConnectionId, long chatId, long messageId, ReplyMarkup replyMarkup) {
+ this.businessConnectionId = businessConnectionId;
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.replyMarkup = replyMarkup;
+ }
+
+ public static final int CONSTRUCTOR = 701787159;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditBusinessMessageText extends Function {
+
+ public String businessConnectionId;
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public EditBusinessMessageText() {
+ }
+
+ public EditBusinessMessageText(String businessConnectionId, long chatId, long messageId, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.businessConnectionId = businessConnectionId;
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = -1149169252;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditChatFolder extends Function {
+
+ public int chatFolderId;
+
+ public ChatFolder folder;
+
+ public EditChatFolder() {
+ }
+
+ public EditChatFolder(int chatFolderId, ChatFolder folder) {
+ this.chatFolderId = chatFolderId;
+ this.folder = folder;
+ }
+
+ public static final int CONSTRUCTOR = 53672754;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditChatFolderInviteLink extends Function {
+
+ public int chatFolderId;
+
+ public String inviteLink;
+
+ public String name;
+
+ public long[] chatIds;
+
+ public EditChatFolderInviteLink() {
+ }
+
+ public EditChatFolderInviteLink(int chatFolderId, String inviteLink, String name, long[] chatIds) {
+ this.chatFolderId = chatFolderId;
+ this.inviteLink = inviteLink;
+ this.name = name;
+ this.chatIds = chatIds;
+ }
+
+ public static final int CONSTRUCTOR = -2141872095;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditChatInviteLink extends Function {
+
+ public long chatId;
+
+ public String inviteLink;
+
+ public String name;
+
+ public int expirationDate;
+
+ public int memberLimit;
+
+ public boolean createsJoinRequest;
+
+ public EditChatInviteLink() {
+ }
+
+ public EditChatInviteLink(long chatId, String inviteLink, String name, int expirationDate, int memberLimit, boolean createsJoinRequest) {
+ this.chatId = chatId;
+ this.inviteLink = inviteLink;
+ this.name = name;
+ this.expirationDate = expirationDate;
+ this.memberLimit = memberLimit;
+ this.createsJoinRequest = createsJoinRequest;
+ }
+
+ public static final int CONSTRUCTOR = 1320303996;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditChatSubscriptionInviteLink extends Function {
+
+ public long chatId;
+
+ public String inviteLink;
+
+ public String name;
+
+ public EditChatSubscriptionInviteLink() {
+ }
+
+ public EditChatSubscriptionInviteLink(long chatId, String inviteLink, String name) {
+ this.chatId = chatId;
+ this.inviteLink = inviteLink;
+ this.name = name;
+ }
+
+ public static final int CONSTRUCTOR = -951826989;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditCustomLanguagePackInfo extends Function {
+
+ public LanguagePackInfo info;
+
+ public EditCustomLanguagePackInfo() {
+ }
+
+ public EditCustomLanguagePackInfo(LanguagePackInfo info) {
+ this.info = info;
+ }
+
+ public static final int CONSTRUCTOR = 1320751257;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditForumTopic extends Function {
+
+ public long chatId;
+
+ public long messageThreadId;
+
+ public String name;
+
+ public boolean editIconCustomEmoji;
+
+ public long iconCustomEmojiId;
+
+ public EditForumTopic() {
+ }
+
+ public EditForumTopic(long chatId, long messageThreadId, String name, boolean editIconCustomEmoji, long iconCustomEmojiId) {
+ this.chatId = chatId;
+ this.messageThreadId = messageThreadId;
+ this.name = name;
+ this.editIconCustomEmoji = editIconCustomEmoji;
+ this.iconCustomEmojiId = iconCustomEmojiId;
+ }
+
+ public static final int CONSTRUCTOR = -1485402016;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditInlineMessageCaption extends Function {
+
+ public String inlineMessageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public EditInlineMessageCaption() {
+ }
+
+ public EditInlineMessageCaption(String inlineMessageId, ReplyMarkup replyMarkup, FormattedText caption, boolean showCaptionAboveMedia) {
+ this.inlineMessageId = inlineMessageId;
+ this.replyMarkup = replyMarkup;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ }
+
+ public static final int CONSTRUCTOR = 1409762552;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditInlineMessageLiveLocation extends Function {
+
+ public String inlineMessageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public Location location;
+
+ public int livePeriod;
+
+ public int heading;
+
+ public int proximityAlertRadius;
+
+ public EditInlineMessageLiveLocation() {
+ }
+
+ public EditInlineMessageLiveLocation(String inlineMessageId, ReplyMarkup replyMarkup, Location location, int livePeriod, int heading, int proximityAlertRadius) {
+ this.inlineMessageId = inlineMessageId;
+ this.replyMarkup = replyMarkup;
+ this.location = location;
+ this.livePeriod = livePeriod;
+ this.heading = heading;
+ this.proximityAlertRadius = proximityAlertRadius;
+ }
+
+ public static final int CONSTRUCTOR = 2134352044;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditInlineMessageMedia extends Function {
+
+ public String inlineMessageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public EditInlineMessageMedia() {
+ }
+
+ public EditInlineMessageMedia(String inlineMessageId, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.inlineMessageId = inlineMessageId;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 23553921;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditInlineMessageReplyMarkup extends Function {
+
+ public String inlineMessageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public EditInlineMessageReplyMarkup() {
+ }
+
+ public EditInlineMessageReplyMarkup(String inlineMessageId, ReplyMarkup replyMarkup) {
+ this.inlineMessageId = inlineMessageId;
+ this.replyMarkup = replyMarkup;
+ }
+
+ public static final int CONSTRUCTOR = -67565858;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditInlineMessageText extends Function {
+
+ public String inlineMessageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public EditInlineMessageText() {
+ }
+
+ public EditInlineMessageText(String inlineMessageId, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.inlineMessageId = inlineMessageId;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = -855457307;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditMessageCaption extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public FormattedText caption;
+
+ public boolean showCaptionAboveMedia;
+
+ public EditMessageCaption() {
+ }
+
+ public EditMessageCaption(long chatId, long messageId, ReplyMarkup replyMarkup, FormattedText caption, boolean showCaptionAboveMedia) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.replyMarkup = replyMarkup;
+ this.caption = caption;
+ this.showCaptionAboveMedia = showCaptionAboveMedia;
+ }
+
+ public static final int CONSTRUCTOR = -2020117951;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditMessageLiveLocation extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public Location location;
+
+ public int livePeriod;
+
+ public int heading;
+
+ public int proximityAlertRadius;
+
+ public EditMessageLiveLocation() {
+ }
+
+ public EditMessageLiveLocation(long chatId, long messageId, ReplyMarkup replyMarkup, Location location, int livePeriod, int heading, int proximityAlertRadius) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.replyMarkup = replyMarkup;
+ this.location = location;
+ this.livePeriod = livePeriod;
+ this.heading = heading;
+ this.proximityAlertRadius = proximityAlertRadius;
+ }
+
+ public static final int CONSTRUCTOR = -1890511980;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditMessageMedia extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public EditMessageMedia() {
+ }
+
+ public EditMessageMedia(long chatId, long messageId, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = -1152678125;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditMessageReplyMarkup extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public EditMessageReplyMarkup() {
+ }
+
+ public EditMessageReplyMarkup(long chatId, long messageId, ReplyMarkup replyMarkup) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.replyMarkup = replyMarkup;
+ }
+
+ public static final int CONSTRUCTOR = 332127881;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditMessageSchedulingState extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public MessageSchedulingState schedulingState;
+
+ public EditMessageSchedulingState() {
+ }
+
+ public EditMessageSchedulingState(long chatId, long messageId, MessageSchedulingState schedulingState) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.schedulingState = schedulingState;
+ }
+
+ public static final int CONSTRUCTOR = -1372976192;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditMessageText extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public ReplyMarkup replyMarkup;
+
+ public InputMessageContent inputMessageContent;
+
+ public EditMessageText() {
+ }
+
+ public EditMessageText(long chatId, long messageId, ReplyMarkup replyMarkup, InputMessageContent inputMessageContent) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.replyMarkup = replyMarkup;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 196272567;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditProxy extends Function {
+
+ public int proxyId;
+
+ public String server;
+
+ public int port;
+
+ public boolean enable;
+
+ public ProxyType type;
+
+ public EditProxy() {
+ }
+
+ public EditProxy(int proxyId, String server, int port, boolean enable, ProxyType type) {
+ this.proxyId = proxyId;
+ this.server = server;
+ this.port = port;
+ this.enable = enable;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = -1605883821;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditQuickReplyMessage extends Function {
+
+ public int shortcutId;
+
+ public long messageId;
+
+ public InputMessageContent inputMessageContent;
+
+ public EditQuickReplyMessage() {
+ }
+
+ public EditQuickReplyMessage(int shortcutId, long messageId, InputMessageContent inputMessageContent) {
+ this.shortcutId = shortcutId;
+ this.messageId = messageId;
+ this.inputMessageContent = inputMessageContent;
+ }
+
+ public static final int CONSTRUCTOR = 80517006;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditStarSubscription extends Function {
+
+ public String subscriptionId;
+
+ public boolean isCanceled;
+
+ public EditStarSubscription() {
+ }
+
+ public EditStarSubscription(String subscriptionId, boolean isCanceled) {
+ this.subscriptionId = subscriptionId;
+ this.isCanceled = isCanceled;
+ }
+
+ public static final int CONSTRUCTOR = 2048538904;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditStory extends Function {
+
+ public long storySenderChatId;
+
+ public int storyId;
+
+ public InputStoryContent content;
+
+ public InputStoryAreas areas;
+
+ public FormattedText caption;
+
+ public EditStory() {
+ }
+
+ public EditStory(long storySenderChatId, int storyId, InputStoryContent content, InputStoryAreas areas, FormattedText caption) {
+ this.storySenderChatId = storySenderChatId;
+ this.storyId = storyId;
+ this.content = content;
+ this.areas = areas;
+ this.caption = caption;
+ }
+
+ public static final int CONSTRUCTOR = 1584013745;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditStoryCover extends Function {
+
+ public long storySenderChatId;
+
+ public int storyId;
+
+ public double coverFrameTimestamp;
+
+ public EditStoryCover() {
+ }
+
+ public EditStoryCover(long storySenderChatId, int storyId, double coverFrameTimestamp) {
+ this.storySenderChatId = storySenderChatId;
+ this.storyId = storyId;
+ this.coverFrameTimestamp = coverFrameTimestamp;
+ }
+
+ public static final int CONSTRUCTOR = -1423307701;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EditUserStarSubscription extends Function {
+
+ public long userId;
+
+ public String telegramPaymentChargeId;
+
+ public boolean isCanceled;
+
+ public EditUserStarSubscription() {
+ }
+
+ public EditUserStarSubscription(long userId, String telegramPaymentChargeId, boolean isCanceled) {
+ this.userId = userId;
+ this.telegramPaymentChargeId = telegramPaymentChargeId;
+ this.isCanceled = isCanceled;
+ }
+
+ public static final int CONSTRUCTOR = 1370582665;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EnableProxy extends Function {
+
+ public int proxyId;
+
+ public EnableProxy() {
+ }
+
+ public EnableProxy(int proxyId) {
+ this.proxyId = proxyId;
+ }
+
+ public static final int CONSTRUCTOR = 1494450838;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EndGroupCall extends Function {
+
+ public int groupCallId;
+
+ public EndGroupCall() {
+ }
+
+ public EndGroupCall(int groupCallId) {
+ this.groupCallId = groupCallId;
+ }
+
+ public static final int CONSTRUCTOR = 573131959;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EndGroupCallRecording extends Function {
+
+ public int groupCallId;
+
+ public EndGroupCallRecording() {
+ }
+
+ public EndGroupCallRecording(int groupCallId) {
+ this.groupCallId = groupCallId;
+ }
+
+ public static final int CONSTRUCTOR = -75799927;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class EndGroupCallScreenSharing extends Function {
+
+ public int groupCallId;
+
+ public EndGroupCallScreenSharing() {
+ }
+
+ public EndGroupCallScreenSharing(int groupCallId) {
+ this.groupCallId = groupCallId;
+ }
+
+ public static final int CONSTRUCTOR = -2047599540;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class FinishFileGeneration extends Function {
+
+ public long generationId;
+
+ public Error error;
+
+ public FinishFileGeneration() {
+ }
+
+ public FinishFileGeneration(long generationId, Error error) {
+ this.generationId = generationId;
+ this.error = error;
+ }
+
+ public static final int CONSTRUCTOR = -1055060835;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class ForwardMessages extends Function {
+
+ public long chatId;
+
+ public long messageThreadId;
+
+ public long fromChatId;
+
+ public long[] messageIds;
+
+ public MessageSendOptions options;
+
+ public boolean sendCopy;
+
+ public boolean removeCaption;
+
+ public ForwardMessages() {
+ }
+
+ public ForwardMessages(long chatId, long messageThreadId, long fromChatId, long[] messageIds, MessageSendOptions options, boolean sendCopy, boolean removeCaption) {
+ this.chatId = chatId;
+ this.messageThreadId = messageThreadId;
+ this.fromChatId = fromChatId;
+ this.messageIds = messageIds;
+ this.options = options;
+ this.sendCopy = sendCopy;
+ this.removeCaption = removeCaption;
+ }
+
+ public static final int CONSTRUCTOR = 966156347;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAccountTtl extends Function {
+ public GetAccountTtl() {
+ }
+
+ public static final int CONSTRUCTOR = -443905161;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetActiveSessions extends Function {
+ public GetActiveSessions() {
+ }
+
+ public static final int CONSTRUCTOR = 1119710526;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAllPassportElements extends Function {
+
+ public String password;
+
+ public GetAllPassportElements() {
+ }
+
+ public GetAllPassportElements(String password) {
+ this.password = password;
+ }
+
+ public static final int CONSTRUCTOR = -2038945045;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAllStickerEmojis extends Function {
+
+ public StickerType stickerType;
+
+ public String query;
+
+ public long chatId;
+
+ public boolean returnOnlyMainEmoji;
+
+ public GetAllStickerEmojis() {
+ }
+
+ public GetAllStickerEmojis(StickerType stickerType, String query, long chatId, boolean returnOnlyMainEmoji) {
+ this.stickerType = stickerType;
+ this.query = query;
+ this.chatId = chatId;
+ this.returnOnlyMainEmoji = returnOnlyMainEmoji;
+ }
+
+ public static final int CONSTRUCTOR = 296562224;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAnimatedEmoji extends Function {
+
+ public String emoji;
+
+ public GetAnimatedEmoji() {
+ }
+
+ public GetAnimatedEmoji(String emoji) {
+ this.emoji = emoji;
+ }
+
+ public static final int CONSTRUCTOR = 1065635702;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetApplicationConfig extends Function {
+ public GetApplicationConfig() {
+ }
+
+ public static final int CONSTRUCTOR = -1823144318;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetApplicationDownloadLink extends Function {
+ public GetApplicationDownloadLink() {
+ }
+
+ public static final int CONSTRUCTOR = 112013252;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetArchiveChatListSettings extends Function {
+ public GetArchiveChatListSettings() {
+ }
+
+ public static final int CONSTRUCTOR = -2087874976;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetArchivedStickerSets extends Function {
+
+ public StickerType stickerType;
+
+ public long offsetStickerSetId;
+
+ public int limit;
+
+ public GetArchivedStickerSets() {
+ }
+
+ public GetArchivedStickerSets(StickerType stickerType, long offsetStickerSetId, int limit) {
+ this.stickerType = stickerType;
+ this.offsetStickerSetId = offsetStickerSetId;
+ this.limit = limit;
+ }
+
+ public static final int CONSTRUCTOR = 1001931341;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAttachedStickerSets extends Function {
+
+ public int fileId;
+
+ public GetAttachedStickerSets() {
+ }
+
+ public GetAttachedStickerSets(int fileId) {
+ this.fileId = fileId;
+ }
+
+ public static final int CONSTRUCTOR = 1302172429;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAttachmentMenuBot extends Function {
+
+ public long botUserId;
+
+ public GetAttachmentMenuBot() {
+ }
+
+ public GetAttachmentMenuBot(long botUserId) {
+ this.botUserId = botUserId;
+ }
+
+ public static final int CONSTRUCTOR = 1034248699;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAuthorizationState extends Function {
+ public GetAuthorizationState() {
+ }
+
+ public static final int CONSTRUCTOR = 1949154877;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAutoDownloadSettingsPresets extends Function {
+ public GetAutoDownloadSettingsPresets() {
+ }
+
+ public static final int CONSTRUCTOR = -1721088201;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAutosaveSettings extends Function {
+ public GetAutosaveSettings() {
+ }
+
+ public static final int CONSTRUCTOR = 2136207914;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAvailableChatBoostSlots extends Function {
+ public GetAvailableChatBoostSlots() {
+ }
+
+ public static final int CONSTRUCTOR = 1929898965;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetAvailableGifts extends Function {
+ public GetAvailableGifts() {
+ }
+
+ public static final int CONSTRUCTOR = -153786901;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBackgroundUrl extends Function {
+
+ public String name;
+
+ public BackgroundType type;
+
+ public GetBackgroundUrl() {
+ }
+
+ public GetBackgroundUrl(String name, BackgroundType type) {
+ this.name = name;
+ this.type = type;
+ }
+
+ public static final int CONSTRUCTOR = 733769682;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBankCardInfo extends Function {
+
+ public String bankCardNumber;
+
+ public GetBankCardInfo() {
+ }
+
+ public GetBankCardInfo(String bankCardNumber) {
+ this.bankCardNumber = bankCardNumber;
+ }
+
+ public static final int CONSTRUCTOR = -1310515792;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBasicGroup extends Function {
+
+ public long basicGroupId;
+
+ public GetBasicGroup() {
+ }
+
+ public GetBasicGroup(long basicGroupId) {
+ this.basicGroupId = basicGroupId;
+ }
+
+ public static final int CONSTRUCTOR = -1635174828;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBasicGroupFullInfo extends Function {
+
+ public long basicGroupId;
+
+ public GetBasicGroupFullInfo() {
+ }
+
+ public GetBasicGroupFullInfo(long basicGroupId) {
+ this.basicGroupId = basicGroupId;
+ }
+
+ public static final int CONSTRUCTOR = -1822039253;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBlockedMessageSenders extends Function {
+
+ public BlockList blockList;
+
+ public int offset;
+
+ public int limit;
+
+ public GetBlockedMessageSenders() {
+ }
+
+ public GetBlockedMessageSenders(BlockList blockList, int offset, int limit) {
+ this.blockList = blockList;
+ this.offset = offset;
+ this.limit = limit;
+ }
+
+ public static final int CONSTRUCTOR = -1931137258;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBotInfoDescription extends Function {
+
+ public long botUserId;
+
+ public String languageCode;
+
+ public GetBotInfoDescription() {
+ }
+
+ public GetBotInfoDescription(long botUserId, String languageCode) {
+ this.botUserId = botUserId;
+ this.languageCode = languageCode;
+ }
+
+ public static final int CONSTRUCTOR = -762841035;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBotInfoShortDescription extends Function {
+
+ public long botUserId;
+
+ public String languageCode;
+
+ public GetBotInfoShortDescription() {
+ }
+
+ public GetBotInfoShortDescription(long botUserId, String languageCode) {
+ this.botUserId = botUserId;
+ this.languageCode = languageCode;
+ }
+
+ public static final int CONSTRUCTOR = 1243358740;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBotMediaPreviewInfo extends Function {
+
+ public long botUserId;
+
+ public String languageCode;
+
+ public GetBotMediaPreviewInfo() {
+ }
+
+ public GetBotMediaPreviewInfo(long botUserId, String languageCode) {
+ this.botUserId = botUserId;
+ this.languageCode = languageCode;
+ }
+
+ public static final int CONSTRUCTOR = 1358299446;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBotMediaPreviews extends Function {
+
+ public long botUserId;
+
+ public GetBotMediaPreviews() {
+ }
+
+ public GetBotMediaPreviews(long botUserId) {
+ this.botUserId = botUserId;
+ }
+
+ public static final int CONSTRUCTOR = 577131608;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBotName extends Function {
+
+ public long botUserId;
+
+ public String languageCode;
+
+ public GetBotName() {
+ }
+
+ public GetBotName(long botUserId, String languageCode) {
+ this.botUserId = botUserId;
+ this.languageCode = languageCode;
+ }
+
+ public static final int CONSTRUCTOR = -1707118036;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBusinessChatLinkInfo extends Function {
+
+ public String linkName;
+
+ public GetBusinessChatLinkInfo() {
+ }
+
+ public GetBusinessChatLinkInfo(String linkName) {
+ this.linkName = linkName;
+ }
+
+ public static final int CONSTRUCTOR = 797670986;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBusinessChatLinks extends Function {
+ public GetBusinessChatLinks() {
+ }
+
+ public static final int CONSTRUCTOR = 710287703;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBusinessConnectedBot extends Function {
+ public GetBusinessConnectedBot() {
+ }
+
+ public static final int CONSTRUCTOR = 911058883;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBusinessConnection extends Function {
+
+ public String connectionId;
+
+ public GetBusinessConnection() {
+ }
+
+ public GetBusinessConnection(String connectionId) {
+ this.connectionId = connectionId;
+ }
+
+ public static final int CONSTRUCTOR = -2114706400;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetBusinessFeatures extends Function {
+
+ public BusinessFeature source;
+
+ public GetBusinessFeatures() {
+ }
+
+ public GetBusinessFeatures(BusinessFeature source) {
+ this.source = source;
+ }
+
+ public static final int CONSTRUCTOR = -997171199;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetCallbackQueryAnswer extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public CallbackQueryPayload payload;
+
+ public GetCallbackQueryAnswer() {
+ }
+
+ public GetCallbackQueryAnswer(long chatId, long messageId, CallbackQueryPayload payload) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.payload = payload;
+ }
+
+ public static final int CONSTRUCTOR = 116357727;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetCallbackQueryMessage extends Function {
+
+ public long chatId;
+
+ public long messageId;
+
+ public long callbackQueryId;
+
+ public GetCallbackQueryMessage() {
+ }
+
+ public GetCallbackQueryMessage(long chatId, long messageId, long callbackQueryId) {
+ this.chatId = chatId;
+ this.messageId = messageId;
+ this.callbackQueryId = callbackQueryId;
+ }
+
+ public static final int CONSTRUCTOR = -1121939086;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChat extends Function {
+
+ public long chatId;
+
+ public GetChat() {
+ }
+
+ public GetChat(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = 1866601536;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatActiveStories extends Function {
+
+ public long chatId;
+
+ public GetChatActiveStories() {
+ }
+
+ public GetChatActiveStories(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = 776993781;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatAdministrators extends Function {
+
+ public long chatId;
+
+ public GetChatAdministrators() {
+ }
+
+ public GetChatAdministrators(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = 1544468155;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatAffiliateProgram extends Function {
+
+ public long chatId;
+
+ public long botUserId;
+
+ public GetChatAffiliateProgram() {
+ }
+
+ public GetChatAffiliateProgram(long chatId, long botUserId) {
+ this.chatId = chatId;
+ this.botUserId = botUserId;
+ }
+
+ public static final int CONSTRUCTOR = 1858642842;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatAffiliatePrograms extends Function {
+
+ public long chatId;
+
+ public String offset;
+
+ public int limit;
+
+ public GetChatAffiliatePrograms() {
+ }
+
+ public GetChatAffiliatePrograms(long chatId, String offset, int limit) {
+ this.chatId = chatId;
+ this.offset = offset;
+ this.limit = limit;
+ }
+
+ public static final int CONSTRUCTOR = -102804911;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatArchivedStories extends Function {
+
+ public long chatId;
+
+ public int fromStoryId;
+
+ public int limit;
+
+ public GetChatArchivedStories() {
+ }
+
+ public GetChatArchivedStories(long chatId, int fromStoryId, int limit) {
+ this.chatId = chatId;
+ this.fromStoryId = fromStoryId;
+ this.limit = limit;
+ }
+
+ public static final int CONSTRUCTOR = -1356950392;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatAvailableMessageSenders extends Function {
+
+ public long chatId;
+
+ public GetChatAvailableMessageSenders() {
+ }
+
+ public GetChatAvailableMessageSenders(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = 1158670635;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatBoostFeatures extends Function {
+
+ public boolean isChannel;
+
+ public GetChatBoostFeatures() {
+ }
+
+ public GetChatBoostFeatures(boolean isChannel) {
+ this.isChannel = isChannel;
+ }
+
+ public static final int CONSTRUCTOR = -389994336;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatBoostLevelFeatures extends Function {
+
+ public boolean isChannel;
+
+ public int level;
+
+ public GetChatBoostLevelFeatures() {
+ }
+
+ public GetChatBoostLevelFeatures(boolean isChannel, int level) {
+ this.isChannel = isChannel;
+ this.level = level;
+ }
+
+ public static final int CONSTRUCTOR = 1172717195;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatBoostLink extends Function {
+
+ public long chatId;
+
+ public GetChatBoostLink() {
+ }
+
+ public GetChatBoostLink(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = 1458662533;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatBoostLinkInfo extends Function {
+
+ public String url;
+
+ public GetChatBoostLinkInfo() {
+ }
+
+ public GetChatBoostLinkInfo(String url) {
+ this.url = url;
+ }
+
+ public static final int CONSTRUCTOR = 654068572;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatBoostStatus extends Function {
+
+ public long chatId;
+
+ public GetChatBoostStatus() {
+ }
+
+ public GetChatBoostStatus(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = -810775857;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatBoosts extends Function {
+
+ public long chatId;
+
+ public boolean onlyGiftCodes;
+
+ public String offset;
+
+ public int limit;
+
+ public GetChatBoosts() {
+ }
+
+ public GetChatBoosts(long chatId, boolean onlyGiftCodes, String offset, int limit) {
+ this.chatId = chatId;
+ this.onlyGiftCodes = onlyGiftCodes;
+ this.offset = offset;
+ this.limit = limit;
+ }
+
+ public static final int CONSTRUCTOR = -1419859400;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatEventLog extends Function {
+
+ public long chatId;
+
+ public String query;
+
+ public long fromEventId;
+
+ public int limit;
+
+ public ChatEventLogFilters filters;
+
+ public long[] userIds;
+
+ public GetChatEventLog() {
+ }
+
+ public GetChatEventLog(long chatId, String query, long fromEventId, int limit, ChatEventLogFilters filters, long[] userIds) {
+ this.chatId = chatId;
+ this.query = query;
+ this.fromEventId = fromEventId;
+ this.limit = limit;
+ this.filters = filters;
+ this.userIds = userIds;
+ }
+
+ public static final int CONSTRUCTOR = -1281344669;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatFolder extends Function {
+
+ public int chatFolderId;
+
+ public GetChatFolder() {
+ }
+
+ public GetChatFolder(int chatFolderId) {
+ this.chatFolderId = chatFolderId;
+ }
+
+ public static final int CONSTRUCTOR = 92809880;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatFolderChatCount extends Function {
+
+ public ChatFolder folder;
+
+ public GetChatFolderChatCount() {
+ }
+
+ public GetChatFolderChatCount(ChatFolder folder) {
+ this.folder = folder;
+ }
+
+ public static final int CONSTRUCTOR = 2111097790;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatFolderChatsToLeave extends Function {
+
+ public int chatFolderId;
+
+ public GetChatFolderChatsToLeave() {
+ }
+
+ public GetChatFolderChatsToLeave(int chatFolderId) {
+ this.chatFolderId = chatFolderId;
+ }
+
+ public static final int CONSTRUCTOR = -1916672337;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatFolderDefaultIconName extends Function {
+
+ public ChatFolder folder;
+
+ public GetChatFolderDefaultIconName() {
+ }
+
+ public GetChatFolderDefaultIconName(ChatFolder folder) {
+ this.folder = folder;
+ }
+
+ public static final int CONSTRUCTOR = 754425959;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatFolderInviteLinks extends Function {
+
+ public int chatFolderId;
+
+ public GetChatFolderInviteLinks() {
+ }
+
+ public GetChatFolderInviteLinks(int chatFolderId) {
+ this.chatFolderId = chatFolderId;
+ }
+
+ public static final int CONSTRUCTOR = 329079776;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatFolderNewChats extends Function {
+
+ public int chatFolderId;
+
+ public GetChatFolderNewChats() {
+ }
+
+ public GetChatFolderNewChats(int chatFolderId) {
+ this.chatFolderId = chatFolderId;
+ }
+
+ public static final int CONSTRUCTOR = 2123181260;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatHistory extends Function {
+
+ public long chatId;
+
+ public long fromMessageId;
+
+ public int offset;
+
+ public int limit;
+
+ public boolean onlyLocal;
+
+ public GetChatHistory() {
+ }
+
+ public GetChatHistory(long chatId, long fromMessageId, int offset, int limit, boolean onlyLocal) {
+ this.chatId = chatId;
+ this.fromMessageId = fromMessageId;
+ this.offset = offset;
+ this.limit = limit;
+ this.onlyLocal = onlyLocal;
+ }
+
+ public static final int CONSTRUCTOR = -799960451;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatInviteLink extends Function {
+
+ public long chatId;
+
+ public String inviteLink;
+
+ public GetChatInviteLink() {
+ }
+
+ public GetChatInviteLink(long chatId, String inviteLink) {
+ this.chatId = chatId;
+ this.inviteLink = inviteLink;
+ }
+
+ public static final int CONSTRUCTOR = -479575555;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatInviteLinkCounts extends Function {
+
+ public long chatId;
+
+ public GetChatInviteLinkCounts() {
+ }
+
+ public GetChatInviteLinkCounts(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = 890299025;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatInviteLinkMembers extends Function {
+
+ public long chatId;
+
+ public String inviteLink;
+
+ public boolean onlyWithExpiredSubscription;
+
+ public ChatInviteLinkMember offsetMember;
+
+ public int limit;
+
+ public GetChatInviteLinkMembers() {
+ }
+
+ public GetChatInviteLinkMembers(long chatId, String inviteLink, boolean onlyWithExpiredSubscription, ChatInviteLinkMember offsetMember, int limit) {
+ this.chatId = chatId;
+ this.inviteLink = inviteLink;
+ this.onlyWithExpiredSubscription = onlyWithExpiredSubscription;
+ this.offsetMember = offsetMember;
+ this.limit = limit;
+ }
+
+ public static final int CONSTRUCTOR = 1728376124;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatInviteLinks extends Function {
+
+ public long chatId;
+
+ public long creatorUserId;
+
+ public boolean isRevoked;
+
+ public int offsetDate;
+
+ public String offsetInviteLink;
+
+ public int limit;
+
+ public GetChatInviteLinks() {
+ }
+
+ public GetChatInviteLinks(long chatId, long creatorUserId, boolean isRevoked, int offsetDate, String offsetInviteLink, int limit) {
+ this.chatId = chatId;
+ this.creatorUserId = creatorUserId;
+ this.isRevoked = isRevoked;
+ this.offsetDate = offsetDate;
+ this.offsetInviteLink = offsetInviteLink;
+ this.limit = limit;
+ }
+
+ public static final int CONSTRUCTOR = 883252396;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatJoinRequests extends Function {
+
+ public long chatId;
+
+ public String inviteLink;
+
+ public String query;
+
+ public ChatJoinRequest offsetRequest;
+
+ public int limit;
+
+ public GetChatJoinRequests() {
+ }
+
+ public GetChatJoinRequests(long chatId, String inviteLink, String query, ChatJoinRequest offsetRequest, int limit) {
+ this.chatId = chatId;
+ this.inviteLink = inviteLink;
+ this.query = query;
+ this.offsetRequest = offsetRequest;
+ this.limit = limit;
+ }
+
+ public static final int CONSTRUCTOR = -388428126;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatListsToAddChat extends Function {
+
+ public long chatId;
+
+ public GetChatListsToAddChat() {
+ }
+
+ public GetChatListsToAddChat(long chatId) {
+ this.chatId = chatId;
+ }
+
+ public static final int CONSTRUCTOR = 654956193;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatMember extends Function {
+
+ public long chatId;
+
+ public MessageSender memberId;
+
+ public GetChatMember() {
+ }
+
+ public GetChatMember(long chatId, MessageSender memberId) {
+ this.chatId = chatId;
+ this.memberId = memberId;
+ }
+
+ public static final int CONSTRUCTOR = -792636814;
+
+ @Override
+ public int getConstructor() {
+ return CONSTRUCTOR;
+ }
+ }
+
+ public static class GetChatMessageByDate extends Function